ember-cli-rails 0.0.6 → 0.0.7

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: e781eea1e9e1586408d6af0ffb8438989446554b
4
- data.tar.gz: 5b40c7081f54e4a51447393c91bf6c8f1cdb0501
3
+ metadata.gz: 70de2db30c3a569a3de223a66d4333cd381797b0
4
+ data.tar.gz: 03da59f19c3738116943f847e0a4c9dd02ad3c97
5
5
  SHA512:
6
- metadata.gz: 21dfad6429f5ee62379deaed39cb33d09b570c1fd0796665b8c35e7b76a6edfeeb0805a203284b1aaeb6d7a598bf60fbd78f1ec67dfe325b34957fd4f59e9d6f
7
- data.tar.gz: 42a6d2cd995a60ded8da52383bd8ce16ccdd9a3af0504c36ae0b2ea432eadce1657c97c5061046cb5d3aeaa6e03d87a15427a0e15c5eb04998885497d680b3c6
6
+ metadata.gz: 28d438311ffa4570d3ab8fbac42e8c267f5f4e93e07ac76d3d8b31f91e157db803ef36b6aa30c150774e35ec066f24f49df1f3fc8364627af8d4e55ac438daa6
7
+ data.tar.gz: bc214bc7bd4e8a320a3574539d9893d4852690e581d1bf4c848f8986c6e71ce3d9da62f7c0e314ecfa8137ccf20b7346e8266992d103e0170768078f4f8f227c
@@ -11,13 +11,20 @@ module EmberCLI
11
11
  end
12
12
 
13
13
  initializer "ember-cli-rails.enable" do
14
- EmberCLI.enable! if EmberCLI::Helpers.non_production?
14
+ EmberCLI.enable! if enable?
15
15
  end
16
16
 
17
17
  rake_tasks do
18
18
  require "sprockets/rails/task"
19
- EmberCLI::Helpers.override_assets_precompile_task!
19
+ Helpers.override_assets_precompile_task!
20
20
  end
21
21
 
22
+ def enable?
23
+ !skip_ember_cli_init? && Helpers.non_production?
24
+ end
25
+
26
+ def skip_ember_cli_init?
27
+ ENV.fetch("SKIP_EMBER", false)
28
+ end
22
29
  end
23
30
  end
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-cli-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '4.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: sprockets-rails
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.0'
28
42
  description:
29
43
  email:
30
44
  - pavel@pravosud.com