garage_client 2.4.1 → 2.4.2

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
  SHA1:
3
- metadata.gz: 8c9d279f5317c4beb50f7542c228b79e21082741
4
- data.tar.gz: e82fee549ef03800c4a17fc10c0c351a9d704fbe
3
+ metadata.gz: 2a623a933bc13f4e6f553104fc28d763da78645e
4
+ data.tar.gz: cf8145338c54db7abc2edd21afbe9e58fc38e8a0
5
5
  SHA512:
6
- metadata.gz: 57a217f525aed34172d4e08192040d772d5a79a8c7bb396b133c83f4e500ec27729ae9f7bad093565b0a7b66c2486c5a18b138023bd0d1baefa950a40a22ec70
7
- data.tar.gz: 0b5d6f3ebdc2149acd28519ae99a67e7b42638b819abadf062729c6573532915ccb1ff8b9b2a8bca9324adf3950640555c721a650cfdd73512935442548d9087
6
+ metadata.gz: c02237c7096e98477fda1b478ee0fa7c49350d0759cb21af75a122398e5328560f16d70cc5b454885d70cf684e1e7ec18999cebdfbe5fa4b2f1e5f306f8bd778
7
+ data.tar.gz: 7f18c93b54d51a151c51e5a3f492a421f97b35768502b5ee6d5fdf0567e565b83c806bf5254d6d8ed3bf773a4a2dbd0a6f9073684486719ef706b4f85c9462f7
@@ -1,3 +1,6 @@
1
+ ## 2.4.2
2
+ - Fixes for latest aws-xray gem. Require `aws/xray/faraday`.
3
+
1
4
  ## 2.4.1
2
5
  - Record http request/response even if API returns errors.
3
6
 
data/README.md CHANGED
@@ -209,7 +209,7 @@ Choose one of supported tracers from below. If you want to add new tracer, pleas
209
209
  Bundle [aws-xray](https://github.com/taiki45/aws-xray) gem in your `Gemfile`, then configure `GarageClient::Client` instance with `tracing.service` option:
210
210
 
211
211
  ```ruby
212
- require 'aws/xray'
212
+ require 'aws/xray/faraday'
213
213
  GarageClient::Client.new(..., tracing: { tracer: 'aws-xray', service: 'user' })
214
214
  ```
215
215
 
@@ -32,5 +32,5 @@ Gem::Specification.new do |s|
32
32
  s.add_development_dependency "pry"
33
33
  # Until bug fixed: https://github.com/colszowka/simplecov/issues/281
34
34
  s.add_development_dependency "simplecov", "~> 0.7.1"
35
- s.add_development_dependency "aws-xray"
35
+ s.add_development_dependency "aws-xray", ">= 0.30.0"
36
36
  end
@@ -76,6 +76,7 @@ module GarageClient
76
76
  when 'aws-xray'
77
77
  service = options[:tracing][:service]
78
78
  raise 'Configure target service name with `tracing.service`' unless service
79
+ require 'aws/xray/faraday'
79
80
  builder.use Aws::Xray::Faraday, service
80
81
  else
81
82
  raise "`tracing` option specified but GarageClient does not support the tracer: #{options[:tracing][:tracer]}"
@@ -1,3 +1,3 @@
1
1
  module GarageClient
2
- VERSION = '2.4.1'
2
+ VERSION = '2.4.2'
3
3
  end
@@ -5,6 +5,7 @@ RSpec.describe 'Tracing support' do
5
5
  context 'when `tracing` option is specified' do
6
6
  around do |ex|
7
7
  Aws::Xray.config.client_options = { sock: io }
8
+ Aws::Xray.config.sampling_rate = 1
8
9
  Aws::Xray.trace(name: 'test-app') { ex.run }
9
10
  end
10
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garage_client
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
  - Cookpad Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: '0'
187
+ version: 0.30.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: '0'
194
+ version: 0.30.0
195
195
  description: Ruby client library for the Garage API
196
196
  email:
197
197
  - kaihatsu@cookpad.com
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubyforge_project:
264
- rubygems_version: 2.6.11
264
+ rubygems_version: 2.5.2
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Ruby client library for the Garage API