ember-rails 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 857d69b6457718515597605b4b7a6fee74eea6b0
4
- data.tar.gz: 054906e52dc2d3d04d9ae241c4cfde1871cff4df
3
+ metadata.gz: 3803bfc851085f0201d4fe6e716a299b7b4324bd
4
+ data.tar.gz: 89dfe3a9f062c70dff7c34d5e3576fe3f827b9f8
5
5
  SHA512:
6
- metadata.gz: e8fd238eacab85e0de0658485283faf51469fda6227f5257d41aab71f31871d8ab601066a6f9d8c3f29724c62c91a2a80f75910912b271d4daf70ce8228172a7
7
- data.tar.gz: 5e8ad49780dec29b586c2b9b37bda647477010f8f9434828f867abe545d4e30b7c7404bdba249243a7117134847c4c72dc9ff58cf4bd4075d8f314c7bd971160
6
+ metadata.gz: 7c387544263a46c4a8a53a319a99ba0755501feb9d737a18e357f2de7310d4b55ec43a0582e0aa46b70eb8699b25084ca3e094ceeb34266d9a0b486075bbd0c4
7
+ data.tar.gz: 8df5554bbead81b419275a0d62a608c11d37d017885ca3bd4a4f4e6177636918995178627ad55b1d24a35cbbc21d2512256f13a41fb18d31d35bdbf098658846
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Rails
3
- VERSION = '0.18.0'
3
+ VERSION = '0.18.1'
4
4
  end
5
5
  end
@@ -61,6 +61,10 @@ module Ember
61
61
  app.assets.append_path(File.expand_path('../', ::Handlebars::Source.bundled_path)) if defined?(::Handlebars::Source)
62
62
  end
63
63
 
64
+ initializer "ember_rails.setup_ember_template_compiler", :after => "ember_rails.setup_vendor", :group => :all do |app|
65
+ Ember::Handlebars::Template.setup_ember_template_compiler(app.assets.resolve('ember-template-compiler.js'))
66
+ end
67
+
64
68
  initializer "ember_rails.es5_default", :group => :all do |app|
65
69
  if defined?(Closure::Compiler) && app.config.assets.js_compressor == :closure
66
70
  Closure::Compiler::DEFAULT_OPTIONS[:language_in] = 'ECMASCRIPT5'
@@ -3,7 +3,6 @@ require 'net/http'
3
3
  require 'uri'
4
4
  require 'fileutils'
5
5
 
6
-
7
6
  module Ember
8
7
  module Generators
9
8
  class InstallGenerator < ::Rails::Generators::Base
@@ -46,7 +45,6 @@ module Ember
46
45
  process_options
47
46
  end
48
47
 
49
-
50
48
  def ember
51
49
  begin
52
50
  unless options.ember_data_only?
@@ -69,7 +67,7 @@ module Ember
69
67
  end
70
68
  end
71
69
 
72
- private
70
+ private
73
71
 
74
72
  def get_ember_data_for(environment)
75
73
  # temporarily using a variable here until a stable release of
@@ -98,6 +96,13 @@ module Ember
98
96
  create_file "vendor/assets/ember/#{environment}/ember.js" do
99
97
  fetch url_for(channel, 'ember', environment), "vendor/assets/ember/#{environment}/ember.js"
100
98
  end
99
+
100
+ compiler_url = "#{base_url}/#{channel}/ember-template-compiler.js"
101
+ if resource_exist?(compiler_url)
102
+ create_file "vendor/assets/ember/#{environment}/ember-template-compiler.js" do
103
+ fetch "#{base_url}/#{channel}/ember-template-compiler.js", "vendor/assets/ember/#{environment}/ember-template-compiler.js"
104
+ end
105
+ end
101
106
  end
102
107
 
103
108
  def url_for(channel, component, environment)
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.18.0
4
+ version: 0.18.1
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: 2015-03-29 00:00:00.000000000 Z
14
+ date: 2015-04-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -89,7 +89,7 @@ dependencies:
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 0.1.0
92
+ version: 0.1.1
93
93
  - - "<"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '1.0'
@@ -99,7 +99,7 @@ dependencies:
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 0.1.0
102
+ version: 0.1.1
103
103
  - - "<"
104
104
  - !ruby/object:Gem::Version
105
105
  version: '1.0'