bima-shark-sdk 2.4.1 → 2.4.2

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: c8147ff5d815f0cf58c4af42b9dc59fd12c42403
4
- data.tar.gz: 0ccf7a38e06b849c464eedb854ed08e3ed529ad8
3
+ metadata.gz: a940bf61424a49baa7f04791ca42ba61bb145a97
4
+ data.tar.gz: 734da4e58e55397a983e31ac9e53aa372e664a7b
5
5
  SHA512:
6
- metadata.gz: 3c38fb56121825215c37f16a0dde2aa4ff4b29b25adc7e8390bcfec1319844938fc19bb01e696d6bc857241ad5aaa0ca29d319fed5ac47ea45e71155bc177500
7
- data.tar.gz: 4445572bb6d832693da5c3ff66405cada2c3b39332c994c32b71a4d3a6b1d6256837eb8d913db60f331e3b29e04a05dfe2a653620b96d397972b25e8797a78b1
6
+ metadata.gz: 7c1ade4eaefb81ae08c8e799d29bd6caf4b4ff1f355df7f4382c9bd0cddb3dcc0b3b0022fb4c68ffeb6d3278a95cca50a04b3076002ff1d1e5a5e9688881b36a
7
+ data.tar.gz: 12186155c320e2254eed1d4e4dcfe47ac31b2f540e5d5470d15472c3b333d9915fc75347795762be86438c7d556e004d85d2f02235bd89d5913e32f62709d763
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Changelog
2
2
 
3
+ #### 2.4.2
4
+ - [fix] don't swallow connection errors
5
+
3
6
  #### 2.4.1
4
7
  - [fix] Form Service: Added missing `versions` association to `Form`
5
8
 
data/lib/shark/error.rb CHANGED
@@ -24,11 +24,7 @@ module Shark
24
24
  end
25
25
  end
26
26
 
27
- class ConnectionError < ApiError
28
- def initialize(env)
29
- @env = env
30
- end
31
- end
27
+ class ConnectionError < Error; end
32
28
 
33
29
  class ClientError < ApiError; end
34
30
 
@@ -12,8 +12,8 @@ module Shark
12
12
  handle_status(status, env)
13
13
  end
14
14
  end
15
- rescue Faraday::ConnectionFailed, Faraday::TimeoutError
16
- raise ConnectionError, environment
15
+ rescue Faraday::ConnectionFailed, Faraday::TimeoutError => e
16
+ raise ConnectionError, e
17
17
  end
18
18
 
19
19
  private
data/lib/shark/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shark
4
- VERSION = '2.4.1'
4
+ VERSION = '2.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bima-shark-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huy Dinh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-07-01 00:00:00.000000000 Z
13
+ date: 2022-10-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport