cocoapods-packager 0.5.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile +1 -0
  5. data/Gemfile.lock +22 -0
  6. data/README.md +4 -1
  7. data/lib/cocoapods-packager/builder.rb +15 -2
  8. data/lib/cocoapods-packager/framework.rb +5 -0
  9. data/lib/cocoapods-packager/mangle.rb +1 -2
  10. data/lib/cocoapods-packager/pod_utils.rb +24 -0
  11. data/lib/cocoapods_packager.rb +1 -1
  12. data/lib/pod/command/package.rb +4 -0
  13. data/spec/command/error_spec.rb +35 -0
  14. data/spec/command/package_spec.rb +10 -0
  15. data/spec/fixtures/CPDColors.podspec +19 -0
  16. data/spec/fixtures/PackagerTest/.gitignore +21 -0
  17. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj +510 -0
  18. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  19. data/spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata +1 -0
  20. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h +15 -0
  21. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m +49 -0
  22. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
  23. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
  24. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Info.plist +38 -0
  25. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Prefix.pch +16 -0
  26. data/spec/fixtures/PackagerTest/PackagerTest/en.lproj/InfoPlist.strings +2 -0
  27. data/spec/fixtures/PackagerTest/PackagerTest/main.m +18 -0
  28. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests-Info.plist +22 -0
  29. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests.m +34 -0
  30. data/spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings +2 -0
  31. data/spec/fixtures/PackagerTest/Podfile +8 -0
  32. data/spec/fixtures/PackagerTest/Podfile.lock +30 -0
  33. data/spec/fixtures/foo-bar.podspec +19 -0
  34. data/spec/integration/project_spec.rb +27 -0
  35. data/spec/spec_helper.rb +3 -0
  36. metadata +45 -2
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:PackagerTest.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1 @@
1
+ <?xml version='1.0' encoding='UTF-8'?><Workspace version='1.0'><FileRef location='group:PackagerTest.xcodeproj'/><FileRef location='group:Pods/Pods.xcodeproj'/></Workspace>
@@ -0,0 +1,15 @@
1
+ //
2
+ // CPDAppDelegate.h
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface CPDAppDelegate : UIResponder <UIApplicationDelegate>
12
+
13
+ @property (strong, nonatomic) UIWindow *window;
14
+
15
+ @end
@@ -0,0 +1,49 @@
1
+ //
2
+ // CPDAppDelegate.m
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import "CPDAppDelegate.h"
10
+
11
+ @implementation CPDAppDelegate
12
+
13
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14
+ {
15
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
16
+ // Override point for customization after application launch.
17
+ self.window.backgroundColor = [UIColor whiteColor];
18
+ [self.window makeKeyAndVisible];
19
+ return YES;
20
+ }
21
+
22
+ - (void)applicationWillResignActive:(UIApplication *)application
23
+ {
24
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26
+ }
27
+
28
+ - (void)applicationDidEnterBackground:(UIApplication *)application
29
+ {
30
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
31
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
32
+ }
33
+
34
+ - (void)applicationWillEnterForeground:(UIApplication *)application
35
+ {
36
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
37
+ }
38
+
39
+ - (void)applicationDidBecomeActive:(UIApplication *)application
40
+ {
41
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
42
+ }
43
+
44
+ - (void)applicationWillTerminate:(UIApplication *)application
45
+ {
46
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
47
+ }
48
+
49
+ @end
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "29x29",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "40x40",
11
+ "scale" : "2x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "60x60",
16
+ "scale" : "2x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "orientation" : "portrait",
5
+ "idiom" : "iphone",
6
+ "extent" : "full-screen",
7
+ "minimum-system-version" : "7.0",
8
+ "scale" : "2x"
9
+ },
10
+ {
11
+ "orientation" : "portrait",
12
+ "idiom" : "iphone",
13
+ "subtype" : "retina4",
14
+ "extent" : "full-screen",
15
+ "minimum-system-version" : "7.0",
16
+ "scale" : "2x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>${PRODUCT_NAME}</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>${EXECUTABLE_NAME}</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>${PRODUCT_NAME}</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1.0</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>UIRequiredDeviceCapabilities</key>
28
+ <array>
29
+ <string>armv7</string>
30
+ </array>
31
+ <key>UISupportedInterfaceOrientations</key>
32
+ <array>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
+ </array>
37
+ </dict>
38
+ </plist>
@@ -0,0 +1,16 @@
1
+ //
2
+ // Prefix header
3
+ //
4
+ // The contents of this file are implicitly included at the beginning of every source file.
5
+ //
6
+
7
+ #import <Availability.h>
8
+
9
+ #ifndef __IPHONE_3_0
10
+ #warning "This project uses features only available in iOS SDK 3.0 and later."
11
+ #endif
12
+
13
+ #ifdef __OBJC__
14
+ #import <UIKit/UIKit.h>
15
+ #import <Foundation/Foundation.h>
16
+ #endif
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,18 @@
1
+ //
2
+ // main.m
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ #import "CPDAppDelegate.h"
12
+
13
+ int main(int argc, char * argv[])
14
+ {
15
+ @autoreleasepool {
16
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([CPDAppDelegate class]));
17
+ }
18
+ }
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>BNDL</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleSignature</key>
18
+ <string>????</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,34 @@
1
+ //
2
+ // PackagerTestTests.m
3
+ // PackagerTestTests
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <XCTest/XCTest.h>
10
+
11
+ @interface PackagerTestTests : XCTestCase
12
+
13
+ @end
14
+
15
+ @implementation PackagerTestTests
16
+
17
+ - (void)setUp
18
+ {
19
+ [super setUp];
20
+ // Put setup code here. This method is called before the invocation of each test method in the class.
21
+ }
22
+
23
+ - (void)tearDown
24
+ {
25
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
26
+ [super tearDown];
27
+ }
28
+
29
+ - (void)testExample
30
+ {
31
+ XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32
+ }
33
+
34
+ @end
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,8 @@
1
+ platform :ios, "6.0"
2
+
3
+ target "PackagerTest" do
4
+
5
+ pod 'AFNetworking'
6
+
7
+ end
8
+
@@ -0,0 +1,30 @@
1
+ PODS:
2
+ - AFNetworking (2.3.1):
3
+ - AFNetworking/NSURLConnection
4
+ - AFNetworking/NSURLSession
5
+ - AFNetworking/Reachability
6
+ - AFNetworking/Security
7
+ - AFNetworking/Serialization
8
+ - AFNetworking/UIKit
9
+ - AFNetworking/NSURLConnection (2.3.1):
10
+ - AFNetworking/Reachability
11
+ - AFNetworking/Security
12
+ - AFNetworking/Serialization
13
+ - AFNetworking/NSURLSession (2.3.1):
14
+ - AFNetworking/Reachability
15
+ - AFNetworking/Security
16
+ - AFNetworking/Serialization
17
+ - AFNetworking/Reachability (2.3.1)
18
+ - AFNetworking/Security (2.3.1)
19
+ - AFNetworking/Serialization (2.3.1)
20
+ - AFNetworking/UIKit (2.3.1):
21
+ - AFNetworking/NSURLConnection
22
+ - AFNetworking/NSURLSession
23
+
24
+ DEPENDENCIES:
25
+ - AFNetworking
26
+
27
+ SPEC CHECKSUMS:
28
+ AFNetworking: 6d7b76aa5d04c8c37daad3eef4b7e3f2a7620da3
29
+
30
+ COCOAPODS: 0.33.1
@@ -0,0 +1,19 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = 'foo-bar'
3
+ s.version = '0.0.1'
4
+ s.summary = 'Objective-C implementation of the Nike+ API.'
5
+ s.homepage = 'https://github.com/neonichu/NikeKit'
6
+ s.license = {:type => 'MIT', :file => 'LICENSE'}
7
+ s.authors = { 'Boris Bügling' => 'http://buegling.com' }
8
+ s.source = { :git => 'https://github.com/neonichu/NikeKit.git', :tag => s.version.to_s }
9
+ s.platform = :ios, '6.0'
10
+
11
+ s.public_header_files = '*.h'
12
+ s.source_files = '*.{h,m}'
13
+ s.frameworks = 'Foundation'
14
+ s.requires_arc = true
15
+
16
+ s.dependency 'AFNetworking'
17
+ s.dependency 'ISO8601DateFormatter'
18
+ s.dependency 'KZPropertyMapper'
19
+ end
@@ -0,0 +1,27 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Spec::Package do
5
+ describe 'IntegrationTests' do
6
+ after do
7
+ Dir.glob("NikeKit-*").each { |dir| Pathname.new(dir).rmtree }
8
+ Pathname.new('spec/fixtures/PackagerTest/NikeKit.framework').rmtree
9
+ end
10
+
11
+ it 'Allow integration into project alongside CocoaPods' do
12
+ SourcesManager.stubs(:search).returns(nil)
13
+
14
+ command = Command.parse(%w{ package spec/fixtures/NikeKit.podspec })
15
+ command.run
16
+ `cp -Rp NikeKit-*/ios/NikeKit.framework spec/fixtures/PackagerTest`
17
+
18
+ Dir.chdir('spec/fixtures/PackagerTest') do
19
+ `pod install`
20
+ `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest`
21
+ end
22
+
23
+ true.should == true # To make the test pass without any shoulds
24
+ end
25
+ end
26
+ end
27
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'pathname'
2
5
  ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
