Commit 3d217e3 1 parent 7778cd9 commit 3d217e3 Copy full SHA for 3d217e3
File tree 6 files changed +15
-14
lines changed
6 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 29
29
- 2.7
30
30
- 3.0
31
31
- 3.1
32
+ - 3.2
32
33
33
34
steps :
34
35
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
3
- ruby '>= 2.3 .0'
3
+ ruby '>= 2.6 .0'
4
4
5
5
gemspec
6
6
7
7
group :development do
8
8
gem "rake"
9
- gem "guard" , "~> 2.14" , platform : :mri_23
9
+ gem "guard" , "~> 2.18"
10
10
gem "guard-rspec" , "~> 4.7" , platform : :mri_23
11
11
12
12
gem "yard" , "~> 0.9"
@@ -16,21 +16,20 @@ group :development do
16
16
end
17
17
18
18
group :development , :test do
19
- gem "rspec" , "~> 3.5 "
20
- gem "simplecov" , "~> 0.12 "
19
+ gem "rspec" , "~> 3.12 "
20
+ gem "simplecov" , "~> 0.21 "
21
21
22
22
gem "sentry-raven"
23
23
gem "sentry-ruby"
24
24
gem "honeybadger"
25
- gem "coveralls" , "~> 0.8.15" , require : false
26
25
gem "newrelic_rpm"
27
- gem "ddtrace" , "~> 0.54.2 "
28
- gem "airbrake" , "~> 10 .0"
26
+ gem "ddtrace" , "~> 1.8 "
27
+ gem "airbrake" , "~> 13 .0"
29
28
gem "rollbar"
30
29
gem "bugsnag"
31
30
end
32
31
33
32
group :development , :darwin do
34
- gem "rb-fsevent" , "~> 0.9 "
33
+ gem "rb-fsevent" , "~> 0.11.2 "
35
34
gem "growl" , "~> 1.0.3"
36
35
end
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
gem . add_runtime_dependency 'march_hare' , '>= 3.0.0'
7
7
else
8
8
gem . platform = Gem ::Platform ::RUBY
9
- gem . add_runtime_dependency 'bunny' , '>= 2.19 ' , '< 3.0'
9
+ gem . add_runtime_dependency 'bunny' , '>= 2.20 ' , '< 3.0'
10
10
end
11
11
gem . add_runtime_dependency 'carrot-top' , '~> 0.0.7'
12
12
gem . add_runtime_dependency 'multi_json' , '~> 1.15'
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
gem . summary = 'Opinionated asynchronous inter-service communication using RabbitMQ'
17
17
gem . description = 'Hutch is a Ruby library for enabling asynchronous inter-service communication using RabbitMQ'
18
18
gem . version = Hutch ::VERSION . dup
19
- gem . required_ruby_version = '>= 2.2 '
19
+ gem . required_ruby_version = '>= 2.6 '
20
20
gem . authors = [ 'Harry Marr' , 'Michael Klishin' ]
21
21
gem . homepage = 'https://github.com/ruby-amqp/hutch'
22
22
gem . require_paths = [ 'lib' ]
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def daemonise_process
234
234
end
235
235
236
236
def abort_without_file ( file , file_description , &block )
237
- abort_with_message ( "#{ file_description } '#{ file } ' not found" ) unless File . exists ?( file )
237
+ abort_with_message ( "#{ file_description } '#{ file } ' not found" ) unless File . exist ?( file )
238
238
239
239
yield
240
240
end
Original file line number Diff line number Diff line change 1
1
require 'ddtrace'
2
+ require 'ddtrace/auto_instrument'
2
3
3
4
module Hutch
4
5
module Tracers
@@ -8,7 +9,7 @@ def initialize(klass)
8
9
end
9
10
10
11
def handle ( message )
11
- ::Datadog . tracer . trace ( @klass . class . name , service : 'hutch' , span_type : 'rabbitmq' ) do
12
+ ::Datadog :: Tracing . trace ( @klass . class . name , service : 'hutch' , span_type : 'rabbitmq' ) do
12
13
@klass . process ( message )
13
14
end
14
15
end
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ def process(message)
25
25
let ( :message ) { double ( :message ) }
26
26
27
27
before do
28
- allow ( Datadog . tracer ) . to receive ( :trace ) . and_call_original
28
+ allow ( :: Datadog :: Tracing ) . to receive ( :trace ) . and_call_original
29
29
end
30
30
31
31
it 'uses Datadog tracer' do
32
32
handle
33
33
34
- expect ( Datadog . tracer ) . to have_received ( :trace ) . with ( 'ClassName' ,
34
+ expect ( :: Datadog :: Tracing ) . to have_received ( :trace ) . with ( 'ClassName' ,
35
35
hash_including ( service : 'hutch' , span_type : 'rabbitmq' ) )
36
36
end
37
37
You can’t perform that action at this time.
0 commit comments