my_api_client 0.5.0 → 0.5.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
  SHA256:
3
- metadata.gz: e0499ab884898c6a2b95fc688c095b7a3682f91dc1b5668b24bfb821a4d0a1c3
4
- data.tar.gz: bc2d95d4973ef859aa5d95dba8adfa1f2378dfe396e53a303e223a480d93af34
3
+ metadata.gz: 473d384aac7adc38f481fb71e141cace45c97d9b2fc7ec1fdadc58c43d0fafa1
4
+ data.tar.gz: 725a98bd83a839944dc625dc5c8b061edc120920da25707177fcce747423fc0f
5
5
  SHA512:
6
- metadata.gz: 8ceb42331cb908e84d9555d33fffcbed248260d7b06345edc13effbfad2d13db213b1f1b37db40060b6d32792066821ab7c703720998c8e0bb91ea92bfa7599d
7
- data.tar.gz: 560c704e9545c3ba16a04dabddd1ecc027b6c16591f710fc288bb7343d599c63c9dfb18ee142a3269ce87f95ea7a4f2ff9ee47ae72d8adb422886c6f772dbb8d
6
+ metadata.gz: 5032099e16808d8cde01de61b872b23ad9aaa87a1eb087ab93e6b951dbb9bfb36951411644c9476f713b444b4c23100c631bd0acebc47391bf7a935b9552fcb3
7
+ data.tar.gz: d986948d29b430233543d175cc072e7f1f5ddf75e45eb3cfdddf3d77019a65969152404cc3a918fb521eab210b2343027881bdf96aae96bcb020cbdc02a7b904
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_api_client (0.5.0)
4
+ my_api_client (0.5.1)
5
5
  activesupport (>= 4.2.0)
6
6
  jsonpath
7
7
  sawyer
@@ -31,7 +31,7 @@ GEM
31
31
  hashdiff (0.4.0)
32
32
  i18n (1.6.0)
33
33
  concurrent-ruby (~> 1.0)
34
- jaro_winkler (1.5.2)
34
+ jaro_winkler (1.5.3)
35
35
  json (2.2.0)
36
36
  jsonpath (1.0.4)
37
37
  multi_json
data/README.jp.md CHANGED
@@ -178,6 +178,10 @@ WIP
178
178
 
179
179
  WIP
180
180
 
181
+ #### Bugsnag breadcrumbs
182
+
183
+ [Bugsnag-Ruby v6.11.0](https://github.com/bugsnag/bugsnag-ruby/releases/tag/v6.11.0) 以降を利用している場合は [breadcrumbs 機能](https://docs.bugsnag.com/platforms/ruby/other/#logging-breadcrumbs) が自動的にサポートされます。この機能によって `MyApiClient::Error` 発生時に内部で `Bugsnag.leave_breadcrumb` が呼び出され、 Bugsnag のコンソールからエラー発生時のリクエスト情報、レスポンス情報などが確認できるようになります。
184
+
181
185
  ### Retry
182
186
 
183
187
  次に `MyApiClient` が提供するリトライ機能についてご紹介致します。
@@ -11,7 +11,7 @@ module MyApiClient
11
11
 
12
12
  Bugsnag.leave_breadcrumb(
13
13
  "#{self.class.name} occurred",
14
- metadata,
14
+ metadata.each_with_object({}) { |(k, v), memo| memo[k] = v.inspect },
15
15
  Bugsnag::Breadcrumbs::ERROR_BREADCRUMB_TYPE
16
16
  )
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MyApiClient
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-16 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport