Skip to content

Commit 9a8878f

Browse files
vpellanp-datadog
andauthored
[APMAPI-1614] Update steep to 1.10 (#4920)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 717e3d9 commit 9a8878f

File tree

20 files changed

+70
-31
lines changed

20 files changed

+70
-31
lines changed

lib/datadog/core/pin.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@ def key?(name)
4343
# rubocop:disable Style/TrivialAccessors
4444
def onto(obj)
4545
unless obj.respond_to? :datadog_pin=
46-
obj.instance_exec do
47-
def datadog_pin=(pin)
48-
@datadog_pin = pin
49-
end
46+
obj.define_singleton_method(:datadog_pin=) do |pin|
47+
@datadog_pin = pin
5048
end
5149
end
5250

5351
unless obj.respond_to? :datadog_pin
54-
obj.instance_exec do
55-
def datadog_pin
56-
@datadog_pin
57-
end
52+
obj.define_singleton_method(:datadog_pin) do
53+
@datadog_pin
5854
end
5955
end
6056

lib/datadog/tracing/contrib/component.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class << self
99
# Register a callback to be invoked when components are reconfigured.
1010
# @param name [String] the name of the integration
1111
# @param callback [Proc] the callback to invoke
12-
# @yieldparam config [Datadog::Configuration] the configuration to pass to callbacks
12+
# @yieldparam config [Datadog::Core::Configuration::Settings] the configuration to pass to callbacks
1313
def register(name, &callback)
1414
@registry[name] = callback
1515
end
1616

1717
# Invoke all registered callbacks with the given configuration.
18-
# @param config [Datadog::Configuration] the configuration to pass to callbacks
18+
# @param config [Datadog::Core::Configuration::Settings] the configuration to pass to callbacks
1919
def configure(config)
2020
@registry.each do |name, callback|
2121
callback.call(config)

ruby-3.1.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ gem 'webrick', '>= 1.7.0'
4545

4646
group :check do
4747
gem 'rbs', '~> 3.7', require: false
48-
# steep 1.10 produces additional errors
49-
gem 'steep', '~> 1.9.1', require: false
48+
gem 'steep', '~> 1.10', require: false
5049
gem 'standard', require: false
5150

5251
# Rubocop version must be pinned to major.minor because its demanded

ruby-3.2.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ gem 'webrick', '>= 1.7.0'
4444

4545
group :check do
4646
gem 'rbs', '~> 3.7', require: false
47-
# steep 1.10 produces additional errors
48-
gem 'steep', '~> 1.9.1', require: false
47+
gem 'steep', '~> 1.10', require: false
4948
gem 'standard', require: false
5049

5150
# Rubocop version must be pinned to major.minor because its demanded

ruby-3.3.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ gem 'webrick', '>= 1.7.0'
4444

4545
group :check do
4646
gem 'rbs', '~> 3.7', require: false
47-
# steep 1.10 produces additional errors
48-
gem 'steep', '~> 1.9.1', require: false
47+
gem 'steep', '~> 1.10', require: false
4948
gem 'standard', require: false
5049

5150
# Rubocop version must be pinned to major.minor because its demanded

ruby-3.4.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ gem 'webrick', '>= 1.8.2'
4747

4848
group :check do
4949
gem 'rbs', '~> 3.7', require: false
50-
# steep 1.10 produces additional errors
51-
gem 'steep', '~> 1.9.1', require: false
50+
gem 'steep', '~> 1.10', require: false
5251
gem 'ruby_memcheck', '>= 3'
5352
gem 'standard', require: false
5453

ruby-3.5.gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ gem 'webrick', '>= 1.8.2'
4848

4949
group :check do
5050
gem 'rbs', '~> 3.7', require: false
51-
# steep 1.10 produces additional errors
52-
gem 'steep', '~> 1.9.1', require: false
51+
gem 'steep', '~> 1.10', require: false
5352
gem 'ruby_memcheck', '>= 3'
5453
gem 'standard', require: false
5554

sig/datadog/appsec/context.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ module Datadog
4343

4444
def waf_runner_known_addresses: () -> WAF::known_addresses
4545

46+
def extract_schema: () -> SecurityEngine::result
47+
4648
def export_metrics: () -> void
4749

4850
def export_request_telemetry: () -> void

sig/datadog/core/buffer/random.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module Datadog
1818

1919
def concat: (Array[Object]) -> void
2020

21+
def unshift: (*Object) -> void
22+
2123
def drain!: -> Array[Object]
2224

2325
def empty?: -> bool

sig/datadog/core/telemetry/component.rbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ module Datadog
2626

2727
def disable!: () -> void
2828

29+
def start: (?bool initial_event_is_change) -> void
30+
31+
def shutdown!: () -> void
32+
33+
def flush: () -> void
34+
2935
def client_configuration_change!: (Array[[String, Numeric | bool | String]] changes) -> void
3036

3137
def emit_closing!: () -> void
3238

33-
def stop!: () -> void
34-
3539
def integrations_change!: () -> void
3640

3741
def app_endpoints_loaded: (Event::AppEndpointsLoaded::endpoints endpoints, page_size: Integer) -> void

0 commit comments

Comments
 (0)