Skip to content

Instantly share code, notes, and snippets.

@lukeredpath
Created January 8, 2013 16:29
Show Gist options
  • Save lukeredpath/4485201 to your computer and use it in GitHub Desktop.
Save lukeredpath/4485201 to your computer and use it in GitHub Desktop.
Pod::Spec.new do |s|
s.name = 'LRMocky'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'A mock object library for Objective C, inspired by JMock 2.0'
s.homepage = 'http://github.com/lukeredpath/LRMocky'
s.authors = { 'Luke Redpath' => '[email protected]' }
s.source = { :git => 'https://github.com/lukeredpath/LRMocky.git' }
s.requires_arc = true
# exclude files that are not ARC compatible
source_files = FileList['Classes/**/*.{h,m}'].exclude(/LRMockyAutomation/)
source_files.exclude(/NSInvocation\+(BlockArguments|OCMAdditions).m/)
s.source_files = source_files
s.public_header_files = FileList['Classes/**/*.h'].exclude(/LRMockyAutomation/)
# create a sub-spec just for the non-ARC files
s.subspec 'no-arc' do |sp|
sp.source_files = FileList['Classes/LRMocky/Categories/NSInvocation+{BlockArguments,OCMAdditions}.m']
sp.requires_arc = false
end
# platform targets
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
# dependencies
s.dependency 'OCHamcrest', '1.9'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment