the_garage 2.4.0 → 2.4.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
  SHA1:
3
- metadata.gz: df6a793861e979f1a7849b0d6ef3ef5764757980
4
- data.tar.gz: df87e84d9f87372c8c2061d4aafabd6849d89b52
3
+ metadata.gz: 40c843f3541b358a20f20fce55a9e09913d75722
4
+ data.tar.gz: 17d0231446753d51c7bbebd42bcf9c5f348e49e8
5
5
  SHA512:
6
- metadata.gz: 996522903af5c5b250cb7a99f41a8ed095a23c17b36076cd8bf34409b16d02b4f5ec6196b357238b1726452d8ceba415b481d4f2f56abbc7c19997972a557c97
7
- data.tar.gz: c96ace465cac6ade9d7b477ab3c58b457b660e709067490213154f5b017392ca717b87980dd7058ada25ede679ad2de6c2d17ab43b20dbaf9259264c58e5b6a6
6
+ metadata.gz: f46a8245d7e9df31072d13b3607df7bdcf9e7a91b03b3e3e67460f9d2240f00086d366acf126cc580520d7073365b28a7e9e73012093eaa0b56783129c920dfb
7
+ data.tar.gz: 93e345d15e4d1126e761be0e379e7346f3607d7675b77e41ff46363e5e70a0aa8a7c0f20a26595caea2510cde2a6e29d8f2488de466ea99f48c825345bac533c
data/lib/garage/tracer.rb CHANGED
@@ -47,7 +47,11 @@ module Garage
47
47
  def self.start(&block)
48
48
  if Aws::Xray::Context.started?
49
49
  Aws::Xray::Context.current.child_trace(remote: true, name: service) do |sub|
50
- yield new(sub)
50
+ if Aws::Xray::Context.current.respond_to?(:disable_trace)
51
+ Aws::Xray::Context.current.disable_trace(:net_http) { yield new(sub) }
52
+ else
53
+ yield new(sub)
54
+ end
51
55
  end
52
56
  else
53
57
  yield NullTracer.new
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_garage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuhiko Miyagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-07 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails