Skip to content

Commit 837b2f6

Browse files
committed
chore: Update gem to include changes from main
* move dev dependencies to Gemfile * require 'logger' in test helper * set min version to Ruby 3.1
1 parent 5ef9943 commit 837b2f6

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

instrumentation/logger/Gemfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,20 @@ source 'https://rubygems.org'
1313
gemspec
1414

1515
group :test do
16+
gem 'appraisal', '~> 2.5'
17+
gem 'bundler', '~> 2.4'
18+
gem 'minitest', '~> 5.0'
19+
gem 'opentelemetry-sdk', '~> 1.0'
20+
gem 'opentelemetry-logs-sdk', '~> 0.1'
21+
gem 'opentelemetry-test-helpers', '~> 0.3'
22+
gem 'rubocop', '~> 1.72.0'
23+
gem 'rubocop-performance', '~> 1.23.0'
24+
gem 'simplecov', '~> 0.22.0'
25+
gem 'webmock', '~> 3.24'
26+
gem 'yard', '~> 0.9'
1627
gem 'opentelemetry-instrumentation-base', path: '../base'
28+
if RUBY_VERSION >= '3.4'
29+
gem 'base64'
30+
gem 'mutex_m'
31+
end
1732
end

instrumentation/logger/opentelemetry-instrumentation-logger.gemspec

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,11 @@ Gem::Specification.new do |spec|
2323
Dir.glob('*.md') +
2424
['LICENSE', '.yardopts']
2525
spec.require_paths = ['lib']
26-
spec.required_ruby_version = '>= 3.0'
26+
spec.required_ruby_version = '>= 3.1'
2727

28-
spec.add_dependency 'opentelemetry-instrumentation-base', '~> 0.22'
28+
spec.add_dependency 'opentelemetry-instrumentation-base', '~> 0.23.0'
2929
spec.add_dependency 'opentelemetry-logs-api', '~> 0.1'
3030

31-
spec.add_development_dependency 'appraisal', '~> 2.5.0'
32-
spec.add_development_dependency 'bundler', '~> 2.4'
33-
spec.add_development_dependency 'minitest', '~> 5.0'
34-
spec.add_development_dependency 'opentelemetry-logs-sdk', '~> 0.1'
35-
spec.add_development_dependency 'opentelemetry-test-helpers', '~> 0.3'
36-
spec.add_development_dependency 'rake', '~> 13.0'
37-
spec.add_development_dependency 'rubocop', '~> 1.69.1'
38-
spec.add_development_dependency 'rubocop-performance', '~> 1.23.0'
39-
spec.add_development_dependency 'yard', '~> 0.9'
40-
spec.add_development_dependency 'yard-doctest', '~> 0.1.6'
41-
4231
if spec.respond_to?(:metadata)
4332
spec.metadata['changelog_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}/file/CHANGELOG.md"
4433
spec.metadata['source_code_uri'] = 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/logger'

instrumentation/logger/test/test_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
require 'logger'
78
require 'bundler/setup'
89
Bundler.require(:default, :development, :test)
910

0 commit comments

Comments
 (0)