ember-cli-rails 0.4.2 → 0.4.3

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: 44d5a3c86b6680cecf15d70e4643542914adc36a
4
- data.tar.gz: 0e6619f82c10ed512ffcd2187b5b989cf5067e28
3
+ metadata.gz: 676773e5bb8b4ffc3d4fa4367993ca1255bb18c5
4
+ data.tar.gz: 70dbbee466951684ec930bf0f82c91c9bc82ab65
5
5
  SHA512:
6
- metadata.gz: 868393d23c9e08899531fa8355d441d9ad486a2155eedd33b93e4699b3eecc1ee756f6e6e768254d69110a9494c616886e87482dbbb4eae20662c85aa981f454
7
- data.tar.gz: 6149a0cc4790d3882651c18e161d7a8c7ab2c0a5898de0946693d308412dc1c8c17b8393137c325c088215d6261ec04600054eb8a376bfc1e2317996f616eb47
6
+ metadata.gz: 5e492324bba74a6f59c8ff06f8b39b4933c5579755bae1979816acb41170adfa3dc989c4959860c8136c80e31795d5585a828f411ecbbb2809b4254facc1c9cf
7
+ data.tar.gz: 7e02910135f01f81f21db5e5415a538f43268dd55fa4ef8d533dcb4fe62bd25be41a0399e3d5625dfe414bbcb3d3bf1937dc55ae2fa6c3622e6a7dd618bee982
@@ -1,11 +1,24 @@
1
1
  master
2
2
  ------
3
3
 
4
+ 0.4.3
5
+ -----
6
+
7
+ * Failures in `{bundle,npm,bower} install` will now fail the host process with a
8
+ non-zero exit status. [#236]
9
+ * Improve error reporting:
10
+ Redirect `ember build` from `$STDERR` to the build error file. [#245]
11
+
12
+ [#236]: https://github.com/thoughtbot/ember-cli-rails/pull/236
13
+ [#245]: https://github.com/thoughtbot/ember-cli-rails/pull/245
14
+
4
15
  0.4.2
5
16
  -----
6
17
 
7
- * use the `EmberCli` module in implementation. Ensure backward compatibility by
8
- aliasing the `EmberCli` to `EmberCLI`.
18
+ * Use the `EmberCli` module in implementation. Ensure backward compatibility by
19
+ aliasing the `EmberCli` to `EmberCLI`. [#233]
20
+
21
+ [#233]: https://github.com/thoughtbot/ember-cli-rails/pull/233
9
22
 
10
23
  0.4.1
11
24
  -----
@@ -60,7 +60,8 @@ module EmberCli
60
60
 
61
61
  def run_tests
62
62
  prepare
63
- exit 1 unless exec("#{ember_path} test")
63
+
64
+ exec("#{ember_path} test")
64
65
  end
65
66
 
66
67
  def stop
@@ -178,12 +179,12 @@ module EmberCli
178
179
  end
179
180
 
180
181
  def build_error?
181
- build_error_file_path.exist?
182
+ build_error_file_path.exist? && build_error_file_path.size?
182
183
  end
183
184
 
184
185
  def raise_build_error!
185
186
  error = BuildError.new("EmberCLI app #{name.inspect} has failed to build")
186
- error.set_backtrace build_error_file_path.read.split(?\n)
187
+ error.set_backtrace build_error_file_path.readlines
187
188
  fail error
188
189
  end
189
190
 
@@ -282,7 +283,11 @@ module EmberCli
282
283
  end
283
284
  end
284
285
 
285
- "#{ember_path} build #{watch_flag} --environment #{environment} --output-path #{dist_path} #{log_pipe}"
286
+ "#{ember_path} build #{watch_flag} --environment #{environment} --output-path #{dist_path} #{redirect_errors} #{log_pipe}"
287
+ end
288
+
289
+ def redirect_errors
290
+ "2> #{build_error_file_path}"
286
291
  end
287
292
 
288
293
  def log_pipe
@@ -339,7 +344,7 @@ module EmberCli
339
344
 
340
345
  def exec(cmd, method: :system)
341
346
  Dir.chdir root do
342
- Kernel.public_send(method, env_hash, cmd, err: :out)
347
+ Kernel.public_send(method, env_hash, cmd, err: :out) || exit(1)
343
348
  end
344
349
  end
345
350
 
@@ -1,3 +1,3 @@
1
1
  module EmberCli
2
- VERSION = "0.4.2".freeze
2
+ VERSION = "0.4.3".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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-04 00:00:00.000000000 Z
13
+ date: 2015-11-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties