ember-rails 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,15 +11,26 @@ You can see an example of how to use the gem [here](https://github.com/keithpitt
11
11
  Add the gem to your application Gemfile:
12
12
 
13
13
  gem "ember-rails"
14
+ gem "ember-source", "1.0.0rc3.2" # or whatever release of
15
+ # ember-source you desire
14
16
 
15
17
  Run `bundle install` and use the ember-rails generator to add the necessary dependencies.
16
18
 
17
19
  Ember-rails will use the production build of Ember.js when Rails is running in
18
20
  production mode, and the development build otherwise.
19
21
 
22
+ ## Setting Ember Variant
23
+
24
+ After running `bundle install` make sure you set the ember variant for your enviroments in their respected files with.
25
+
26
+ config.ember.variant = :development # or :production
27
+
28
+ Not doing so will result in Sprockets not being able to resolve Ember's dependencies.
29
+
30
+
20
31
  ## Architecture
21
32
 
22
- Ember does not require an organized file structure. However, ember-rails allows you
33
+ Ember does not require an organized file structure. However, ember-rails allows you
23
34
  to use `rails g ember:bootstrap` to create the following directory structure under `app/assets/javascripts`:
24
35
 
25
36
  controllers/
@@ -30,7 +41,7 @@ to use `rails g ember:bootstrap` to create the following directory structure und
30
41
  views/
31
42
 
32
43
  Additionally, it will add the following lines to `app/assets/javascripts/application.js`.
33
- By default, it uses the Rails Application's name and creates an `rails_app_name.js`
44
+ By default, it uses the Rails Application's name and creates an `rails_app_name.js`
34
45
  file to setup application namespace and initial requires:
35
46
 
36
47
  //= require handlebars
@@ -59,6 +70,8 @@ file to setup application namespace and initial requires:
59
70
  If you want to avoid `.gitkeep` files, use the `skip git` option like
60
71
  this: `rails g ember:bootstrap -g`.
61
72
 
73
+ _(CoffeeScript support: just make sure you have `gem 'coffee-rails'` in your application Gemfile.)_
74
+
62
75
  Ask Rails to serve HandlebarsJS and pre-compile templates to Ember
63
76
  by putting each template in a dedicated ".js.hjs", ".hbs" or ".handlebars" file
64
77
  (e.g. `app/assets/javascripts/templates/admin_panel.handlebars`)
@@ -74,11 +87,13 @@ By default, `templates_root` is `'templates'`.
74
87
  If you store templates in a file like `app/assets/javascripts/ember_templates/admin_panel.handlebars` after setting the above config,
75
88
  it will be made available to Ember as the `admin_panel` template.
76
89
 
90
+ _(Note: you must clear the local sprockets cache after modifying `templates_root`, stored by default in `tmp/cache/assets`)_
91
+
77
92
  Default behavior for ember-rails is to precompile handlebars templates.
78
93
  If you don't want this behavior you can turn it off in your application configuration (or per environment in: `config/environments/development.rb`) block:
79
94
 
80
95
  config.handlebars.precompile = false
81
-
96
+
82
97
  _(Note: you must clear the local sprockets cache if you disable precompilation, stored by default in `tmp/cache/assets`)_
83
98
 
84
99
  Bundle all templates together thanks to Sprockets,
@@ -103,10 +118,10 @@ It will be translated as :
103
118
 
104
119
  ## Specifying Different Versions of Ember/Handlebars/Ember-Data
105
120
 
106
- By default, ember-rails ships with the latest version of
121
+ By default, ember-rails ships with the latest version of
107
122
  [Ember](https://rubygems.org/gems/ember-source/versions) (rc1),
108
- [Handlebars](https://rubygems.org/gems/handlebars-source/versions) (rc3),
109
- and [Ember-Data](https://rubygems.org/gems/ember-data-source/versions).
123
+ [Handlebars](https://rubygems.org/gems/handlebars-source/versions) (rc3),
124
+ and [Ember-Data](https://rubygems.org/gems/ember-data-source/versions).
110
125
 
111
126
  To specify a different version that'll be used for both template
112
127
  precompilation and serving to the browser, you can specify the desired
@@ -117,7 +132,7 @@ version of one of the above-linked gems in the Gemfile, e.g.:
117
132
  You can also specify versions of 'handlebars-source' and
118
133
  'ember-data-source', but note that an appropriate 'handlebars-source'
119
134
  will be automatically chosen depending on the version of 'ember-source'
120
- that's specified.
135
+ that's specified.
121
136
 
122
137
  You can also override the specific ember.js, handlebars.js, and
123
138
  ember-data.js files that'll be `require`d by the Asset pipeline by
@@ -128,6 +143,14 @@ you've specified in your app's configuration, e.g.:
128
143
  config.ember.variant = :production
129
144
  #config.ember.variant = :development
130
145
 
146
+ ## Updating Ember
147
+
148
+ If at any point you need to update Ember.js from master, you can do that with
149
+
150
+ rails generate ember:install --head
151
+
152
+ This will clone both Ember.js and Ember Data from GitHub, build it and copy to the right directory.
153
+
131
154
  ## Note on Patches/Pull Requests
132
155
 
133
156
  1. Fork the project.
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Rails
3
- VERSION = '0.11.1'
3
+ VERSION = '0.12.0'
4
4
  end
5
5
  end
@@ -12,25 +12,17 @@ module Ember
12
12
 
13
13
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
14
14
  class_option :skip_git, :type => :boolean, :aliases => "-g", :default => false, :desc => "Skip Git keeps"
15
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
15
16
 
16
17
  def inject_ember
17
- application_file = "app/assets/javascripts/application.js"
18
-
19
- inject_into_file(application_file, :before => "//= require_tree") do
20
- dependencies = [
21
- # this should eventually become handlebars-runtime when we remove
22
- # the runtime dependency on compilation
23
- "//= require handlebars",
24
- "//= require ember",
25
- "//= require ember-data",
26
- "//= require_self",
27
- "//= require #{application_name.underscore}",
28
- "#{application_name.camelize} = Ember.Application.create();"
29
- ]
30
- dependencies.join("\n").concat("\n")
18
+ begin
19
+ inject_into_application_file(engine_extension)
20
+ rescue Exception => e
21
+ inject_into_application_file('js')
31
22
  end
32
23
  end
33
24
 
25
+
34
26
  def create_dir_layout
35
27
  %W{models controllers views routes helpers templates}.each do |dir|
36
28
  empty_directory "#{ember_path}/#{dir}"
@@ -39,19 +31,25 @@ module Ember
39
31
  end
40
32
 
41
33
  def create_app_file
42
- template "app.js", "#{ember_path}/#{application_name.underscore}.js"
34
+ template "app.#{engine_extension}", "#{ember_path}/#{application_name.underscore}.#{engine_extension}"
43
35
  end
44
36
 
45
37
  def create_router_file
46
- template "router.js", "#{ember_path}/router.js"
38
+ template "router.#{engine_extension}", "#{ember_path}/router.#{engine_extension}"
47
39
  end
48
40
 
49
41
  def create_store_file
50
- template "store.js", "#{ember_path}/store.js"
42
+ template "store.#{engine_extension}", "#{ember_path}/store.#{engine_extension}"
51
43
  end
52
44
 
53
- def create_app_stubs
54
- invoke "ember:view", ["application", "-d #{ember_path}"]
45
+ private
46
+ def inject_into_application_file(safe_extension)
47
+ application_file = "#{ember_path}/application.#{safe_extension}"
48
+ inject_into_file( application_file, :before => /^.*require_tree.*$/) do
49
+ context = instance_eval('binding')
50
+ source = File.expand_path(find_in_source_paths("application.#{safe_extension}"))
51
+ ERB.new(::File.binread(source), nil, '-', '@output_buffer').result(context)
52
+ end
55
53
  end
56
54
  end
57
55
  end
@@ -9,20 +9,26 @@ module Ember
9
9
  source_root File.expand_path("../../templates", __FILE__)
10
10
 
11
11
  desc "Creates a new Ember.js controller"
12
+
13
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
12
14
  class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
13
15
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
14
16
  class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
15
17
 
18
+
16
19
  def create_controller_files
17
- file_path = File.join(ember_path, 'controllers', class_path, "#{file_name}_controller.js")
20
+ file_path = File.join(ember_path, 'controllers', class_path, "#{file_name}_controller.#{engine_extension}")
21
+
18
22
  if options.array?
19
- template 'array_controller.js', file_path
23
+ template "array_controller.#{engine_extension}", file_path
20
24
  elsif options.object?
21
- template 'object_controller.js', file_path
25
+ template "object_controller.#{engine_extension}", file_path
22
26
  else
23
- template 'controller.js', file_path
27
+ template "controller.#{engine_extension}", file_path
24
28
  end
25
29
  end
30
+
31
+
26
32
  end
27
33
  end
28
34
  end
@@ -14,6 +14,18 @@ module Ember
14
14
  end
15
15
  end
16
16
 
17
+
18
+ def class_name
19
+ (class_path + [file_name]).map!{ |m| m.camelize }.join()
20
+ end
21
+
22
+ def handlebars_template_path
23
+ File.join(class_path, file_name).gsub(/^\//, '')
24
+ end
25
+
26
+ def engine_extension
27
+ @engine_extension ||= "js.#{options[:javascript_engine]}".sub('js.js','js')
28
+ end
17
29
  end
18
30
  end
19
31
  end
@@ -29,10 +29,10 @@ module Ember
29
29
  end
30
30
 
31
31
  Dir.chdir git_root do
32
- say_status("building", "bundle && bundle exec rake dist", :green)
32
+ say_status("building", "bundle && bundle exec rake clean dist", :green)
33
33
  Bundler.with_clean_env do
34
34
  cmd "bundle --gemfile #{gem_file}"
35
- cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake dist}
35
+ cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake clean dist}
36
36
  end
37
37
  end
38
38
 
@@ -65,10 +65,10 @@ module Ember
65
65
  end
66
66
 
67
67
  Dir.chdir git_root do
68
- say_status("building", "bundle && bundle exec rake", :green)
68
+ say_status("building", "bundle && bundle exec rake clean dist", :green)
69
69
  Bundler.with_clean_env do
70
70
  cmd "bundle --gemfile #{gem_file}"
71
- cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake}
71
+ cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake clean dist}
72
72
  end
73
73
  end
74
74
 
@@ -7,30 +7,30 @@ module Ember
7
7
  include Ember::Generators::GeneratorHelpers
8
8
 
9
9
  source_root File.expand_path("../../templates", __FILE__)
10
+ desc "creates a new ember.js model"
10
11
  argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..."
11
-
12
- desc "Creates a new Ember.js model"
13
- class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
12
+ class_option :javascript_engine, :desc => "engine for javascripts"
13
+ class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "custom ember app path"
14
14
 
15
15
  def create_model_files
16
- template 'model.js', File.join(ember_path, 'models', class_path, "#{file_name}.js")
16
+ file_path = File.join(ember_path, 'models', class_path, "#{file_name}.#{engine_extension}")
17
+ template "model.#{engine_extension}", file_path
17
18
  end
18
19
 
19
20
  private
20
21
  EMBER_TYPE_LOOKUP = {
21
- nil => 'string',
22
-
23
- :binary => 'string',
24
- :string => 'string',
25
- :text => 'string',
26
- :boolean => 'boolean',
27
- :date => 'date',
28
- :datetime => 'date',
29
- :time => 'date',
30
- :timestamp => 'date',
31
- :decimal => 'number',
32
- :float => 'number',
33
- :integer => 'number',
22
+ nil => 'string',
23
+ :binary => 'string',
24
+ :string => 'string',
25
+ :text => 'string',
26
+ :boolean => 'boolean',
27
+ :date => 'date',
28
+ :datetime =>'date',
29
+ :time => 'date',
30
+ :timestamp => 'date',
31
+ :decimal => 'number',
32
+ :float => 'number',
33
+ :integer => 'number',
34
34
  :primary_key => 'number'
35
35
  }
36
36
 
@@ -0,0 +1,30 @@
1
+ require 'ember/version'
2
+ require 'generators/ember/generator_helpers'
3
+
4
+ module Ember
5
+ module Generators
6
+ class ResourceGenerator < ::Rails::Generators::NamedBase
7
+ include Ember::Generators::GeneratorHelpers
8
+
9
+ source_root File.expand_path("../../templates", __FILE__)
10
+
11
+ desc "Creates a new Ember.js router, controller, view and template"
12
+
13
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
14
+ class_option :skip_route, :type => :boolean, :default => false, :desc => "Don't create route"
15
+ class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
16
+ class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
17
+
18
+
19
+ def create_resource_files
20
+
21
+ invoke('ember:route', [ name ], options) unless options[:skip_route]
22
+ invoke('ember:controller', [ name ], options)
23
+ invoke('ember:view', [ name ], options)
24
+ invoke('ember:template', [ name ], options)
25
+ end
26
+
27
+
28
+ end
29
+ end
30
+ end
@@ -10,10 +10,11 @@ module Ember
10
10
 
11
11
  desc "Creates a new Ember.js route"
12
12
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
13
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
13
14
 
14
15
  def create_route_files
15
- file_path = File.join(ember_path, 'routes', class_path, "#{file_name}_route.js")
16
- template 'route.js', file_path
16
+ file_path = File.join(ember_path, 'routes', class_path, "#{file_name}_route.#{engine_extension}")
17
+ template "route.#{engine_extension}", file_path
17
18
  end
18
19
  end
19
20
  end
@@ -0,0 +1,21 @@
1
+ require 'ember/version'
2
+ require 'generators/ember/generator_helpers'
3
+
4
+ module Ember
5
+ module Generators
6
+ class TemplateGenerator < ::Rails::Generators::NamedBase
7
+ include Ember::Generators::GeneratorHelpers
8
+
9
+ source_root File.expand_path("../../templates", __FILE__)
10
+
11
+ desc "Creates a new Ember.js template"
12
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
13
+
14
+
15
+ def create_template_files
16
+ template 'template.handlebars', File.join('app/assets/javascripts/templates', class_path, "#{file_name}.handlebars")
17
+ end
18
+
19
+ end
20
+ end
21
+ end
@@ -9,15 +9,14 @@ module Ember
9
9
  source_root File.expand_path("../../templates", __FILE__)
10
10
 
11
11
  desc "Creates a new Ember.js view and associated Handlebars template"
12
- class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
12
+ class_option :javascript_engine, :desc => "Engine for JavaScripts"
13
13
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
14
- class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
14
+ class_option :with_template, :type => :boolean, :default => false, :desc => "Create template for this view"
15
15
 
16
16
  def create_view_files
17
- template 'view.js', File.join(ember_path, 'views', class_path, "#{file_name}_view.js")
18
- template 'view.handlebars', File.join(ember_path, 'templates', class_path, "#{file_name}.handlebars")
19
- invoke('ember:controller', [ file_name ], options)
20
- invoke('ember:route', [ file_name ], options)
17
+ file_path = File.join(ember_path, 'views', class_path, "#{file_name}_view.#{engine_extension}")
18
+ template "view.#{engine_extension}", file_path
19
+ invoke('ember:template', [ name ], options) if options[:with_template]
21
20
  end
22
21
 
23
22
  end
@@ -0,0 +1,9 @@
1
+ #= require ./store
2
+ #= require_tree ./models
3
+ #= require_tree ./controllers
4
+ #= require_tree ./views
5
+ #= require_tree ./helpers
6
+ #= require_tree ./templates
7
+ #= require_tree ./routes
8
+ #= require ./router
9
+ #= require_self
@@ -0,0 +1,7 @@
1
+ //= require handlebars
2
+ //= require ember
3
+ //= require ember-data
4
+ //= require_self
5
+ //= require <%= application_name.underscore %>
6
+ <%= application_name.camelize %> = Ember.Application.create();
7
+
@@ -0,0 +1,7 @@
1
+ #= require handlebars
2
+ #= require ember
3
+ #= require ember-data
4
+ #= require_self
5
+ #= require <%= application_name.underscore %>
6
+ window.<%= application_name.camelize %> = Ember.Application.create()
7
+
@@ -0,0 +1,3 @@
1
+ <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ArrayController.extend({
2
+
3
+ })
@@ -0,0 +1,4 @@
1
+ <%= application_name.camelize %>.<%= class_name %>Controller = Ember.Controller.extend({
2
+
3
+ })
4
+
@@ -1,5 +1,11 @@
1
1
  <%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({
2
- <% attributes.each_index do |idx| -%>
3
- <%= attributes[idx][:name].camelize(:lower) %>: DS.attr('<%= attributes[idx][:type] %>')<% if (idx < attributes.length-1) %>,<% end %>
2
+ <% attributes.each_with_index do |attribute, idx| -%>
3
+ <%= attribute[:name].camelize(:lower) %>: <%=
4
+ if %w(references belongs_to).member?(attribute[:type])
5
+ "DS.belongsTo('%s.%s')" % [application_name.camelize, attribute[:name].camelize]
6
+ else
7
+ "DS.attr('%s')" % attribute[:type]
8
+ end
9
+ %><% if (idx < attributes.length-1) %>,<% end %>
4
10
  <% end -%>
5
11
  });
@@ -0,0 +1,4 @@
1
+ <%= application_name.camelize %>.<%= class_name %> = DS.Model.extend<%= "()" if attributes.length == 0 %>
2
+ <% attributes.each_index do |idx| -%>
3
+ <%= attributes[idx][:name].camelize(:lower) %>: DS.attr('<%= attributes[idx][:type] %>')
4
+ <% end -%>
@@ -0,0 +1,3 @@
1
+ <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ObjectController.extend({
2
+
3
+ })
@@ -1,3 +1,3 @@
1
- <%= application_name.camelize %>.<%= class_name %>Route = Ember.Route.extend({
1
+ <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
2
2
 
3
3
  });
@@ -0,0 +1,3 @@
1
+ <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
2
+
3
+ })
@@ -0,0 +1,3 @@
1
+ <%= application_name.camelize %>.Router.map (match)->
2
+ # match('/').to('index')
3
+
@@ -0,0 +1,4 @@
1
+ <%= application_name.camelize %>.Store = DS.Store.extend
2
+ revision: 4
3
+ adapter: DS.RESTAdapter.create()
4
+
@@ -1,2 +1,3 @@
1
1
  <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend({
2
+ templateName: '<%= handlebars_template_path %>'
2
3
  });
@@ -0,0 +1,2 @@
1
+ <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend
2
+ templateName: '<%= handlebars_template_path %>'
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-rails
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.12.0
4
5
  prerelease:
5
- version: 0.11.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Keith Pitt
@@ -12,152 +12,152 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-02-28 00:00:00.000000000 Z
15
+ date: 2013-04-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- type: :runtime
19
18
  name: execjs
20
19
  requirement: !ruby/object:Gem::Requirement
20
+ none: false
21
21
  requirements:
22
22
  - - ! '>='
23
23
  - !ruby/object:Gem::Version
24
24
  version: '1.2'
25
- none: false
25
+ type: :runtime
26
+ prerelease: false
26
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
27
29
  requirements:
28
30
  - - ! '>='
29
31
  - !ruby/object:Gem::Version
30
32
  version: '1.2'
31
- none: false
32
- prerelease: false
33
33
  - !ruby/object:Gem::Dependency
34
- type: :runtime
35
34
  name: railties
36
35
  requirement: !ruby/object:Gem::Requirement
36
+ none: false
37
37
  requirements:
38
38
  - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.1'
41
- none: false
41
+ type: :runtime
42
+ prerelease: false
42
43
  version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
43
45
  requirements:
44
46
  - - ! '>='
45
47
  - !ruby/object:Gem::Version
46
48
  version: '3.1'
47
- none: false
48
- prerelease: false
49
49
  - !ruby/object:Gem::Dependency
50
- type: :runtime
51
50
  name: active_model_serializers
52
51
  requirement: !ruby/object:Gem::Requirement
52
+ none: false
53
53
  requirements:
54
54
  - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
- none: false
57
+ type: :runtime
58
+ prerelease: false
58
59
  version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
59
61
  requirements:
60
62
  - - ! '>='
61
63
  - !ruby/object:Gem::Version
62
64
  version: '0'
63
- none: false
64
- prerelease: false
65
65
  - !ruby/object:Gem::Dependency
66
- type: :runtime
67
66
  name: barber
68
67
  requirement: !ruby/object:Gem::Requirement
68
+ none: false
69
69
  requirements:
70
70
  - - ! '>='
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.4.1
73
- none: false
73
+ type: :runtime
74
+ prerelease: false
74
75
  version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
75
77
  requirements:
76
78
  - - ! '>='
77
79
  - !ruby/object:Gem::Version
78
80
  version: 0.4.1
79
- none: false
80
- prerelease: false
81
81
  - !ruby/object:Gem::Dependency
82
- type: :runtime
83
82
  name: ember-source
84
83
  requirement: !ruby/object:Gem::Requirement
84
+ none: false
85
85
  requirements:
86
86
  - - ! '>='
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
89
- none: false
88
+ version: 1.0.0.rc2.2
89
+ type: :runtime
90
+ prerelease: false
90
91
  version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
91
93
  requirements:
92
94
  - - ! '>='
93
95
  - !ruby/object:Gem::Version
94
- version: '0'
95
- none: false
96
- prerelease: false
96
+ version: 1.0.0.rc2.2
97
97
  - !ruby/object:Gem::Dependency
98
- type: :runtime
99
98
  name: ember-data-source
100
99
  requirement: !ruby/object:Gem::Requirement
100
+ none: false
101
101
  requirements:
102
102
  - - ! '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
- none: false
105
+ type: :runtime
106
+ prerelease: false
106
107
  version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
107
109
  requirements:
108
110
  - - ! '>='
109
111
  - !ruby/object:Gem::Version
110
112
  version: '0'
111
- none: false
112
- prerelease: false
113
113
  - !ruby/object:Gem::Dependency
114
- type: :development
115
114
  name: bundler
116
115
  requirement: !ruby/object:Gem::Requirement
116
+ none: false
117
117
  requirements:
118
118
  - - ! '>='
119
119
  - !ruby/object:Gem::Version
120
120
  version: 1.2.2
121
- none: false
121
+ type: :development
122
+ prerelease: false
122
123
  version_requirements: !ruby/object:Gem::Requirement
124
+ none: false
123
125
  requirements:
124
126
  - - ! '>='
125
127
  - !ruby/object:Gem::Version
126
128
  version: 1.2.2
127
- none: false
128
- prerelease: false
129
129
  - !ruby/object:Gem::Dependency
130
- type: :development
131
130
  name: appraisal
132
131
  requirement: !ruby/object:Gem::Requirement
132
+ none: false
133
133
  requirements:
134
134
  - - ! '>='
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
- none: false
137
+ type: :development
138
+ prerelease: false
138
139
  version_requirements: !ruby/object:Gem::Requirement
140
+ none: false
139
141
  requirements:
140
142
  - - ! '>='
141
143
  - !ruby/object:Gem::Version
142
144
  version: '0'
143
- none: false
144
- prerelease: false
145
145
  - !ruby/object:Gem::Dependency
146
- type: :development
147
146
  name: tzinfo
148
147
  requirement: !ruby/object:Gem::Requirement
148
+ none: false
149
149
  requirements:
150
150
  - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- none: false
153
+ type: :development
154
+ prerelease: false
154
155
  version_requirements: !ruby/object:Gem::Requirement
156
+ none: false
155
157
  requirements:
156
158
  - - ! '>='
157
159
  - !ruby/object:Gem::Version
158
160
  version: '0'
159
- none: false
160
- prerelease: false
161
161
  description:
162
162
  email:
163
163
  - me@keithpitt.com
@@ -180,20 +180,33 @@ files:
180
180
  - lib/generators/ember/generator_helpers.rb
181
181
  - lib/generators/ember/install_generator.rb
182
182
  - lib/generators/ember/model_generator.rb
183
+ - lib/generators/ember/resource_generator.rb
183
184
  - lib/generators/ember/resource_override.rb
184
185
  - lib/generators/ember/route_generator.rb
186
+ - lib/generators/ember/template_generator.rb
185
187
  - lib/generators/ember/view_generator.rb
186
188
  - lib/generators/templates/app.js
189
+ - lib/generators/templates/app.js.coffee
187
190
  - lib/generators/templates/application.handlebars
191
+ - lib/generators/templates/application.js
192
+ - lib/generators/templates/application.js.coffee
188
193
  - lib/generators/templates/array_controller.js
194
+ - lib/generators/templates/array_controller.js.coffee
189
195
  - lib/generators/templates/controller.js
196
+ - lib/generators/templates/controller.js.coffee
190
197
  - lib/generators/templates/model.js
198
+ - lib/generators/templates/model.js.coffee
191
199
  - lib/generators/templates/object_controller.js
200
+ - lib/generators/templates/object_controller.js.coffee
192
201
  - lib/generators/templates/route.js
202
+ - lib/generators/templates/route.js.coffee
193
203
  - lib/generators/templates/router.js
204
+ - lib/generators/templates/router.js.coffee
194
205
  - lib/generators/templates/store.js
195
- - lib/generators/templates/view.handlebars
206
+ - lib/generators/templates/store.js.coffee
207
+ - lib/generators/templates/template.handlebars
196
208
  - lib/generators/templates/view.js
209
+ - lib/generators/templates/view.js.coffee
197
210
  homepage: https://github.com/emberjs/ember-rails
198
211
  licenses: []
199
212
  post_install_message:
@@ -201,23 +214,23 @@ rdoc_options: []
201
214
  require_paths:
202
215
  - lib
203
216
  required_ruby_version: !ruby/object:Gem::Requirement
217
+ none: false
204
218
  requirements:
205
219
  - - ! '>='
206
220
  - !ruby/object:Gem::Version
207
- hash: -4555322059551747545
221
+ version: '0'
208
222
  segments:
209
223
  - 0
210
- version: '0'
211
- none: false
224
+ hash: 4189479251687179927
212
225
  required_rubygems_version: !ruby/object:Gem::Requirement
226
+ none: false
213
227
  requirements:
214
228
  - - ! '>='
215
229
  - !ruby/object:Gem::Version
216
- hash: -4555322059551747545
230
+ version: '0'
217
231
  segments:
218
232
  - 0
219
- version: '0'
220
- none: false
233
+ hash: 4189479251687179927
221
234
  requirements: []
222
235
  rubyforge_project:
223
236
  rubygems_version: 1.8.23