data_shifter 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c2c6cb1c13bba3100efe294ceeafd838f4c329650b323457b0a75296bbff28f
4
- data.tar.gz: b2dfe9b104bcc97fe7f8d1524d9739cb6b5918885a64f0ccf58725a8477d4298
3
+ metadata.gz: 1568faec72d1ca39a77cc6fa884293bc0320a14d3451188cc3e64d93ac4084cd
4
+ data.tar.gz: fbc54ed6c02befcd7aef52b2f1d82b470144c52b1748db362ec6733be2fe0f42
5
5
  SHA512:
6
- metadata.gz: c501bef9515dae1a53a20dd4b40e4fb454c31b17a781b53df02b861f6ae0415f012a801f2b767f5975cd8cb5aa69555467de5a89dff4448b766ab410e23e7a5a
7
- data.tar.gz: cd30ac7dcef93f800101c26a5472063859e8671270c58169083c7116fdd3cac2f6559efe6f9da084a2b7b939aa2ef0e909a96b816964043f8739d544a80fef34
6
+ metadata.gz: e890c867409768503d140de8f4ab781d2caca51438b336aa954dced6991bd129d6930c25148e6553f63fa39168b247960e7fc304187802e84d17fa83eec10d44
7
+ data.tar.gz: 50fe503f813721a6c098081e6055aba2dca1980e0e593c979928a39e088e912d0af1ced7181220a9fed2531eed113b0b036bea436ce2d116131138f307062913
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  * N/A
6
6
 
7
+ ## [0.3.1]
8
+
9
+ * [Bugfix] No longer swallowing unexpected exceptions (errors in *loading* a data shift still need to be reported). No change to handling of exceptions raised while *running* a shift.
10
+
7
11
  ## [0.3.0]
8
12
 
9
13
  ### Added
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "axn"
3
4
  require "rails/railtie"
4
5
 
5
6
  module DataShifter
@@ -66,7 +67,12 @@ module DataShifter
66
67
  klass.run!
67
68
  rescue Interrupt
68
69
  exit(130)
69
- rescue StandardError
70
+ rescue Axn::Failure
71
+ # run! re-raises after on_error :_print_summary; avoid Rake's duplicate backtrace.
72
+ exit(1)
73
+ rescue StandardError => e
74
+ # Errors raised while loading the shift class still need to be reported
75
+ warn e.full_message(highlight: false, order: :top)
70
76
  exit(1)
71
77
  end
72
78
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DataShifter
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_shifter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kali Donovan