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 +4 -4
- data/lib/ember-cli-rails.rb +4 -1
- data/lib/ember-cli/app.rb +12 -6
- data/lib/ember-cli/railtie.rb +1 -9
- data/lib/ember-cli/version.rb +1 -1
- 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: aedcf213d342ba10d97aeb8f2ba9aa752eb19e48
|
4
|
+
data.tar.gz: 31e23c9feeeab7cb015944ececced0ae806cd389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86014b0152b362aad864711e021b3949c32ff63de53dc3661432fdf6476d50cda94a472f61934f407ae3cdeb9acb0fb58088ad256b5e76c5397b49fd62739d9e
|
7
|
+
data.tar.gz: 5d7739c42282297405ce624dc076f3373195542e3b381c4cb2dbff7df2064ff48ecb1844ccdcec2f05f273698cdcd884f577baa1cf7709f958bfa102e477e5bc
|
data/lib/ember-cli-rails.rb
CHANGED
data/lib/ember-cli/app.rb
CHANGED
@@ -2,7 +2,7 @@ require "timeout"
|
|
2
2
|
|
3
3
|
module EmberCLI
|
4
4
|
class App
|
5
|
-
ADDON_VERSION = "0.0.
|
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.
|
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
|
-
|
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
|
data/lib/ember-cli/railtie.rb
CHANGED
@@ -11,20 +11,12 @@ module EmberCLI
|
|
11
11
|
end
|
12
12
|
|
13
13
|
initializer "ember-cli-rails.enable" do
|
14
|
-
EmberCLI.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
|
data/lib/ember-cli/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|