Skip to content

Commit

Permalink
Merge pull request #3677 from DataDog/tonycthsu/add-missing-license-i…
Browse files Browse the repository at this point in the history
…n-gemspec

Add missing Apache 2.0 license from gemspec
  • Loading branch information
TonyCTHsu authored Jun 5, 2024
2 parents d64360b + 9582139 commit 66e5b96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datadog.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions spec/datadog/release_gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 66e5b96

Please sign in to comment.