ember-cli-rails 0.0.12 → 0.0.13

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: b1afff3b40616e3a357f2907c34bd5da45b13ede
4
- data.tar.gz: b918460efbac494a204a1298a745363127f5f15c
3
+ metadata.gz: aedcf213d342ba10d97aeb8f2ba9aa752eb19e48
4
+ data.tar.gz: 31e23c9feeeab7cb015944ececced0ae806cd389
5
5
  SHA512:
6
- metadata.gz: 87d9dc5b9668415dc35b98bdbe5ab9c555e1976f9d2e3db9d3c2012feacaf10353abce03b41ed0f179197d633e15a4a24f70f434498dc52b8fcef4331dd43187
7
- data.tar.gz: 7d387bf7a6fea74e83a8614be942d35b7a5b40701be08d2e28ecd03902f28ee25ee7c08819373b753adba86c77bfebb63c200065a20591bef84eb172a528b32a
6
+ metadata.gz: 86014b0152b362aad864711e021b3949c32ff63de53dc3661432fdf6476d50cda94a472f61934f407ae3cdeb9acb0fb58088ad256b5e76c5397b49fd62739d9e
7
+ data.tar.gz: 5d7739c42282297405ce624dc076f3373195542e3b381c4cb2dbff7df2064ff48ecb1844ccdcec2f05f273698cdcd884f577baa1cf7709f958bfa102e477e5bc
@@ -27,7 +27,10 @@ module EmberCLI
27
27
 
28
28
  def enable!
29
29
  prepare!
30
- Rails.configuration.middleware.use Middleware
30
+
31
+ if Helpers.non_production?
32
+ Rails.configuration.middleware.use Middleware
33
+ end
31
34
  end
32
35
 
33
36
  def run!
@@ -2,7 +2,7 @@ require "timeout"
2
2
 
3
3
  module EmberCLI
4
4
  class App
5
- ADDON_VERSION = "0.0.6"
5
+ ADDON_VERSION = "0.0.7"
6
6
  EMBER_CLI_VERSION = "~> 0.1.3"
7
7
 
8
8
  attr_reader :name, :options, :pid
@@ -14,13 +14,13 @@ module EmberCLI
14
14
  def compile
15
15
  prepare
16
16
  silence_stream STDOUT do
17
- system command, chdir: app_path, err: :out
17
+ system(env_hash, command, chdir: app_path, err: :out)
18
18
  end
19
19
  end
20
20
 
21
21
  def run
22
22
  prepare
23
- @pid = spawn(command(watch: true), chdir: app_path, err: :out)
23
+ @pid = spawn(env_hash, command(watch: true), chdir: app_path, err: :out)
24
24
  at_exit{ stop }
25
25
  end
26
26
 
@@ -100,8 +100,8 @@ module EmberCLI
100
100
  unless requirement.satisfied_by?(version)
101
101
  fail <<-MSG.strip_heredoc
102
102
  EmberCLI Rails require ember-cli NPM package version to be
103
- #{requirement} to work properly. Please update your package.json
104
- accordingly and run:
103
+ #{requirement} to work properly. From within your EmberCLI directory
104
+ please update your package.json accordingly and run:
105
105
 
106
106
  $ npm install
107
107
 
@@ -114,7 +114,7 @@ module EmberCLI
114
114
  fail <<-MSG.strip_heredoc
115
115
  EmberCLI Rails requires your Ember app to have an addon.
116
116
 
117
- Please run:
117
+ From within your EmberCLI directory please run:
118
118
 
119
119
  $ npm install --save-dev ember-cli-rails-addon@#{ADDON_VERSION}
120
120
 
@@ -188,5 +188,11 @@ module EmberCLI
188
188
  dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION &&
189
189
  app_path.join('node_modules', 'ember-cli-rails-addon', 'package.json').exist?
190
190
  end
191
+
192
+ def env_hash
193
+ ENV.clone.tap do |vars|
194
+ vars.store "DISABLE_FINGERPRINTING", "true"
195
+ end
196
+ end
191
197
  end
192
198
  end
@@ -11,20 +11,12 @@ module EmberCLI
11
11
  end
12
12
 
13
13
  initializer "ember-cli-rails.enable" do
14
- EmberCLI.enable! if enable?
14
+ EmberCLI.enable! unless ENV["SKIP_EMBER"]
15
15
  end
16
16
 
17
17
  rake_tasks do
18
18
  require "sprockets/rails/task"
19
19
  Helpers.override_assets_precompile_task!
20
20
  end
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
29
21
  end
30
22
  end
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.12".freeze
2
+ VERSION = "0.0.13".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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-23 00:00:00.000000000 Z
12
+ date: 2014-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties