master_data_tool 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: 6019d75b3db08ca0edaf67f62f7bea9cab8fc6ca8252f5474bf1db8685ec8255
4
- data.tar.gz: b5a1ea9385cf5f288361857523da6ef0064bab68597ea505cbdc1936c1d309f5
3
+ metadata.gz: e86a46f55a42684795554c0bc95b7ae735cb8c05f35a160b53c2499e2117971c
4
+ data.tar.gz: b76e406b2373ef43ada14c05bab2f7b79a94fd9ac37c959911dfc71470106061
5
5
  SHA512:
6
- metadata.gz: 57d07dc1caf3c18c5cf48e0056ed5db8fbc22b77169255d83d0babca627ac9895bab8020abb768923762bc7c05d3a37d26aa21cb00f9e5086c31ab95cf85a493
7
- data.tar.gz: 89a2203dce4e85466f1db3d84c29824057b4e46008e9607204e56c3307cf7ddf91e371f747ef59e9df6266f89f36805229043e81526e3edf2a734ec419d340fd
6
+ metadata.gz: 5d9c803172e97e3b3e607ce19f770de15ccf8dc42736b557abce41d90ad112c3b8e6a3d67e2a38871b2cd683492ae610f3ddc774bdfda6f0c05ced893ea3fc06
7
+ data.tar.gz: fe620d8afd70d5950d2f96a84d6db18255fa5ccc2b1fcf0c583e5dad3d52057e48507ecff0aa6e0c94ee026a38e868caf1b30e11bfec48557ca4f0fd94393d63
data/exe/master_data_tool CHANGED
@@ -49,7 +49,12 @@ module MasterDataTool
49
49
  ignore_column_names: ignore_column_names,
50
50
  verbose: verbose
51
51
  )
52
- executor.execute
52
+ errors = executor.execute
53
+
54
+ return if errors.empty?
55
+
56
+ message = errors.map { |error| "table:#{error.table}\tmessage:#{error.exception.message}" }.join("\n")
57
+ raise message
53
58
  end
54
59
  end
55
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MasterDataTool
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: master_data_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails