Skip to content

Commit 2f920da

Browse files
committed
Require Ruby 2.5+ for libdatadog Ruby gem
This matches what dd-trace-rb is using ([git](https://github.com/DataDog/dd-trace-rb/blob/master/lib/datadog/version.rb#L14), [rubygems](https://rubygems.org/gems/datadog)) and cannot cause backwards compatibility issues because we pin dd-trace-rb versions to libdatadog major.minor versions, so it's not possible for an older version of the gem on Ruby 2.4 to try to use the latest libdatadog.
1 parent bc9144e commit 2f920da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruby/gems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
gem "rake", ">= 12.0", "< 14"
88
gem "rspec", "~> 3.10"
99
gem "standard", "~> 1.7", ">= 1.7.2" unless RUBY_VERSION < "2.6"
10-
gem "http", "~> 5.0" unless RUBY_VERSION < "2.5"
10+
gem "http", "~> 5.0"
1111
gem "pry"
1212
gem "pry-byebug" unless RUBY_VERSION > "3.1"
1313
gem "rubygems-await" unless RUBY_VERSION < "3.1"

ruby/libdatadog.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
1515
"libdatadog is a Rust-based utility library for Datadog's ddtrace gem."
1616
spec.homepage = "https://docs.datadoghq.com/tracing/"
1717
spec.license = "Apache-2.0"
18-
spec.required_ruby_version = ">= 2.1.0"
18+
spec.required_ruby_version = ">= 2.5.0"
1919

2020
spec.metadata["allowed_push_host"] = "https://rubygems.org"
2121

0 commit comments

Comments
 (0)