lib/ember-cli/app.rb in ember-cli-rails-0.3.2 vs lib/ember-cli/app.rb in ember-cli-rails-0.3.3

- old
+ new

@@ -1,11 +1,11 @@ require "timeout" module EmberCLI class App ADDON_VERSION = "0.0.11" - EMBER_CLI_VERSION = "~> 0.1.5", "~> 0.2.0" + EMBER_CLI_VERSIONS = [ "~> 0.1.5", "~> 0.2.0", "~> 1.13" ] class BuildError < StandardError; end attr_reader :name, :options, :paths, :pid @@ -156,14 +156,15 @@ end def check_ember_cli_version! version = dev_dependencies.fetch("ember-cli").split(?-).first - unless Helpers.match_version?(version, EMBER_CLI_VERSION) + unless Helpers.match_version?(version, EMBER_CLI_VERSIONS) fail <<-MSG.strip_heredoc EmberCLI Rails require ember-cli NPM package version to be - #{EMBER_CLI_VERSION} to work properly. From within your EmberCLI directory - please update your package.json accordingly and run: + #{EMBER_CLI_VERSIONS.last} to work properly (you have #{version}). + From within your EmberCLI directory please update your package.json + accordingly and run: $ npm install MSG end