Skip to content

Commit 2aa6ce1

Browse files
committed
Rewrite as an ember-cli addon
Began 2.0 rewrite 1 Failing test Also depends upon custom resolver, waiting on ember-cli/ember-resolver#65
1 parent 5688d55 commit 2aa6ce1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+877
-917
lines changed

.bowerrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"directory": "bower_components",
3+
"analytics": false
4+
}

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.js]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.hbs]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[*.css]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[*.html]
29+
indent_style = space
30+
indent_size = 2
31+
32+
[*.md]
33+
trim_trailing_whitespace = false

.ember-cli

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false
9+
}

.gitignore

+17-38
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,17 @@
1-
*.bpkg
2-
*.gem
3-
*.rbc
4-
.DS_Store
5-
.bpm
6-
.bundle
7-
.config
8-
.github-upload-token
9-
.yardoc
10-
InstalledFiles
11-
_site
12-
_yardoc
13-
assets
14-
assets/bpm_libs.js
15-
assets/bpm_styles.css
16-
bin/
17-
coverage
18-
dist
19-
docs/build
20-
docs/node_modules
21-
lib/*/tests/all.js
22-
lib/*/tests/qunit*
23-
lib/bundler/man
24-
pkg
25-
rdoc
26-
spade-boot.js
27-
spec/reports
28-
test/tmp
29-
test/version_tmp
30-
test_*.html
31-
/tests/ember-tests.js
32-
tmp
33-
tmp*.gem
34-
tmp.bpm
35-
tmp.spade
36-
tests/source
37-
node_modules
38-
.vagrant
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
7+
# dependencies
8+
/node_modules
9+
/bower_components/*
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log
17+
testem.log

.travis.yml

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
language: ruby
2-
before_script: sudo apt-get update && sudo apt-get install git
3-
script: bundle exec rake test
4-
after_success: bundle exec rake publish_build BUILD_TYPE=release
5-
env:
6-
global:
7-
- S3_BUCKET_NAME=builds.dockyard.com
8-
- S3_FILE_PREFIX=ember-validations
9-
- secure: IkjAmY1NE9YiQI/EPxNI8I+n21CzpGQnVxwfSj7mHdZK7tHOb+AhPfrTH4STbEdBf6gcLA2ccAau3//Pb53oDZeQJF8FQLAsLcPvFU23mPdLX9GqUW/oYAUE+TJvfMPsL3qtpfdjyNfgqbaoGHdW9OrzhiOUVbrdC+3nIHcmC0g=
10-
- secure: CgT0v3eIj3WNA8OdZeilcdlqKrAgeGGSBL9EsUghd2vxWiGZinJtoZDFso8r5N6EowbhYj46S5zEPfHmAo7Cn8tDN/UnvY0aUB23kWMAMLV47xQVY19N8xGe5BK8T8eGpxVoUp9v0f/DXluoX2E65ou9vYOQ9RQ7dar5a46DMNw=
1+
---
2+
language: node_js
3+
4+
sudo: false
5+
6+
cache:
7+
directories:
8+
- node_modules
9+
10+
install:
11+
- npm install -g bower
12+
- npm install
13+
- bower install
14+
15+
script:
16+
- npm test

Assetfile

-39
This file was deleted.

Brocfile.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* global require, module */
2+
3+
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
4+
5+
var app = new EmberAddon();
6+
7+
// Use `app.import` to add additional libraries to the generated
8+
// output files.
9+
//
10+
// If you need to use different assets in different
11+
// environments, specify an object as the first parameter. That
12+
// object's keys should be the environment name and the values
13+
// should be the asset to use in that environment.
14+
//
15+
// If the library that you are including contains AMD or ES6
16+
// modules that you would like to import into your application
17+
// please specify an object with the list of modules as keys
18+
// along with the exports of each module as its value.
19+
20+
module.exports = app.toTree();

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
(master)
2+
3+
# 2.0.0 rewrite for ember-cli. Migrated to ember-cli addon
4+
15
## 1.0.0.beta.2
26

37
* Addition of URL validator.

Gemfile

-6
This file was deleted.

Gemfile.lock

-83
This file was deleted.

Rakefile

-25
This file was deleted.

VERSION

-1
This file was deleted.

packages/ember-validations/lib/errors.js addon/errors.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Ember.Validations.Errors = Ember.Object.extend({
1+
import Ember from 'ember';
2+
3+
export default Ember.Object.extend({
24
unknownProperty: function(property) {
35
this.set(property, Ember.makeArray());
46
return this.get(property);

packages/ember-validations/lib/defaultMessages.js addon/messages.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Ember.Validations.messages = {
1+
import Ember from 'ember';
2+
3+
export default {
24
render: function(attribute, context) {
35
if (Ember.I18n) {
46
return Ember.I18n.t('errors.' + attribute, context);

0 commit comments

Comments
 (0)