Permalink
Browse files

Renamed to EasyForm

  • Loading branch information...
1 parent 9ed1fc7 commit c5a853646c8d1fc13460e44f57b48c24817997cb @bcardarella bcardarella committed Feb 21, 2013
Showing with 50 additions and 50 deletions.
  1. +2 −2 Assetfile
  2. +7 −7 README.md
  3. +2 −2 ember-dev.yml
  4. +1 −1 generators/license.js
  5. +3 −0 packages/ember-easyForm/lib/core.js
  6. +6 −0 packages/ember-easyForm/lib/helpers.js
  7. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/error.js
  8. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/formFor.js
  9. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/input.js
  10. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/submit.js
  11. 0 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/textArea.js
  12. 0 packages/{ember-formBuilder → ember-easyForm}/lib/helpers/textField.js
  13. +5 −0 packages/ember-easyForm/lib/main.js
  14. +1 −0 packages/ember-easyForm/lib/templates.js
  15. +1 −0 packages/ember-easyForm/lib/templates/input.js
  16. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/utilities.js
  17. +4 −0 packages/ember-easyForm/lib/views.js
  18. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/views/error.js
  19. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/views/form.js
  20. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/views/input.js
  21. +1 −1 packages/{ember-formBuilder → ember-easyForm}/lib/views/submit.js
  22. +4 −4 packages/{ember-formBuilder → ember-easyForm}/package.json
  23. 0 packages/{ember-formBuilder → ember-easyForm}/tests/helpers/formFor_test.js
  24. 0 packages/{ember-formBuilder → ember-easyForm}/tests/helpers/input_test.js
  25. 0 packages/{ember-formBuilder → ember-easyForm}/tests/helpers/submit_test.js
  26. 0 packages/{ember-formBuilder → ember-easyForm}/tests/helpers/textField_test.js
  27. +2 −2 packages/{ember-formBuilder → ember-easyForm}/tests/utilities_test.js
  28. +0 −3 packages/ember-formBuilder/lib/core.js
  29. +0 −6 packages/ember-formBuilder/lib/helpers.js
  30. +0 −5 packages/ember-formBuilder/lib/main.js
  31. +0 −1 packages/ember-formBuilder/lib/templates.js
  32. +0 −1 packages/ember-formBuilder/lib/templates/input.js
  33. +0 −4 packages/ember-formBuilder/lib/views.js
  34. +2 −2 project.json
  35. +1 −1 tests/ember_configuration.js