6
  $:.unshift((ROOT + 'lib').to_s)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,6 +44,7 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - ".coveralls.yml"
47
48
  - ".gitignore"
48
49
  - ".rubocop-cocoapods.yml"
49
50
  - ".rubocop.yml"
@@ -65,10 +66,31 @@ files:
65
66
  - lib/pod/command/package.rb
66
67
  - scripts/lstconst.sh
67
68
  - scripts/lstsym.sh
69
+ - spec/command/error_spec.rb
68
70
  - spec/command/package_spec.rb
69
71
  - spec/fixtures/Builder.podspec
72
+ - spec/fixtures/CPDColors.podspec
70
73
  - spec/fixtures/KFData.podspec
71
74
  - spec/fixtures/NikeKit.podspec
75
+ - spec/fixtures/PackagerTest/.gitignore
76
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
77
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
78
+ - spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata
79
+ - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h
80
+ - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m
81
+ - spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/AppIcon.appiconset/Contents.json
82
+ - spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/LaunchImage.launchimage/Contents.json
83
+ - spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Info.plist
84
+ - spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Prefix.pch
85
+ - spec/fixtures/PackagerTest/PackagerTest/en.lproj/InfoPlist.strings
86
+ - spec/fixtures/PackagerTest/PackagerTest/main.m
87
+ - spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests-Info.plist
88
+ - spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests.m
89
+ - spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings
90
+ - spec/fixtures/PackagerTest/Podfile
91
+ - spec/fixtures/PackagerTest/Podfile.lock
92
+ - spec/fixtures/foo-bar.podspec
93
+ - spec/integration/project_spec.rb
72
94
  - spec/spec_helper.rb
73
95
  - spec/specification/builder_spec.rb
74
96
  homepage: https://github.com/CocoaPods/cocoapods-packager
@@ -96,10 +118,31 @@ signing_key:
96
118
  specification_version: 4
97
119
  summary: ''
98
120
  test_files:
121
+ - spec/command/error_spec.rb
99
122
  - spec/command/package_spec.rb
100
123
  - spec/fixtures/Builder.podspec
124
+ - spec/fixtures/CPDColors.podspec
101
125
  - spec/fixtures/KFData.podspec
102
126
  - spec/fixtures/NikeKit.podspec
127
+ - spec/fixtures/PackagerTest/.gitignore
128
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
129
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
130
+ - spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata
131
+ - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h
132
+ - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m
133
+ - spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/AppIcon.appiconset/Contents.json
134
+ - spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/LaunchImage.launchimage/Contents.json
135
+ - spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Info.plist
136
+ - spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Prefix.pch
137
+ - spec/fixtures/PackagerTest/PackagerTest/en.lproj/InfoPlist.strings
138
+ - spec/fixtures/PackagerTest/PackagerTest/main.m
139
+ - spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests-Info.plist
140
+ - spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests.m
141
+ - spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings
142
+ - spec/fixtures/PackagerTest/Podfile
143
+ - spec/fixtures/PackagerTest/Podfile.lock
144
+ - spec/fixtures/foo-bar.podspec
145
+ - spec/integration/project_spec.rb
103
146
  - spec/spec_helper.rb
104
147
  - spec/specification/builder_spec.rb
105
148
  has_rdoc: