spec/spec_helper.rb in cocoapods-acknowledgements-1.1.3 vs spec/spec_helper.rb in cocoapods-acknowledgements-1.2.0

- old
+ new

@@ -42,6 +42,68 @@ end end end end +module SpecHelper + def self.temporary_directory + ROOT + 'tmp' + end + + def self.spec1 + Pod::Specification.new do |s| + s.name = 'monkeylib' + s.version = '1.0' + s.authors = { + 'CocoaPods' => 'email@cocoapods.org' + } + s.social_media_url = 'https://twitter.com/CocoaPods' + s.homepage = 'https://github.com/CocoaPods/monkeylib' + s.license = { + :type => 'MIT', + :file => 'LICENSE', + :text => 'Permission is hereby granted ...' + } + s.summary = 'A lib to do monkey things' + s.description = <<EOF +## What is it +A lib to do monkey things +## Why? +Why not? +EOF + end + end + + def self.spec2 + Pod::Specification.new do |s| + s.name = 'BananaLib' + s.version = '1.0' + s.authors = 'Banana Corp', { 'Monkey Boy' => 'monkey@banana-corp.local' } + s.homepage = 'http://banana-corp.local/banana-lib.html' + s.summary = 'Chunky bananas!' + s.description = 'Full of chunky bananas.' + s.source = { :git => 'http://banana-corp.local/banana-lib.git', :tag => 'v1.0' } + s.license = { + :type => 'MIT', + :file => 'LICENSE', + :text => 'Permission is hereby granted ...' + } + s.source_files = 'Classes/*.{h,m,d}', 'Vendor', 'framework/Source/*.h' + s.resources = "Resources/*", "Resources/Images.xcassets" + s.vendored_framework = 'BananaFramework.framework' + s.vendored_library = 'libBananaStaticLib.a' + s.preserve_paths = 'preserve_me.txt' + s.public_header_files = 'Classes/Banana.h', 'framework/Source/MoreBanana.h' + s.module_map = 'Banana.modulemap' + + s.prefix_header_file = 'Classes/BananaLib.pch' + s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-framework SystemConfiguration' } + s.dependency 'monkey', '~> 1.0.1', '< 1.0.9' + end + end +end + +def temporary_sandbox + Pod::Sandbox.new(SpecHelper.temporary_directory + 'Pods') +end + #-----------------------------------------------------------------------------#