Commit 2008fc52 authored by Eloy Duran's avatar Eloy Duran

Add the `license' attribute to the created stub podspec.

parent 284175b7
...@@ -34,6 +34,7 @@ module Pod ...@@ -34,6 +34,7 @@ module Pod
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = '#{@name}' s.name = '#{@name}'
s.version = '1.0.0' s.version = '1.0.0'
s.license = 'MIT'
s.summary = 'A short description of #{@name}.' s.summary = 'A short description of #{@name}.'
s.homepage = 'http://example.com/#{@name}' s.homepage = 'http://example.com/#{@name}'
s.author = { '#{author}' => '#{email}' } s.author = { '#{author}' => '#{email}' }
...@@ -45,7 +46,7 @@ module Pod ...@@ -45,7 +46,7 @@ module Pod
# automatically have '*.{h,m,mm,c,cpp}' appended. # automatically have '*.{h,m,mm,c,cpp}' appended.
s.source_files = 'Classes', 'Classes/**/*.{h,m}' s.source_files = 'Classes', 'Classes/**/*.{h,m}'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework SomeRequiredFramework' } s.framework = 'SomeRequiredFramework'
s.dependency 'SomeLibraryThat#{@name}DependsOn', '>= 1.0.0' s.dependency 'SomeLibraryThat#{@name}DependsOn', '>= 1.0.0'
end end
......
...@@ -45,6 +45,7 @@ describe "Pod::Command" do ...@@ -45,6 +45,7 @@ describe "Pod::Command" do
path = temporary_directory + 'Bananas.podspec' path = temporary_directory + 'Bananas.podspec'
spec = Pod::Specification.from_file(path) spec = Pod::Specification.from_file(path)
spec.name.should == 'Bananas' spec.name.should == 'Bananas'
spec.license.should == 'MIT'
spec.version.should == Pod::Version.new('1.0.0') spec.version.should == Pod::Version.new('1.0.0')
spec.summary.should == 'A short description of Bananas.' spec.summary.should == 'A short description of Bananas.'
spec.homepage.should == 'http://example.com/Bananas' spec.homepage.should == 'http://example.com/Bananas'
......
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