Skip to content

Commit

Permalink
[TargetHeader] Add warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Feb 2, 2013
1 parent a47b443 commit e5e2498
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/cocoapods/generator/target_header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def initialize(specs)
#
def save_as(pathname)
pathname.open('w') do |source|
source.puts "// WARNING: This feature of CocoaPods is present for discussion purposes and might be discontinued or changed in future"
source.puts "#define __COCOA_PODS"
source.puts
specs.each do |specs|
Expand Down
1 change: 1 addition & 0 deletions spec/unit/generator/target_header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
file = temporary_directory + 'PodsDummy.m'
@gen.save_as(file)
file.read.should == <<-EOS.strip_heredoc
// WARNING: This feature of CocoaPods is present for discussion purposes and might be discontinued or changed in future
#define __COCOA_PODS
#define __POD_BananaLib
Expand Down

0 comments on commit e5e2498

Please sign in to comment.