ember-rails 0.16.3 → 0.16.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ember/rails/version.rb +1 -1
- data/lib/ember_rails.rb +13 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e193b56bc41d164725875def1d5d905c4ce8894b
|
4
|
+
data.tar.gz: d8235dd954452a5746f57be761093ec88e2afb01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e15248446b595919ad8b59715b11790fed1da3284b0767fef2cf9d879dcff0291fa5a0efb5272dc1e37aabba69fb06eabdd7878f3adbf6c076dd84de91fee639
|
7
|
+
data.tar.gz: 4c871faecfb02c5d2d77c3be8028a81bfb7f85e84e2350bf2a07342bc542ae95835fd4a2f5a6439361e910a8d4aa6ccdb2b4701f61f84a5ee1749013a24fde8b
|
data/lib/ember/rails/version.rb
CHANGED
data/lib/ember_rails.rb
CHANGED
@@ -20,7 +20,15 @@ module Ember
|
|
20
20
|
require "generators/ember/resource_override"
|
21
21
|
end
|
22
22
|
|
23
|
-
initializer "ember_rails.
|
23
|
+
initializer "ember_rails.setup_vendor_on_locale", :after => "ember_rails.setup", :group => :all do |app|
|
24
|
+
variant = app.config.ember.variant || (::Rails.env.production? ? :production : :development)
|
25
|
+
|
26
|
+
# Allow a local variant override
|
27
|
+
ember_path = app.root.join("vendor/assets/ember/#{variant}")
|
28
|
+
app.assets.prepend_path(ember_path.to_s) if ember_path.exist?
|
29
|
+
end
|
30
|
+
|
31
|
+
initializer "ember_rails.copy_vendor_to_local", :after => "ember_rails.setup", :group => :all do |app|
|
24
32
|
variant = app.config.ember.variant || (::Rails.env.production? ? :production : :development)
|
25
33
|
|
26
34
|
# Copy over the desired ember and ember-data bundled in
|
@@ -38,20 +46,13 @@ module Ember
|
|
38
46
|
ember_data_ext = variant == :production ? ".prod.js" : ".js"
|
39
47
|
FileUtils.cp(::Ember::Data::Source.bundled_path_for("ember-data#{ember_data_ext}"), tmp_path.join("ember-data.js"))
|
40
48
|
|
41
|
-
# Copy ember-data source map to tmp folder.
|
42
|
-
if File.exist?(::Ember::Data::Source.bundled_path_for("ember-data.js.map")) # Source maps are present in ember-data-source gem, starting from version 1.0.0-beta.14.1
|
43
|
-
FileUtils.cp(::Ember::Data::Source.bundled_path_for("ember-data.js.map"), tmp_path.join("ember-data.js.map"))
|
44
|
-
end
|
45
|
-
|
46
49
|
app.assets.append_path(tmp_path)
|
50
|
+
end
|
47
51
|
|
48
|
-
|
49
|
-
|
52
|
+
initializer "ember_rails.setup_vendor", :after => "ember_rails.copy_vendor_to_local", :group => :all do |app|
|
53
|
+
app.assets.append_path(::Ember::Source.bundled_path_for(nil))
|
54
|
+
app.assets.append_path(::Ember::Data::Source.bundled_path_for(nil))
|
50
55
|
app.assets.append_path(File.expand_path('../', ::Handlebars::Source.bundled_path))
|
51
|
-
|
52
|
-
# Allow a local variant override
|
53
|
-
ember_path = app.root.join("vendor/assets/ember/#{variant}")
|
54
|
-
app.assets.prepend_path(ember_path.to_s) if ember_path.exist?
|
55
56
|
end
|
56
57
|
|
57
58
|
initializer "ember_rails.es5_default", :group => :all do |app|
|
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.16.
|
4
|
+
version: 0.16.4
|
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-02-
|
14
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: execjs
|