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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/ember-cli/app.rb +8 -3
- 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: b1afff3b40616e3a357f2907c34bd5da45b13ede
|
4
|
+
data.tar.gz: b918460efbac494a204a1298a745363127f5f15c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87d9dc5b9668415dc35b98bdbe5ab9c555e1976f9d2e3db9d3c2012feacaf10353abce03b41ed0f179197d633e15a4a24f70f434498dc52b8fcef4331dd43187
|
7
|
+
data.tar.gz: 7d387bf7a6fea74e83a8614be942d35b7a5b40701be08d2e28ecd03902f28ee25ee7c08819373b753adba86c77bfebb63c200065a20591bef84eb172a528b32a
|
data/CHANGELOG.md
CHANGED
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.
|
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
|
+
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
|
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
|
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.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-
|
12
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|