ember-rails 0.20.5 → 0.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/ember/rails/version.rb +1 -1
- data/lib/generators/ember/adapter_generator.rb +2 -2
- data/lib/generators/ember/bootstrap_generator.rb +2 -2
- data/lib/generators/ember/component_generator.rb +2 -2
- data/lib/generators/ember/controller_generator.rb +2 -2
- data/lib/generators/ember/initializer_generator.rb +2 -2
- data/lib/generators/ember/instance_initializer_generator.rb +2 -2
- data/lib/generators/ember/model_generator.rb +2 -2
- data/lib/generators/ember/resource_generator.rb +1 -1
- data/lib/generators/ember/resource_override.rb +2 -2
- data/lib/generators/ember/route_generator.rb +2 -2
- data/lib/generators/ember/service_generator.rb +2 -2
- data/lib/generators/ember/template_generator.rb +1 -1
- data/lib/generators/ember/view_generator.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e38515f2213cd439f8b35e623c14c1a53812638
|
4
|
+
data.tar.gz: 3c4dae6df402457e52b68695ebb5f4b18cc16426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 544b33e433cd555ae6d43e05e569b068836c3bed7dc735852cf778dc94fef6e93f5becf3f47bf6615b765705abbf8c6d32e4f27a8786b5114ee7a870d4c045e2
|
7
|
+
data.tar.gz: c21caf5bd01bb712aafa48ca29f827ae92c1c4f4e8c7c2be9d273607d3e09e9fbd07196857315c48adc00d79c9f9e9cd26194dd3e8d031ff9804f6b246c4be34
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ember-rails [](http://travis-ci.org/emberjs/ember-rails) [](http://travis-ci.org/emberjs/ember-rails) [](https://gemnasium.com/emberjs/ember-rails) [](https://codeclimate.com/github/emberjs/ember-rails)
|
2
2
|
|
3
3
|
ember-rails makes developing an [Ember.JS](http://emberjs.com/) application much easier in Rails 3.1+.
|
4
4
|
|
@@ -111,7 +111,7 @@ To use ES6 module in your application, the following configuration is required:
|
|
111
111
|
|
112
112
|
### Single Ember Application
|
113
113
|
|
114
|
-
This is the case for single Ember application in `app/assets/javascripts` (not under the
|
114
|
+
This is the case for single Ember application in `app/assets/javascripts` (not under the subdirectory).
|
115
115
|
|
116
116
|
`my-app.es6`
|
117
117
|
``` javascript
|
data/lib/ember/rails/version.rb
CHANGED
@@ -8,9 +8,9 @@ module Ember
|
|
8
8
|
source_root File.expand_path("../../templates", __FILE__)
|
9
9
|
|
10
10
|
desc "Creates a new Ember.js adapter"
|
11
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
11
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
14
14
|
|
15
15
|
def create_adapter_files
|
16
16
|
file_path = File.join(ember_path, 'adapters', class_path, "#{file_name}.#{engine_extension}")
|
@@ -9,10 +9,10 @@ module Ember
|
|
9
9
|
|
10
10
|
desc "Creates a default Ember.js folder layout in app/assets/javascripts"
|
11
11
|
|
12
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
12
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
13
13
|
class_option :skip_git, :type => :boolean, :aliases => "-g", :default => false, :desc => "Skip Git keeps"
|
14
14
|
class_option :javascript_engine, :desc => "Engine for JavaScripts (js for JavaScript, coffee for CoffeeScript, etc)"
|
15
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
15
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
16
16
|
|
17
17
|
def inject_ember
|
18
18
|
begin
|
@@ -10,8 +10,8 @@ module Ember
|
|
10
10
|
desc "Creates a new Ember.js component and component template\nCustom Ember Components require at least two descriptive names separated by a dash. Use CamelCase or dash-case to name your component.\n\nExample,\n\trails generate ember:component PostChart [options]\n\trails generate ember:component post-chart [options]"
|
11
11
|
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
14
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
14
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
15
15
|
|
16
16
|
def create_component_files
|
17
17
|
dashed_file_name = file_name.dasherize
|
@@ -11,9 +11,9 @@ module Ember
|
|
11
11
|
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
13
|
class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
|
14
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
14
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
15
15
|
class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.Controller to represent a single object"
|
16
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
16
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
17
17
|
|
18
18
|
|
19
19
|
def create_controller_files
|
@@ -10,8 +10,8 @@ module Ember
|
|
10
10
|
desc "Creates a new Ember.js initializer"
|
11
11
|
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
14
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
14
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
15
15
|
|
16
16
|
def create_initializer_files
|
17
17
|
file_path = File.join(ember_path, 'initializers', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
@@ -10,8 +10,8 @@ module Ember
|
|
10
10
|
desc "Creates a new Ember.js instance initializer"
|
11
11
|
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
14
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
14
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
15
15
|
|
16
16
|
def create_instance_initializer_files
|
17
17
|
file_path = File.join(ember_path, 'instance-initializers', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
@@ -9,8 +9,8 @@ module Ember
|
|
9
9
|
desc "creates a new ember.js model"
|
10
10
|
argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..."
|
11
11
|
class_option :javascript_engine, :desc => "engine for javascripts"
|
12
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
13
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
12
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "custom ember app path"
|
13
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
14
14
|
|
15
15
|
def create_model_files
|
16
16
|
file_path = File.join(ember_path, 'models', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
@@ -13,7 +13,7 @@ module Ember
|
|
13
13
|
class_option :skip_route, :type => :boolean, :default => false, :desc => "Don't create route"
|
14
14
|
class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
|
15
15
|
class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.Controller to represent a single object"
|
16
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
16
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
17
17
|
|
18
18
|
|
19
19
|
def create_resource_files
|
@@ -8,9 +8,9 @@ module Rails
|
|
8
8
|
ResourceGenerator.class_eval do
|
9
9
|
|
10
10
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
11
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
11
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
12
12
|
class_option :with_template, :type => :boolean, :default => false, :desc => "Create template for this view"
|
13
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
14
14
|
|
15
15
|
def add_ember
|
16
16
|
say_status :invoke, "ember:model", :white
|
@@ -8,9 +8,9 @@ module Ember
|
|
8
8
|
source_root File.expand_path("../../templates", __FILE__)
|
9
9
|
|
10
10
|
desc "Creates a new Ember.js route"
|
11
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
11
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
14
14
|
|
15
15
|
def create_route_files
|
16
16
|
file_path = File.join(ember_path, 'routes', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
@@ -10,8 +10,8 @@ module Ember
|
|
10
10
|
desc "Creates a new Ember.js service"
|
11
11
|
|
12
12
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
13
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
14
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
13
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
14
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
15
15
|
|
16
16
|
def create_service_files
|
17
17
|
file_path = File.join(ember_path, 'services', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
@@ -9,7 +9,7 @@ module Ember
|
|
9
9
|
|
10
10
|
desc "Creates a new Ember.js template"
|
11
11
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
12
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
12
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
13
13
|
|
14
14
|
def create_template_files
|
15
15
|
file_path = File.join(ember_path, 'templates', class_path, "#{file_name.dasherize}.hbs")
|
@@ -9,9 +9,9 @@ module Ember
|
|
9
9
|
|
10
10
|
desc "Creates a new Ember.js view and associated Handlebars template"
|
11
11
|
class_option :javascript_engine, :desc => "Engine for JavaScripts"
|
12
|
-
class_option :ember_path, :type => :string, :aliases => "-d", :
|
12
|
+
class_option :ember_path, :type => :string, :aliases => "-d", :desc => "Custom ember app path"
|
13
13
|
class_option :with_template, :type => :boolean, :default => false, :desc => "Create template for this view"
|
14
|
-
class_option :app_name, :type => :string, :aliases => "-n", :
|
14
|
+
class_option :app_name, :type => :string, :aliases => "-n", :desc => "Custom ember app name"
|
15
15
|
|
16
16
|
def create_view_files
|
17
17
|
file_path = File.join(ember_path, 'views', class_path, "#{file_name.dasherize}.#{engine_extension}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Pitt
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -381,7 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
381
|
version: '0'
|
382
382
|
requirements: []
|
383
383
|
rubyforge_project:
|
384
|
-
rubygems_version: 2.5.
|
384
|
+
rubygems_version: 2.5.2
|
385
385
|
signing_key:
|
386
386
|
specification_version: 4
|
387
387
|
summary: Ember for Rails 3.1+
|