ember-rails 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/README.md +36 -18
  2. data/lib/ember/rails/engine.rb +5 -10
  3. data/lib/ember/rails/version.rb +1 -1
  4. data/lib/ember_rails.rb +3 -2
  5. data/lib/generators/ember/bootstrap_generator.rb +1 -1
  6. data/lib/generators/ember/controller_generator.rb +1 -1
  7. data/lib/generators/ember/generator_helpers.rb +4 -2
  8. data/lib/generators/ember/install_generator.rb +20 -73
  9. data/lib/generators/ember/model_generator.rb +1 -1
  10. data/lib/generators/ember/resource_generator.rb +1 -2
  11. data/lib/generators/ember/route_generator.rb +1 -1
  12. data/lib/generators/ember/template_generator.rb +0 -1
  13. data/lib/generators/ember/view_generator.rb +1 -1
  14. data/lib/generators/templates/application.js +2 -0
  15. data/lib/generators/templates/application.js.coffee +2 -0
  16. data/lib/generators/templates/array_controller.js +2 -0
  17. data/lib/generators/templates/array_controller.js.coffee +2 -0
  18. data/lib/generators/templates/controller.js +2 -0
  19. data/lib/generators/templates/controller.js.coffee +2 -0
  20. data/lib/generators/templates/model.js +3 -1
  21. data/lib/generators/templates/model.js.coffee +10 -2
  22. data/lib/generators/templates/object_controller.js +2 -0
  23. data/lib/generators/templates/object_controller.js.coffee +2 -0
  24. data/lib/generators/templates/route.js +2 -0
  25. data/lib/generators/templates/route.js.coffee +2 -0
  26. data/lib/generators/templates/router.js +3 -1
  27. data/lib/generators/templates/router.js.coffee +4 -2
  28. data/lib/generators/templates/store.js +4 -1
  29. data/lib/generators/templates/store.js.coffee +3 -1
  30. data/lib/generators/templates/view.js +2 -0
  31. data/lib/generators/templates/view.js.coffee +2 -0
  32. metadata +53 -13
  33. data/lib/ember/handlebars/version.rb +0 -5
  34. data/lib/ember/version.rb +0 -3
data/README.md CHANGED
@@ -7,26 +7,45 @@ The gem will also pre-compile your handlebars templates when building your asset
7
7
  You can see an example of how to use the gem [here](https://github.com/keithpitt/ember-rails-example). There is also a great tutorial by [Dan Gebhardt](https://twitter.com/#!/dgeb) called "[Beginning Ember.js on Rails](http://www.cerebris.com/blog/2012/01/24/beginning-ember-js-on-rails-part-1/)" which is a great read if you're just starting out with Rails and Ember.js
8
8
 
9
9
  ## Getting started
10
+ 1. Add the gem to your application Gemfile:
11
+ ```ruby
12
+ gem 'ember-rails'
13
+ gem 'ember-source', '1.0.0.rc5' # or the version you need
14
+ gem 'handlebars-source', '1.0.0.rc4' # or the version you need
15
+ ```
10
16
 
11
- Add the gem to your application Gemfile:
17
+ 2. Run `bundle install`
12
18
 
13
- gem "ember-rails"
14
- gem "ember-source", "1.0.0rc3.2" # or whatever release of
15
- # ember-source you desire
19
+ 3. [Optional] Configure the ember variant in your environment files (i.e. development.rb, production.rb). If you don't configure this, the version of Ember used defaults to development when the Rails environment is development, and similarly for production.
20
+ ```ruby
21
+ config.ember.variant = :development # or :production
22
+ ```
16
23
 
17
- Run `bundle install` and use the ember-rails generator to add the necessary dependencies.
24
+ 4. Next, generate the application structure:
25
+ ```shell
26
+ rails generate ember:bootstrap
27
+ ```
18
28
 
19
- Ember-rails will use the production build of Ember.js when Rails is running in
20
- production mode, and the development build otherwise.
29
+ 5. Restart your server (if it's running)
21
30
 
22
- ## Setting Ember Variant
23
31
 
24
- After running `bundle install` make sure you set the ember variant for your enviroments in their respected files with.
32
+ Notes:
25
33
 
26
- config.ember.variant = :development # or :production
34
+ To install the latest builds of ember and ember-data:
35
+ ```shell
36
+ rails generate ember:install --head
37
+ ```
27
38
 
28
- Not doing so will result in Sprockets not being able to resolve Ember's dependencies.
39
+ ## For CoffeeScript support
40
+ 1. Add coffee-rails to the Gemfile
41
+ ```ruby
42
+ gem 'coffee-rails'
43
+ ```
29
44
 
45
+ 2. Run the bootstrap generator in step 4 with an extra flag instead:
46
+ ```sh
47
+ rails g ember:bootstrap -g --javascript-engine coffee
48
+ ```
30
49
 
31
50
  ## Architecture
32
51
 
@@ -70,8 +89,6 @@ file to setup application namespace and initial requires:
70
89
  If you want to avoid `.gitkeep` files, use the `skip git` option like
71
90
  this: `rails g ember:bootstrap -g`.
72
91
 
73
- _(CoffeeScript support: just make sure you have `gem 'coffee-rails'` in your application Gemfile.)_
74
-
75
92
  Ask Rails to serve HandlebarsJS and pre-compile templates to Ember
76
93
  by putting each template in a dedicated ".js.hjs", ".hbs" or ".handlebars" file
77
94
  (e.g. `app/assets/javascripts/templates/admin_panel.handlebars`)
@@ -108,19 +125,20 @@ Now a single line in the layout loads everything:
108
125
  If you use Slim or Haml templates, you can use handlebars filter :
109
126
 
110
127
  handlebars:
111
- {{#view Ember.Button}}OK{{/view}}
128
+ <button {{action anActionName}}>OK</button>
112
129
 
113
130
  It will be translated as :
114
131
 
115
132
  <script type="text/x-handlebars">
116
- {{#view Ember.Button}}OK{{/view}}
133
+ <button {{action anActionName}}>OK</button>
117
134
  </script>
118
135
 
119
136
  ## Specifying Different Versions of Ember/Handlebars/Ember-Data
120
137
 
138
+ ![Ember Data Warning](ember-data-in-progress.png)
121
139
  By default, ember-rails ships with the latest version of
122
- [Ember](https://rubygems.org/gems/ember-source/versions) (rc1),
123
- [Handlebars](https://rubygems.org/gems/handlebars-source/versions) (rc3),
140
+ [Ember](https://rubygems.org/gems/ember-source/versions),
141
+ [Handlebars](https://rubygems.org/gems/handlebars-source/versions),
124
142
  and [Ember-Data](https://rubygems.org/gems/ember-data-source/versions).
125
143
 
126
144
  To specify a different version that'll be used for both template
@@ -149,7 +167,7 @@ If at any point you need to update Ember.js from master, you can do that with
149
167
 
150
168
  rails generate ember:install --head
151
169
 
152
- This will clone both Ember.js and Ember Data from GitHub, build it and copy to the right directory.
170
+ This will fetch both Ember.js and Ember Data from [http://builds.emberjs.com/](http://builds.emberjs.com/) and copy to the right directory.
153
171
 
154
172
  ## Note on Patches/Pull Requests
155
173
 
@@ -10,16 +10,11 @@ module Ember
10
10
  config.handlebars.templates_root = "templates"
11
11
  config.handlebars.templates_path_separator = '/'
12
12
 
13
- initializer "ember_rails.setup", :after => :append_assets_path, :group => :all do |app|
14
- sprockets = if ::Rails::VERSION::MAJOR == 4
15
- Sprockets.respond_to?('register_engine') ? Sprockets : app.assets
16
- else
17
- app.assets
18
- end
19
-
20
- sprockets.register_engine '.handlebars', Ember::Handlebars::Template
21
- sprockets.register_engine '.hbs', Ember::Handlebars::Template
22
- sprockets.register_engine '.hjs', Ember::Handlebars::Template
13
+ config.before_initialize do |app|
14
+ Sprockets::Engines #force autoloading
15
+ Sprockets.register_engine '.handlebars', Ember::Handlebars::Template
16
+ Sprockets.register_engine '.hbs', Ember::Handlebars::Template
17
+ Sprockets.register_engine '.hjs', Ember::Handlebars::Template
23
18
  end
24
19
  end
25
20
  end
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Rails
3
- VERSION = '0.12.0'
3
+ VERSION = '0.13.0'
4
4
  end
5
5
  end
data/lib/ember_rails.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'rails'
2
2
  require 'ember/rails/version'
3
- require 'ember/version'
4
3
  require 'ember/rails/engine'
5
4
  require 'ember/source'
6
5
  require 'ember/data/source'
@@ -22,7 +21,9 @@ module Ember
22
21
  end
23
22
 
24
23
  initializer "ember_rails.setup_vendor", :after => "ember_rails.setup", :group => :all do |app|
25
- if variant = app.config.ember.variant
24
+ if variant = app.config.ember.variant || ::Rails.env.test?
25
+ # test environments should default to development
26
+ variant ||= :development
26
27
  # Copy over the desired ember, ember-data, and handlebars bundled in
27
28
  # ember-source, ember-data-source, and handlebars-source to a tmp folder.
28
29
  tmp_path = app.root.join("tmp/ember-rails")
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -13,6 +12,7 @@ module Ember
13
12
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
14
13
  class_option :skip_git, :type => :boolean, :aliases => "-g", :default => false, :desc => "Skip Git keeps"
15
14
  class_option :javascript_engine, :desc => "Engine for JavaScripts"
15
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :desc => "Custom ember app name"
16
16
 
17
17
  def inject_ember
18
18
  begin
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -14,6 +13,7 @@ module Ember
14
13
  class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
15
14
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
16
15
  class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
16
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :desc => "Custom ember app name"
17
17
 
18
18
 
19
19
  def create_controller_files
@@ -7,10 +7,12 @@ module Ember
7
7
  end
8
8
 
9
9
  def application_name
10
- if defined?(::Rails) && ::Rails.application
10
+ if options[:app_name]
11
+ options[:app_name]
12
+ elsif defined?(::Rails) && ::Rails.application
11
13
  ::Rails.application.class.name.split('::').first
12
14
  else
13
- "app"
15
+ "App"
14
16
  end
15
17
  end
16
18
 
@@ -1,95 +1,42 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
2
+ require 'net/http'
3
+ require 'uri'
4
+ require 'fileutils'
3
5
 
4
6
  module Ember
5
7
  module Generators
6
8
  class InstallGenerator < ::Rails::Generators::Base
7
9
  desc "Install Ember.js into your vendor folder"
8
- class_option :head, :type => :boolean, :default => false, :desc => "Download latest Ember.js from GitHub and copy it into your project"
10
+ class_option :head, :type => :boolean, :default => false, :desc => "Download latest Ember.js from GitHub and fetch it into your project"
9
11
 
10
- def copy_ember
12
+ def fetch_ember
11
13
  if options.head?
12
-
13
- git_root = File.expand_path "~/.ember"
14
- gem_file = File.join git_root, "Gemfile"
15
-
16
- # If it doesn't exist yet
17
- unless File.exist?(git_root)
18
- command = %{git clone git://github.com/emberjs/ember.js.git "#{git_root}"}
19
- say_status("downloading", command, :green)
20
-
21
- cmd command
22
- else
23
- Dir.chdir git_root do
24
- command = "git fetch origin && git reset origin/master --hard"
25
- say_status("updating", command, :green)
26
-
27
- cmd command
28
- end
29
- end
30
-
31
- Dir.chdir git_root do
32
- say_status("building", "bundle && bundle exec rake clean dist", :green)
33
- Bundler.with_clean_env do
34
- cmd "bundle --gemfile #{gem_file}"
35
- cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake clean dist}
36
- end
37
- end
38
-
39
- source_paths << File.join(git_root, "dist")
40
-
41
- copy_file "ember.js", "vendor/assets/ember/development/ember.js"
42
- copy_file "ember.min.js", "vendor/assets/ember/production/ember.js"
14
+ fetch 'http://builds.emberjs.com/ember-latest.js', 'vendor/assets/ember/development/ember.js'
15
+ fetch 'http://builds.emberjs.com/ember-latest.min.js', 'vendor/assets/ember/production/ember.js'
43
16
  end
44
17
  end
45
18
 
46
- def copy_ember_data
19
+ def fetch_ember_data
47
20
  if options.head?
48
-
49
- git_root = File.expand_path "~/.ember-data"
50
- gem_file = File.join git_root, "Gemfile"
51
-
52
- # If it doesn't exist yet
53
- unless File.exist?(git_root)
54
- command = %{git clone git://github.com/emberjs/data.git "#{git_root}"}
55
- say_status("downloading", command, :green)
56
-
57
- cmd command
58
- else
59
- Dir.chdir git_root do
60
- command = "git fetch origin && git reset origin/master --hard"
61
- say_status("updating", command, :green)
62
-
63
- cmd command
64
- end
65
- end
66
-
67
- Dir.chdir git_root do
68
- say_status("building", "bundle && bundle exec rake clean dist", :green)
69
- Bundler.with_clean_env do
70
- cmd "bundle --gemfile #{gem_file}"
71
- cmd %{BUNDLE_GEMFILE="#{gem_file}" bundle exec rake clean dist}
72
- end
73
- end
74
-
75
- source_paths << File.join(git_root, "dist")
76
-
77
- copy_file "ember-data.js", "vendor/assets/ember/development/ember-data.js"
78
- copy_file "ember-data.min.js", "vendor/assets/ember/production/ember-data.js"
21
+ fetch 'http://builds.emberjs.com/ember-data-latest.js', 'vendor/assets/ember/development/ember-data.js'
22
+ fetch 'http://builds.emberjs.com/ember-data-latest.min.js', 'vendor/assets/ember/production/ember-data.js'
79
23
  end
80
24
  end
81
25
 
82
- private
26
+ private
27
+
28
+ def fetch(from, to)
29
+ message = "#{from} -> #{to}"
30
+ say_status("downloading:", message , :green)
83
31
 
84
- def cmd(command)
85
- out = `#{command}`
32
+ uri = URI(from)
86
33
 
87
- if $?.exitstatus != 0
88
- raise "Command error: command `#{command}` in directory #{Dir.pwd} has failed."
34
+ FileUtils.mkdir_p File.dirname(to)
35
+
36
+ open(to, 'w+') do |output|
37
+ output.puts Net::HTTP.get(uri).force_encoding("UTF-8")
89
38
  end
90
- out
91
39
  end
92
-
93
40
  end
94
41
  end
95
42
  end
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -11,6 +10,7 @@ module Ember
11
10
  argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..."
12
11
  class_option :javascript_engine, :desc => "engine for javascripts"
13
12
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "custom ember app path"
13
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :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}.#{engine_extension}")
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -14,6 +13,7 @@ module Ember
14
13
  class_option :skip_route, :type => :boolean, :default => false, :desc => "Don't create route"
15
14
  class_option :array, :type => :boolean, :default => false, :desc => "Create an Ember.ArrayController to represent multiple objects"
16
15
  class_option :object, :type => :boolean, :default => false, :desc => "Create an Ember.ObjectController to represent a single object"
16
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :desc => "Custom ember app name"
17
17
 
18
18
 
19
19
  def create_resource_files
@@ -24,7 +24,6 @@ module Ember
24
24
  invoke('ember:template', [ name ], options)
25
25
  end
26
26
 
27
-
28
27
  end
29
28
  end
30
29
  end
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -11,6 +10,7 @@ module Ember
11
10
  desc "Creates a new Ember.js route"
12
11
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
13
12
  class_option :javascript_engine, :desc => "Engine for JavaScripts"
13
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :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}_route.#{engine_extension}")
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -1,4 +1,3 @@
1
- require 'ember/version'
2
1
  require 'generators/ember/generator_helpers'
3
2
 
4
3
  module Ember
@@ -12,6 +11,7 @@ module Ember
12
11
  class_option :javascript_engine, :desc => "Engine for JavaScripts"
13
12
  class_option :ember_path, :type => :string, :aliases => "-d", :default => false, :desc => "Custom ember app path"
14
13
  class_option :with_template, :type => :boolean, :default => false, :desc => "Create template for this view"
14
+ class_option :app_name, :type => :string, :aliases => "-n", :default => false, :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}_view.#{engine_extension}")
@@ -3,5 +3,7 @@
3
3
  //= require ember-data
4
4
  //= require_self
5
5
  //= require <%= application_name.underscore %>
6
+
7
+ // for more details see: http://emberjs.com/guides/application/
6
8
  <%= application_name.camelize %> = Ember.Application.create();
7
9
 
@@ -3,5 +3,7 @@
3
3
  #= require ember-data
4
4
  #= require_self
5
5
  #= require <%= application_name.underscore %>
6
+
7
+ # for more details see: http://emberjs.com/guides/application/
6
8
  window.<%= application_name.camelize %> = Ember.Application.create()
7
9
 
@@ -1,3 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ArrayController.extend({
2
4
 
3
5
  });
@@ -1,3 +1,5 @@
1
+ # for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ArrayController.extend({
2
4
 
3
5
  })
@@ -1,3 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.Controller.extend({
2
4
 
3
5
  });
@@ -1,3 +1,5 @@
1
+ # for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.Controller.extend({
2
4
 
3
5
  })
@@ -1,3 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/models/defining-models/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({
2
4
  <% attributes.each_with_index do |attribute, idx| -%>
3
5
  <%= attribute[:name].camelize(:lower) %>: <%=
@@ -8,4 +10,4 @@
8
10
  end
9
11
  %><% if (idx < attributes.length-1) %>,<% end %>
10
12
  <% end -%>
11
- });
13
+ });
@@ -1,4 +1,12 @@
1
+ # for more details see: http://emberjs.com/guides/models/defining-models/
2
+
1
3
  <%= 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
+ <% attributes.each do |attribute| -%>
5
+ <%= attribute[:name].camelize(:lower) %>: <%=
6
+ if %w(references belongs_to).member?(attribute[:type])
7
+ "DS.belongsTo '%s.%s'" % [application_name.camelize, attribute[:name].camelize]
8
+ else
9
+ "DS.attr '%s'" % attribute[:type]
10
+ end
11
+ %>
4
12
  <% end -%>
@@ -1,3 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ObjectController.extend({
2
4
 
3
5
  });
@@ -1,3 +1,5 @@
1
+ # for more details see: http://emberjs.com/guides/controllers/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name %>Controller = Ember.ObjectController.extend({
2
4
 
3
5
  })
@@ -1,3 +1,5 @@
1
+ // For more information see: http://emberjs.com/guides/routing/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
2
4
 
3
5
  });
