aws-xray 0.16.2 → 0.16.3

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: de17571c0910a1ab57575bddbdbddbe5575f361b
4
- data.tar.gz: 8d3c6b56530959db052acd6b0a102ed76b2af615
3
+ metadata.gz: efddd11613513c31deae81a7c19e585c27561d65
4
+ data.tar.gz: 634485ac1a3a2d4f1c64b20feb639e7b4a1f8f44
5
5
  SHA512:
6
- metadata.gz: 7ca3fbcb07443d200311d2c6b6d6b7a11d4f2f078378eea921f12061813f0a8d53a50fa50b979346fb508a8ec3d38c8afa9e3e9109e24697eee100c8f80f2757
7
- data.tar.gz: 9b78736a95a62f1c357e68c80f21cfec7707a2d4c14f59c1d3f51f1e20981eb84f64d5e59e0b495c86a40cdcdf1b090865d637193915fac9c7fedafbd10df096
6
+ metadata.gz: 8f496597a77629249e31d91c238235bffa6e9429ee86335a94db18936f41ec6dd22e7de96c69330d6cd509474e9609cef23da4911cb9454dc2576f90e7437c21
7
+ data.tar.gz: 1515645eba3847d0fe33d00f941a52bcd3c962adecffb4ebc637967fd6b15621d2e3366d1d7a2d0415b8e9f981c52dc53517088ff1609bdb3f617d9e6c76f10e
@@ -5,7 +5,7 @@ module Aws
5
5
 
6
6
  def initialize(stack: [], message: nil, type: nil)
7
7
  @id = SecureRandom.hex(8)
8
- @working_directory = Dir.pwd
8
+ @working_directory = (Dir.pwd + '/') rescue '/'
9
9
  @stack = stack
10
10
  @message = message
11
11
  @type = type
@@ -26,9 +26,10 @@ module Aws
26
26
  # TODO: Setting cause API. Downstream API's exception?
27
27
  # TODO: paths.
28
28
  def build_cause_from_exception(e, remote)
29
- truncated, stack = build_stack(e, Dir.pwd + '/')
29
+ working_directory = (Dir.pwd + '/') rescue '/'
30
+ truncated, stack = build_stack(e, working_directory)
30
31
  {
31
- working_directory: Dir.pwd,
32
+ working_directory: working_directory,
32
33
  paths: [],
33
34
  exceptions: [
34
35
  id: SecureRandom.hex(8),
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.16.2'
3
+ VERSION = '0.16.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono