Commit a6a86b85 authored by Will Pragnell's avatar Will Pragnell

Added license method to Local_Pod and removed range key from license

parent f9e77af9
...@@ -75,6 +75,10 @@ module Pod ...@@ -75,6 +75,10 @@ module Pod
source_files.select { |f| f.extname == '.h' } source_files.select { |f| f.extname == '.h' }
end end
def license
specification.license
end
def link_headers def link_headers
copy_header_mappings.each do |namespaced_path, files| copy_header_mappings.each do |namespaced_path, files|
@sandbox.add_header_files(namespaced_path, files) @sandbox.add_header_files(namespaced_path, files)
......
...@@ -49,6 +49,14 @@ describe Pod::LocalPod do ...@@ -49,6 +49,14 @@ describe Pod::LocalPod do
@pod.header_files.should == [Pathname.new("BananaLib/Classes/Banana.h")] @pod.header_files.should == [Pathname.new("BananaLib/Classes/Banana.h")]
end end
it 'returns a license' do
@pod.license.should == {
:type => "MIT",
:file => "LICENSE",
:text => "Permission is hereby granted ..."
}
end
it 'can clean up after itself' do it 'can clean up after itself' do
@pod.clean_paths.tap do |paths| @pod.clean_paths.tap do |paths|
@pod.clean @pod.clean
......
...@@ -177,13 +177,11 @@ describe "A Pod::Specification, in general," do ...@@ -177,13 +177,11 @@ describe "A Pod::Specification, in general," do
@spec.license = { @spec.license = {
:type => 'MIT', :type => 'MIT',
:file => 'LICENSE', :file => 'LICENSE',
:range => 1..15,
:text => 'Permission is hereby granted ...' :text => 'Permission is hereby granted ...'
} }
@spec.license.should == { @spec.license.should == {
:type => 'MIT', :type => 'MIT',
:file => 'LICENSE', :file => 'LICENSE',
:range => 1..15,
:text => 'Permission is hereby granted ...' :text => 'Permission is hereby granted ...'
} }
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