lib/ember-cli/app.rb in ember-cli-rails-0.0.12 vs lib/ember-cli/app.rb in ember-cli-rails-0.0.13
- old
+ new
@@ -1,10 +1,10 @@
require "timeout"
module EmberCLI
class App
- ADDON_VERSION = "0.0.6"
+ ADDON_VERSION = "0.0.7"
EMBER_CLI_VERSION = "~> 0.1.3"
attr_reader :name, :options, :pid
def initialize(name, options={})
@@ -12,17 +12,17 @@
end
def compile
prepare
silence_stream STDOUT do
- system command, chdir: app_path, err: :out
+ system(env_hash, command, chdir: app_path, err: :out)
end
end
def run
prepare
- @pid = spawn(command(watch: true), chdir: app_path, err: :out)
+ @pid = spawn(env_hash, command(watch: true), chdir: app_path, err: :out)
at_exit{ stop }
end
def stop
Process.kill "INT", pid if pid
@@ -98,12 +98,12 @@
requirement = Gem::Requirement.new(EMBER_CLI_VERSION)
unless requirement.satisfied_by?(version)
fail <<-MSG.strip_heredoc
EmberCLI Rails require ember-cli NPM package version to be
- #{requirement} to work properly. Please update your package.json
- accordingly and run:
+ #{requirement} to work properly. From within your EmberCLI directory
+ please update your package.json accordingly and run:
$ npm install
MSG
end
@@ -112,11 +112,11 @@
def check_addon!
unless addon_present?
fail <<-MSG.strip_heredoc
EmberCLI Rails requires your Ember app to have an addon.
- Please run:
+ From within your EmberCLI directory please run:
$ npm install --save-dev ember-cli-rails-addon@#{ADDON_VERSION}
in you Ember application root: #{app_path}
MSG
@@ -185,8 +185,14 @@
end
def addon_present?
dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION &&
app_path.join('node_modules', 'ember-cli-rails-addon', 'package.json').exist?
+ end
+
+ def env_hash
+ ENV.clone.tap do |vars|
+ vars.store "DISABLE_FINGERPRINTING", "true"
+ end
end
end
end