bc-lightstep-ruby 2.2.2 → 2.3.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: 4f3a1bf19d2bd647344092637b395c79889582497e7505fe88a15e54ca490f49
4
- data.tar.gz: 3dd48770cacc6e088edcbb63e26a9da3954b5112cc840890d79df3285c73b3b0
3
+ metadata.gz: '08b3dfd38b99345cdd590559e482f4d4d311a64a4538f613ae747ef8b2f19163'
4
+ data.tar.gz: 6e6d9d623759b64a507b25e99836b73219ed77ac3fa3fe296d76bda44b5d4f9c
5
5
  SHA512:
6
- metadata.gz: 7d8849b91e102c4ad4cac2272368d19b8f523f3195b280f9a7007344135c436ca9f7f0e44a0a0403dc4f1ea854a5de27e001d96eb96b40498d28ce63280f3501
7
- data.tar.gz: 4fe13e2093848bba17236988b49649fbeeba3291f4c545d0732e7b4b79182c855719dcc7363f36e39141ff895976047fb369560abaaf328c688df2b426855dba
6
+ metadata.gz: 6bfde25f2c8fd028f94b81bb0c96913da02db77d8b59fa2c14b550dcafebc2df83242d3f50983d4b532500c0736a952c5bd504f923aaee4f20a64c2659127b00
7
+ data.tar.gz: a8a27fb95a8f18c1f9f88bc2aaa6e548b2338d8825ce6fbc0a24515ebe37e91d153046c78ab49f8fdd4976e8152f9ecee5d877291f6b72aabb889b3b62833d0b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@ Changelog for the bc-lightstep-ruby gem.
2
2
 
3
3
  ### Pending Release
4
4
 
5
+ ### 2.3.0
6
+
7
+ - Add support for Ruby 3
8
+
5
9
  ### 2.2.2
6
10
 
7
11
  - Fix issue where parent span determination can be nil if lightstep is not initialized
@@ -15,7 +15,7 @@
15
15
  # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
16
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
17
  #
18
- $:.push File.expand_path('../lib', __FILE__)
18
+ $:.push File.expand_path('lib', __dir__)
19
19
  require 'bigcommerce/lightstep/version'
20
20
 
21
21
  Gem::Specification.new do |spec|
@@ -46,6 +46,6 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency 'redis', '~> 4'
47
47
 
48
48
  spec.add_runtime_dependency 'activesupport', '>= 4'
49
- spec.add_runtime_dependency 'lightstep', '~> 0.16.0'
49
+ spec.add_runtime_dependency 'lightstep', '~> 0.17.0'
50
50
  spec.add_runtime_dependency 'faraday', ['>= 0.8', '<= 0.17.3']
51
51
  end
@@ -32,7 +32,7 @@ module Bigcommerce
32
32
  @tracer = tracer || ::Bigcommerce::Lightstep::Tracer.instance
33
33
  @span_prefix = span_prefix || ::Bigcommerce::Lightstep.active_record_span_prefix
34
34
  @span_name = span_name || 'mysql'
35
- @allow_root_spans = !allow_root_spans.nil? ? allow_root_spans : ::Bigcommerce::Lightstep.active_record_allow_root_spans
35
+ @allow_root_spans = allow_root_spans.nil? ? ::Bigcommerce::Lightstep.active_record_allow_root_spans : allow_root_spans
36
36
  end
37
37
 
38
38
  ##
@@ -68,7 +68,7 @@ module Bigcommerce
68
68
  # @return [String]
69
69
  #
70
70
  def key
71
- !@span_prefix.to_s.empty? ? "#{@span_prefix}.mysql" : 'mysql'
71
+ @span_prefix.to_s.empty? ? 'mysql' : "#{@span_prefix}.mysql"
72
72
  end
73
73
 
74
74
  ##
@@ -19,6 +19,7 @@ module Bigcommerce
19
19
  module Lightstep
20
20
  module Errors
21
21
  class Error < StandardError; end
22
+
22
23
  class InvalidAccessToken < Error; end
23
24
  end
24
25
  end
@@ -34,7 +34,7 @@ module Bigcommerce
34
34
  }.freeze
35
35
 
36
36
  PRESET_HOSTNAME = {
37
- 'hostname': 'HOSTNAME'
37
+ hostname: 'HOSTNAME'
38
38
  }.freeze
39
39
 
40
40
  ##
@@ -52,7 +52,7 @@ module Bigcommerce
52
52
  return yield unless @tracer
53
53
 
54
54
  # only take the command, not any arguments
55
- command = statement.to_s.split(' ').first
55
+ command = statement.to_s.split.first
56
56
 
57
57
  # skip excluded commands
58
58
  return yield if excluded?(command.to_s)
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Lightstep
20
- VERSION = '2.2.2'
20
+ VERSION = '2.3.0'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-lightstep-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.16.0
173
+ version: 0.17.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.16.0
180
+ version: 0.17.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: faraday
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  - !ruby/object:Gem::Version
247
247
  version: '0'
248
248
  requirements: []
249
- rubygems_version: 3.2.3
249
+ rubygems_version: 3.0.9
250
250
  signing_key:
251
251
  specification_version: 4
252
252
  summary: Gem for lightstep distributed tracing