Skip to content

Commit

Permalink
Merge pull request #210 from CocoaPods/module_name_attribute_proxy
Browse files Browse the repository at this point in the history
Proxy #module_name from Specification::Consumer
  • Loading branch information
segiddins committed Dec 9, 2014
2 parents 1b8e20d + a74e4bd commit a01ba8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cocoapods-core/specification/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def self.spec_attr_accessor(name)
#
spec_attr_accessor :prefix_header_file

# @return [String] the module name.
#
spec_attr_accessor :module_name

# @return [String] the headers directory.
#
spec_attr_accessor :header_dir
Expand Down
7 changes: 7 additions & 0 deletions spec/specification/consumer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ module Pod

#------------------#

it 'allows to specify a module name' do
@spec.module_name = 'Three20Core'
@consumer.module_name.should == 'Three20Core'
end

#------------------#

it 'allows to specify a directory to use for the headers' do
@spec.header_dir = 'Three20Core'
@consumer.header_dir.should == 'Three20Core'
Expand Down

0 comments on commit a01ba8e

Please sign in to comment.