ember-cli-rails 0.0.11 → 0.0.12

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: ecd4d7a01bfb470c905aeca7cd5c565ae070db9c
4
- data.tar.gz: ba5632f28af21fa1491cd2f9c5fcb10df078ea70
3
+ metadata.gz: b1afff3b40616e3a357f2907c34bd5da45b13ede
4
+ data.tar.gz: b918460efbac494a204a1298a745363127f5f15c
5
5
  SHA512:
6
- metadata.gz: 5156a64561042fc9f1cd626805aac373e846d7b438f59212730a2b0bf489ae014ba29f38526a4a1662185da47231bef0adea190b0f9c8173a6204bffa064aca5
7
- data.tar.gz: 7eeedb6c8976d488a1167e05e2acc4dc73459ee8b18bd66ee2ae1985873d05522089d7c97215ca39f124c40735ad30981dd92cd536f6564ef042cc325a7e56a7
6
+ metadata.gz: 87d9dc5b9668415dc35b98bdbe5ab9c555e1976f9d2e3db9d3c2012feacaf10353abce03b41ed0f179197d633e15a4a24f70f434498dc52b8fcef4331dd43187
7
+ data.tar.gz: 7d387bf7a6fea74e83a8614be942d35b7a5b40701be08d2e28ecd03902f28ee25ee7c08819373b753adba86c77bfebb63c200065a20591bef84eb172a528b32a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.0.12
2
+ ------
3
+
4
+ * Make sure ember-cli-dependency-checker is present [#35](https://github.com/rwz/ember-cli-rails/issues/35)
5
+
1
6
  0.0.11
2
7
  ------
3
8
 
data/README.md CHANGED
@@ -64,7 +64,7 @@ Once you've updated your initializer to taste, you need to install the
64
64
  For each of your EmberCLI applications install the addon with:
65
65
 
66
66
  ```sh
67
- npm install --save-dev ember-cli-rails-addon@0.0.5
67
+ npm install --save-dev ember-cli-rails-addon@0.0.6
68
68
  ```
69
69
 
70
70
  And that's it!
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"
5
+ ADDON_VERSION = "0.0.6"
6
6
  EMBER_CLI_VERSION = "~> 0.1.3"
7
7
 
8
8
  attr_reader :name, :options, :pid
@@ -110,13 +110,13 @@ module EmberCLI
110
110
  end
111
111
 
112
112
  def check_addon!
113
- unless dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION
113
+ unless addon_present?
114
114
  fail <<-MSG.strip_heredoc
115
115
  EmberCLI Rails requires your Ember app to have an addon.
116
116
 
117
117
  Please run:
118
118
 
119
- $ npm install --save-dev ember-cli-rails-addon@#{ADDON_VERSION}`
119
+ $ npm install --save-dev ember-cli-rails-addon@#{ADDON_VERSION}
120
120
 
121
121
  in you Ember application root: #{app_path}
122
122
  MSG
@@ -183,5 +183,10 @@ module EmberCLI
183
183
  def dev_dependencies
184
184
  package_json.fetch("devDependencies", {})
185
185
  end
186
+
187
+ def addon_present?
188
+ dev_dependencies["ember-cli-rails-addon"] == ADDON_VERSION &&
189
+ app_path.join('node_modules', 'ember-cli-rails-addon', 'package.json').exist?
190
+ end
186
191
  end
187
192
  end
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".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.11
4
+ version: 0.0.12
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-22 00:00:00.000000000 Z
12
+ date: 2014-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties