stackdriver-core 1.4.0 → 1.6.0

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: 151b2245b02f4d0ca4d5f473a89cc94055aaf04426106037a6e8013b8f8dc70e
4
- data.tar.gz: ed446ae9ecd06bf7baff473ef4d475c0bf4d0397cbcc80793246a175b9b10115
3
+ metadata.gz: f2d6ec62e5a42cf54379f94a49d38584928427353f45d63326f144484d8126ef
4
+ data.tar.gz: 2fda52a31fca07718c2a85bb8d1f2d60df233535e343e9114bedb9ce7ee31e11
5
5
  SHA512:
6
- metadata.gz: 6a5516a51d893f3ee9b1516187efdc013d86ab0fcaaaf5bed8293cf869394eb18529187eae9abe9e0a942e9335c4d408d33b957b8de534e3e6a89a33271a14e2
7
- data.tar.gz: 3d1aa269f03e295838f6e59bd621c263d67fcee00faacc81e7f1722a640bcddf4d95eb1cada1082e903d75a8a7f1c26278741e353eab486bc535afea8f5214b7
6
+ metadata.gz: 2dffc0d75a11924b9d900f3a28045f9f33cdccfe755bec69a4c6ee856ab98af79b7ad78a5e2103a693f79344fe2f9b6b8233103a7d0b7ec59363f21d977aa815
7
+ data.tar.gz: 3bf4b1afdf811db8dc1f16355727c6cc160f51f3f8a4fb4534030a6eb5ccb00bc91ea86f9abd1643b143570909c0a3b201342c33d962a22e0c8a31ddd20bc7d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 1.6.0 (2024-03-07)
4
+
5
+ #### Features
6
+
7
+ * Update minimum supported Ruby version to 2.7 ([#25298](https://github.com/googleapis/google-cloud-ruby/issues/25298))
8
+
9
+ ### 1.5.0 / 2021-03-10
10
+
11
+ #### Features
12
+
13
+ * Drop support for Ruby 2.4 and add support for Ruby 3.0
14
+
3
15
  ### 1.4.0 / 2019-10-23
4
16
 
5
17
  Now requires Ruby 2.4 or later.
data/CONTRIBUTING.md CHANGED
@@ -24,7 +24,7 @@ be able to accept your pull requests.
24
24
  In order to use the stackdriver console and run the project's tests,
25
25
  there is a small amount of setup:
26
26
 
27
- 1. Install Ruby. stackdriver requires Ruby 2.4+. You may choose to
27
+ 1. Install Ruby. stackdriver requires Ruby 2.5+. You may choose to
28
28
  manage your Ruby and gem installations with [RVM](https://rvm.io/),
29
29
  [rbenv](https://github.com/rbenv/rbenv), or
30
30
  [chruby](https://github.com/postmodern/chruby).
@@ -45,7 +45,7 @@ there is a small amount of setup:
45
45
 
46
46
  ```sh
47
47
  $ cd stackdriver-core/
48
- $ bundle exec rake bundleupdate
48
+ $ bundle install
49
49
  ```
50
50
 
51
51
  ## Stackdriver Tests
@@ -74,12 +74,12 @@ module Stackdriver
74
74
  def async_stop
75
75
  ensure_thread
76
76
  synchronize do
77
- if async_state != :stopped
77
+ if async_state == :stopped
78
+ false
79
+ else
78
80
  @async_state = :stopping
79
81
  async_state_change
80
82
  true
81
- else
82
- false
83
83
  end
84
84
  end
85
85
  end
@@ -75,7 +75,7 @@ module Stackdriver
75
75
  else
76
76
  is_new ? true : false
77
77
  end
78
- @span_id = span_id ? span_id.to_i : nil
78
+ @span_id = span_id&.to_i
79
79
  @sampled = sampled
80
80
  if @sampled.nil?
81
81
  @capture_stack = nil
@@ -153,8 +153,7 @@ module Stackdriver
153
153
  # @return [Integer]
154
154
  #
155
155
  def hash
156
- @hash ||= @trace_id.hash ^ @is_new.hash ^ @span_id.hash ^
157
- @sampled.hash ^ @capture_stack.hash
156
+ @hash ||= [@trace_id, @is_new, @span_id, @sampled, @capture_stack].hash
158
157
  end
159
158
 
160
159
  ##
@@ -229,8 +228,8 @@ module Stackdriver
229
228
  return unless match
230
229
 
231
230
  trace_id = match[1]
232
- span_id = match[3] ? match[3].to_i : nil
233
- options = match[5] ? match[5].to_i : nil
231
+ span_id = match[3]&.to_i
232
+ options = match[5]&.to_i
234
233
  if options.nil?
235
234
  sampled = capture_stack = nil
236
235
  else
@@ -15,6 +15,6 @@
15
15
 
16
16
  module Stackdriver
17
17
  module Core
18
- VERSION = "1.4.0".freeze
18
+ VERSION = "1.6.0".freeze
19
19
  end
20
20
  end
@@ -15,7 +15,6 @@
15
15
 
16
16
  require "stackdriver/core/configuration"
17
17
  require "stackdriver/core/async_actor"
18
- require "stackdriver/core/configuration"
19
18
  require "stackdriver/core/trace_context"
20
19
  require "stackdriver/core/version"
21
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackdriver-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -24,146 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.2'
27
- - !ruby/object:Gem::Dependency
28
- name: autotest-suffix
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.1'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.1'
41
- - !ruby/object:Gem::Dependency
42
- name: google-style
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.24.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 1.24.0
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.10'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.10'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-autotest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.0'
83
- - !ruby/object:Gem::Dependency
84
- name: minitest-focus
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.1'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.1'
97
- - !ruby/object:Gem::Dependency
98
- name: minitest-rg
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.2'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '5.2'
111
- - !ruby/object:Gem::Dependency
112
- name: redcarpet
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '3.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '3.0'
125
- - !ruby/object:Gem::Dependency
126
- name: simplecov
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.9'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '0.9'
139
- - !ruby/object:Gem::Dependency
140
- name: yard
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.9'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.9'
153
- - !ruby/object:Gem::Dependency
154
- name: yard-doctest
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.1.13
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 0.1.13
167
27
  description: stackdriver-core is an internal shared library for the Ruby Stackdriver
168
28
  integration libraries.
169
29
  email:
@@ -196,14 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
56
  requirements:
197
57
  - - ">="
198
58
  - !ruby/object:Gem::Version
199
- version: '2.4'
59
+ version: '2.7'
200
60
  required_rubygems_version: !ruby/object:Gem::Requirement
201
61
  requirements:
202
62
  - - ">="
203
63
  - !ruby/object:Gem::Version
204
64
  version: '0'
205
65
  requirements: []
206
- rubygems_version: 3.0.6
66
+ rubygems_version: 3.5.6
207
67
  signing_key:
208
68
  specification_version: 4
209
69
  summary: Internal shared library for Ruby Stackdriver integration