Commit 284175b7 authored by Eloy Duran's avatar Eloy Duran

Add the `license' attribute to Specification, which can be an arbitrary string. Closes #41.

parent d1c6f442
...@@ -32,6 +32,7 @@ module Pod ...@@ -32,6 +32,7 @@ module Pod
attr_accessor :homepage attr_accessor :homepage
attr_accessor :description attr_accessor :description
attr_accessor :source attr_accessor :source
attr_accessor :license
attr_reader :version attr_reader :version
def version=(version) def version=(version)
......
...@@ -261,4 +261,9 @@ describe "A Pod::Specification, in general," do ...@@ -261,4 +261,9 @@ describe "A Pod::Specification, in general," do
@spec.platform = :ios @spec.platform = :ios
@spec.platform.should == :ios @spec.platform.should == :ios
end end
it "returns the license of the Pod’s code" do
@spec.license = 'MIT'
@spec.license.should == 'MIT'
end
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