diff --git a/datadog.gemspec b/datadog.gemspec index 5bb2255482a..7073f16b548 100644 --- a/datadog.gemspec +++ b/datadog.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| DESC spec.homepage = 'https://github.com/DataDog/dd-trace-rb' - spec.license = 'BSD-3-Clause' + spec.licenses = ['BSD-3-Clause', 'Apache-2.0'] if spec.respond_to?(:metadata) spec.metadata['allowed_push_host'] = 'https://rubygems.org' diff --git a/spec/datadog/release_gem_spec.rb b/spec/datadog/release_gem_spec.rb index 5d7769841b7..95aae580a4a 100644 --- a/spec/datadog/release_gem_spec.rb +++ b/spec/datadog/release_gem_spec.rb @@ -101,5 +101,11 @@ ) end end + + context 'licenses' do + it 'returns dual licenses (BSD-3-Clause and Apache-2)' do + expect(gemspec.licenses).to contain_exactly('BSD-3-Clause', 'Apache-2.0') + end + end end end