summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-27 22:54:36 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-28 12:30:46 +0200
commit9caea90954c9ca2ad0d720983281f1f82c9da558 (patch)
tree3fb8e02ba9855b52c7914c6037bdff533f51b1b2
parent662fe29107bf0dafd55be661a4471f4b7afd73f6 (diff)
downloadbundler-9caea90954c9ca2ad0d720983281f1f82c9da558.tar.gz
Fix license listing for bundler itself
-rw-r--r--lib/bundler/source/metadata.rb1
-rw-r--r--spec/commands/licenses_spec.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb
index 559b912ffd..0c96399b0e 100644
--- a/lib/bundler/source/metadata.rb
+++ b/lib/bundler/source/metadata.rb
@@ -13,6 +13,7 @@ module Bundler
idx << Gem::Specification.new do |s|
s.name = "bundler"
s.version = VERSION
+ s.license = "MIT"
s.platform = Gem::Platform::RUBY
s.source = self
s.authors = ["bundler team"]
diff --git a/spec/commands/licenses_spec.rb b/spec/commands/licenses_spec.rb
index 21fd8eaf2f..423921e282 100644
--- a/spec/commands/licenses_spec.rb
+++ b/spec/commands/licenses_spec.rb
@@ -12,7 +12,7 @@ RSpec.describe "bundle licenses" do
it "prints license information for all gems in the bundle" do
bundle "licenses"
- expect(err).to include("bundler: Unknown")
+ expect(out).to include("bundler: MIT")
expect(out).to include("with_license: MIT")
end