lib/ember_cli/shell.rb in ember-cli-rails-0.7.3 vs lib/ember_cli/shell.rb in ember-cli-rails-0.7.4
- old
+ new
@@ -55,23 +55,23 @@
attr_reader :ember, :env, :options, :paths
delegate :run, :run!, to: :runner
def invalid_ember_dependencies?
- !run("#{paths.ember} version")
+ !run("#{paths.ember} version").success?
rescue DependencyError
false
end
def clean_ember_dependencies!
- ember_dependency_directories.select(&:exist?).each(&:rmtree)
+ ember_dependency_directories.flat_map(&:children).each(&:rmtree)
end
def ember_dependency_directories
[
paths.node_modules,
paths.bower_components,
- ]
+ ].select(&:exist?)
end
def spawn(command)
Kernel.spawn(
env,