diff --git a/ddtrace.gemspec b/ddtrace.gemspec index 690c503aff9..cae7573da53 100644 --- a/ddtrace.gemspec +++ b/ddtrace.gemspec @@ -21,7 +21,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/ddtrace/release_gem_spec.rb b/spec/ddtrace/release_gem_spec.rb index 63055ab80fe..aad1d90ccb7 100644 --- a/spec/ddtrace/release_gem_spec.rb +++ b/spec/ddtrace/release_gem_spec.rb @@ -102,5 +102,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