@@ -1,3 +1,5 @@
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
2
4
 
3
5
  })
@@ -1,3 +1,5 @@
1
- <%= application_name.camelize %>.Router.map(function() {
1
+ // For more information see: http://emberjs.com/guides/routing/
2
2
 
3
+ <%= application_name.camelize %>.Router.map(function() {
4
+ // this.resource('posts');
3
5
  });
@@ -1,3 +1,5 @@
1
- <%= application_name.camelize %>.Router.map (match)->
2
- # match('/').to('index')
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.Router.map ()->
4
+ # @resource('posts')
3
5
 
@@ -1,3 +1,6 @@
1
+ // http://emberjs.com/guides/models/defining-a-store/
2
+
1
3
  <%= application_name.camelize %>.Store = DS.Store.extend({
2
- revision: 11
4
+ revision: 11,
5
+ adapter: DS.RESTAdapter.create()
3
6
  });
@@ -1,4 +1,6 @@
1
+ # http://emberjs.com/guides/models/defining-a-store/
2
+
1
3
  <%= application_name.camelize %>.Store = DS.Store.extend
2
- revision: 4
4
+ revision: 11
3
5
  adapter: DS.RESTAdapter.create()
4
6
 
@@ -1,3 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/views/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend({
2
4
  templateName: '<%= handlebars_template_path %>'
3
5
  });
@@ -1,2 +1,4 @@
1
+ # for more details see: http://emberjs.com/guides/views/
2
+
1
3
  <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend
2
4
  templateName: '<%= handlebars_template_path %>'
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.12.0
4
+ version: 0.13.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-04-29 00:00:00.000000000 Z
15
+ date: 2013-06-23 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: execjs
@@ -85,7 +85,23 @@ dependencies:
85
85
  requirements:
86
86
  - - ! '>='
87
87
  - !ruby/object:Gem::Version
88
- version: 1.0.0.rc2.2
88
+ version: '0'
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: handlebars-source
99
+ requirement: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
89
105
  type: :runtime
90
106
  prerelease: false
91
107
  version_requirements: !ruby/object:Gem::Requirement
@@ -93,7 +109,7 @@ dependencies:
93
109
  requirements:
94
110
  - - ! '>='
95
111
  - !ruby/object:Gem::Version
96
- version: 1.0.0.rc2.2
112
+ version: '0'
97
113
  - !ruby/object:Gem::Dependency
98
114
  name: ember-data-source
99
115
  requirement: !ruby/object:Gem::Requirement
@@ -158,6 +174,38 @@ dependencies:
158
174
  - - ! '>='
159
175
  - !ruby/object:Gem::Version
160
176
  version: '0'
177
+ - !ruby/object:Gem::Dependency
178
+ name: ember-source
179
+ requirement: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - '='
183
+ - !ruby/object:Gem::Version
184
+ version: 1.0.0.rc6
185
+ type: :development
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ none: false
189
+ requirements:
190
+ - - '='
191
+ - !ruby/object:Gem::Version
192
+ version: 1.0.0.rc6
193
+ - !ruby/object:Gem::Dependency
194
+ name: handlebars-source
195
+ requirement: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - '='
199
+ - !ruby/object:Gem::Version
200
+ version: 1.0.0.rc4
201
+ type: :development
202
+ prerelease: false
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - '='
207
+ - !ruby/object:Gem::Version
208
+ version: 1.0.0.rc4
161
209
  description:
162
210
  email:
163
211
  - me@keithpitt.com
@@ -169,10 +217,8 @@ files:
169
217
  - README.md
170
218
  - LICENSE
171
219
  - lib/ember/handlebars/template.rb
172
- - lib/ember/handlebars/version.rb
173
220
  - lib/ember/rails/engine.rb
174
221
  - lib/ember/rails/version.rb
175
- - lib/ember/version.rb
176
222
  - lib/ember-rails.rb
177
223
  - lib/ember_rails.rb
178
224
  - lib/generators/ember/bootstrap_generator.rb
@@ -219,21 +265,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
265
  - - ! '>='
220
266
  - !ruby/object:Gem::Version
221
267
  version: '0'
222
- segments:
223
- - 0
224
- hash: 4189479251687179927
225
268
  required_rubygems_version: !ruby/object:Gem::Requirement
226
269
  none: false
227
270
  requirements:
228
271
  - - ! '>='
229
272
  - !ruby/object:Gem::Version
230
273
  version: '0'
231
- segments:
232
- - 0
233
- hash: 4189479251687179927
234
274
  requirements: []
235
275
  rubyforge_project:
236
- rubygems_version: 1.8.23
276
+ rubygems_version: 1.8.25
237
277
  signing_key:
238
278
  specification_version: 3
239
279
  summary: Ember for Rails 3.1+
@@ -1,5 +0,0 @@
1
- module Ember
2
- module Handlebars
3
- VERSION = "1.0.rc.3"
4
- end
5
- end
data/lib/ember/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Ember
2
- VERSION = "1.0.0-rc.1"
3
- end