ember-cli-rails 0.1.0 → 0.1.1

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: a08a5e8f40b04f129a52111debe85c7ba3d18020
4
- data.tar.gz: 1ccad7df9c3612812095e776becf4cf87314e1d0
3
+ metadata.gz: ee3daaab44f2411efc9ad6c6a6f403d2e068f0c7
4
+ data.tar.gz: 97794eb3763d02c76f96bb2b690c5a10e123afae
5
5
  SHA512:
6
- metadata.gz: 465c7fecc91622ee2c8cbf9b01b4f1012c3e411628d06fe5f5845eb146aa6df635051d90ce9d36158db3fac29bbd8de3693aa47c3fda58813d5c818229e41ee8
7
- data.tar.gz: ea65b28b73265023bc0325a7c39de2e168fd71158f5dfdc471597e7fae6d6819e8fae90ccbb81ddf1b93247be2f47f86f638e960d98f3a95dd1c5ee13b39651d
6
+ metadata.gz: 31435715128f279afecf8b388f3e33f28f006c43aa453350112cccfe7542e8cc58557b57456c3d53f046d5a4a2cfae3982c6ca4f29b6bb2e12d9f5ef1008912d
7
+ data.tar.gz: 16d084e779d941fc56c54752858e604bdfeb9ffa895b27db07a719a569952f742802f75fd25c8f12e1425135e3427fb5fa6c08b159f3e0d18f8663f4eceb40e3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.1.1
2
+ -----
3
+
4
+ * Add ember-cli:test take task [#60](https://github.com/rwz/ember-cli-rails/pull/60)
5
+
1
6
  0.1.0
2
7
  -----
3
8
 
@@ -43,6 +43,11 @@ module EmberCLI
43
43
  each_app &:run
44
44
  end
45
45
 
46
+ def run_tests!
47
+ prepare!
48
+ each_app &:run_tests
49
+ end
50
+
46
51
  def compile!
47
52
  prepare!
48
53
  each_app &:compile
data/lib/ember-cli/app.rb CHANGED
@@ -30,6 +30,12 @@ module EmberCLI
30
30
  at_exit{ stop }
31
31
  end
32
32
 
33
+ def run_tests
34
+ prepare
35
+ tests_pass = exec("#{ember_path} test")
36
+ exit 1 unless tests_pass
37
+ end
38
+
33
39
  def stop
34
40
  Process.kill "INT", pid if pid
35
41
  @pid = nil
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
@@ -1,4 +1,9 @@
1
1
  namespace "ember-cli" do
2
+ desc "Runs `ember test` for each App"
3
+ task test: :environment do
4
+ EmberCLI.run_tests!
5
+ end
6
+
2
7
  desc "Installs each EmberCLI app's dependencies"
3
8
  task install_dependencies: :environment do
4
9
  EmberCLI.install_dependencies!
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud