Unverified Commit 19799b24 authored by Naoto Kaneko's avatar Naoto Kaneko Committed by Samuel Giddins

Add a license type to generated acknowledgements file in plist

parent 09fc1d45
...@@ -37,6 +37,7 @@ module Pod ...@@ -37,6 +37,7 @@ module Pod
:Type => 'PSGroupSpecifier', :Type => 'PSGroupSpecifier',
:Title => sanitize_encoding(spec.name), :Title => sanitize_encoding(spec.name),
:FooterText => sanitize_encoding(license), :FooterText => sanitize_encoding(license),
:License => spec.license[:type],
} }
end end
end end
......
...@@ -8,6 +8,7 @@ describe Pod::Generator::Plist do ...@@ -8,6 +8,7 @@ describe Pod::Generator::Plist do
@spec = @file_accessor.spec @spec = @file_accessor.spec
@generator = Pod::Generator::Plist.new([@file_accessor]) @generator = Pod::Generator::Plist.new([@file_accessor])
@spec.stubs(:name).returns('POD_NAME') @spec.stubs(:name).returns('POD_NAME')
@spec.stubs(:license).returns(:type => 'MIT')
@generator.stubs(:license_text).returns('LICENSE_TEXT') @generator.stubs(:license_text).returns('LICENSE_TEXT')
end end
...@@ -24,6 +25,7 @@ describe Pod::Generator::Plist do ...@@ -24,6 +25,7 @@ describe Pod::Generator::Plist do
:Type => 'PSGroupSpecifier', :Type => 'PSGroupSpecifier',
:Title => 'POD_NAME', :Title => 'POD_NAME',
:FooterText => 'LICENSE_TEXT', :FooterText => 'LICENSE_TEXT',
:License => 'MIT',
} }
end end
...@@ -34,6 +36,7 @@ describe Pod::Generator::Plist do ...@@ -34,6 +36,7 @@ describe Pod::Generator::Plist do
:Type => 'PSGroupSpecifier', :Type => 'PSGroupSpecifier',
:Title => 'POD_NAME', :Title => 'POD_NAME',
:FooterText => license_text, :FooterText => license_text,
:License => 'MIT',
} }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment