Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy #module_name from Specification::Consumer #210

Merged
merged 1 commit into from
Dec 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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