View
@@ -1,13 +1,13 @@
instance_eval File.read(EmberDev.support_path.join('Assetfile'))
distros = {
- :full => %w(ember-formBuilder)
+ :full => %w(ember-easyForm)
}
output "dist"
distros.each do |name, modules|
- name = "ember-formBuilder"
+ name = "ember-easyForm"
input "dist/modules" do
module_paths = modules.map{|m| "#{m}.js" }
View
@@ -1,11 +1,11 @@
-# Ember FormBuilder #
+# Ember EasyForm #
-FormBuilder for Ember
+EasyForm for Ember
## Looking for help? ##
If it is a bug [please open an issue on
-GitHub](https://github.com/dockyard/ember-formBuilder/issues). If you need help using
+GitHub](https://github.com/dockyard/ember-easyForm/issues). If you need help using
the gem please ask the question on
[Stack Overflow](http://stackoverflow.com). Be sure to tag the
question with `DockYard` so we can find it.
@@ -52,7 +52,7 @@ You can customize your input by passing certain options.
{{input secret type="hidden"}}
```
-`ember-formBuilder` will also try to determine the type automatically
+`ember-easyForm` will also try to determine the type automatically
based upon the property name:
```handlebars
@@ -87,9 +87,9 @@ validation passes the error message and classes are removed.
* [Brian Cardarella](http://twitter.com/bcardarella)
-This is partially influenced by [Ember FormBuilder](https://github.com/luan/ember-formbuilder) by [Luan Haddad Ricardo dos Santos](https://twitter.com/cfcluan)
+This is partially influenced by [Ember EasyForm](https://github.com/luan/ember-formbuilder) by [Luan Haddad Ricardo dos Santos](https://twitter.com/cfcluan)
-[We are very thankful for the many contributors](https://github.com/dockyard/ember-formBuilder/graphs/contributors)
+[We are very thankful for the many contributors](https://github.com/dockyard/ember-easyForm/graphs/contributors)
## Versioning ##
@@ -98,7 +98,7 @@ This gem follows [Semantic Versioning](http://semver.org)
## Want to help? ##
Please do! We are always looking to improve this gem. Please see our
-[Contribution Guidelines](https://github.com/dockyard/ember-formBuilder/blob/master/CONTRIBUTING.md)
+[Contribution Guidelines](https://github.com/dockyard/ember-easyForm/blob/master/CONTRIBUTING.md)
on how to properly submit issues and pull requests.
## Legal ##
View
@@ -1,8 +1,8 @@
---
-name: Ember FormBuilder
+name: Ember EasyForm
assetfile: 'Assetfile'
testing_suites:
default:
- "package=all&jquery=1.7.2&extendprototypes=true"
testing_packages:
- - ember-formBuilder
+ - ember-easyForm
View
@@ -1,5 +1,5 @@
// ==========================================================================
-// Project: Ember FormBuilder
+// Project: Ember EasyForm
// Copyright: ©2013 DockYar, LLC. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
@@ -0,0 +1,3 @@
+Ember.EasyForm = Ember.Namespace.create({
+ VERSION: '0.0.1'
+});
@@ -0,0 +1,6 @@
+require('ember-easyForm/helpers/error');
+require('ember-easyForm/helpers/formFor');
+require('ember-easyForm/helpers/input');
+require('ember-easyForm/helpers/submit');
+require('ember-easyForm/helpers/textArea');
+require('ember-easyForm/helpers/textField');
@@ -2,6 +2,6 @@ Ember.Handlebars.registerHelper('error', function(property, options) {
if (this.errors) {
options.hash.context = this;
options.hash.property = property;
- return Ember.Handlebars.helpers.view.call(this, Ember.FormBuilder.Error, options);
+ return Ember.Handlebars.helpers.view.call(this, Ember.EasyForm.Error, options);
}
});
@@ -1,4 +1,4 @@
Ember.Handlebars.registerBoundHelper('formFor', function(object, options) {
options.hash.context = object;
- return Ember.Handlebars.helpers.view.call(object, Ember.FormBuilder.Form, options);
+ return Ember.Handlebars.helpers.view.call(object, Ember.EasyForm.Form, options);
});
@@ -2,5 +2,5 @@ Ember.Handlebars.registerHelper('input', function(property, options) {
options.hash.inputOptions = Ember.copy(options.hash);
options.hash.context = this;
options.hash.property = property;
- return Ember.Handlebars.helpers.view.call(this, Ember.FormBuilder.Input, options);
+ return Ember.Handlebars.helpers.view.call(this, Ember.EasyForm.Input, options);
});
@@ -5,5 +5,5 @@ Ember.Handlebars.registerHelper('submit', function(value, options) {
}
options.hash.context = this;
options.hash.value = value || 'Submit';
- return Ember.Handlebars.helpers.view.call(this, Ember.FormBuilder.Submit, options);
+ return Ember.Handlebars.helpers.view.call(this, Ember.EasyForm.Submit, options);
});
@@ -0,0 +1,5 @@
+require('ember-easyForm/core');
+require('ember-easyForm/helpers');
+require('ember-easyForm/views');
+require('ember-easyForm/templates');
+require('ember-easyForm/utilities');
@@ -0,0 +1 @@
+require('ember-easyForm/templates/input');
@@ -0,0 +1 @@
+Ember.TEMPLATES['easyForm/input'] = Ember.Handlebars.compile('<label {{bindAttr for="labelFor"}}>{{labelText}}</label>');
@@ -1,4 +1,4 @@
-Ember.FormBuilder.objectNameFor = function(object) {
+Ember.EasyForm.objectNameFor = function(object) {
var constructorArray = object.constructor.toString().split('.');
return constructorArray[constructorArray.length - 1].underscore();
};
@@ -0,0 +1,4 @@
+require('ember-easyForm/views/error');
+require('ember-easyForm/views/form');
+require('ember-easyForm/views/input');
+require('ember-easyForm/views/submit');
@@ -1,4 +1,4 @@
-Ember.FormBuilder.Error = Ember.View.extend({
+Ember.EasyForm.Error = Ember.View.extend({
tagName: 'span',
classNames: ['error'],
init: function() {
@@ -1,4 +1,4 @@
-Ember.FormBuilder.Form = Ember.View.extend({
+Ember.EasyForm.Form = Ember.View.extend({
tagName: 'form',
attributeBindings: ['novalidate'],
novalidate: 'novalidate',
@@ -1,4 +1,4 @@
-Ember.FormBuilder.Input = Ember.View.extend({
+Ember.EasyForm.Input = Ember.View.extend({
tagName: 'div',
classNames: ['input', 'string'],
classNameBindings: ['error:field_with_errors'],
@@ -1,4 +1,4 @@
-Ember.FormBuilder.Submit = Ember.View.extend({
+Ember.EasyForm.Submit = Ember.View.extend({
tagName: 'input',
attributeBindings: ['type', 'value'],
type: 'submit',
@@ -1,8 +1,8 @@
{
- "name": "ember-formBuilder",
+ "name": "ember-easyForm",
"summary": "Short package description",
- "description": "Ember FormBuilder provides a DSL for quickly building forms similar to ActionPack's FormBuilder and SimpleForm",
- "homepage": "https://github.com/dockyar/ember-formBuilder",
+ "description": "Ember EasyForm provides a DSL for quickly building forms similar to ActionPack's EasyForm and SimpleForm",
+ "homepage": "https://github.com/dockyar/ember-easyForm",
"author": "Brian Cardarella",
"version": "0.1.0",
@@ -22,7 +22,7 @@
"files": ["lib"],
"modes": "*"
},
- "ember-formBuilder/bpm_tests.js": {
+ "ember-easyForm/bpm_tests.js": {
"files": ["tests"],
"modes": ["debug"]
}
@@ -1,6 +1,6 @@
var model, property;
-module('FormBuilder utility methods', {
+module('EasyForm utility methods', {
setup: function() {
model = {
constructor: {
@@ -13,5 +13,5 @@ module('FormBuilder utility methods', {
});
test('gets the name of the object', function() {
- equal(Ember.FormBuilder.objectNameFor(model), 'test_user');
+ equal(Ember.EasyForm.objectNameFor(model), 'test_user');
});
@@ -1,3 +0,0 @@
-Ember.FormBuilder = Ember.Namespace.create({
- VERSION: '0.0.1'
-});
@@ -1,6 +0,0 @@
-require('ember-formBuilder/helpers/error');
-require('ember-formBuilder/helpers/formFor');
-require('ember-formBuilder/helpers/input');
-require('ember-formBuilder/helpers/submit');
-require('ember-formBuilder/helpers/textArea');
-require('ember-formBuilder/helpers/textField');
@@ -1,5 +0,0 @@
-require('ember-formBuilder/core');
-require('ember-formBuilder/helpers');
-require('ember-formBuilder/views');
-require('ember-formBuilder/templates');
-require('ember-formBuilder/utilities');
@@ -1 +0,0 @@
-require('ember-formBuilder/templates/input');
@@ -1 +0,0 @@
-Ember.TEMPLATES['formBuilder/input'] = Ember.Handlebars.compile('<label {{bindAttr for="labelFor"}}>{{labelText}}</label>');
@@ -1,4 +0,0 @@
-require('ember-formBuilder/views/error');
-require('ember-formBuilder/views/form');
-require('ember-formBuilder/views/input');
-require('ember-formBuilder/views/submit');
View
@@ -1,8 +1,8 @@
{
- "name": "ember-formBuilder-project",
+ "name": "ember-easyForm-project",
"bpm": "1.0.0",
"dependencies": {
- "ember-formBuilder": ">= 0"
+ "ember-easyForm": ">= 0"
},
"bpm:build": {
@@ -30,6 +30,6 @@
EmberDev.distros = {
spade: 'ember-spade.js',
- build: 'ember-formBuilder.js',
+ build: 'ember-easyForm.js',
};
})();

0 comments on commit c5a8536

Please sign in to comment.