cocoapods-packager 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +49 -46
  5. data/Podfile.lock +14 -0
  6. data/lib/cocoapods-packager/builder.rb +36 -10
  7. data/lib/cocoapods-packager/framework.rb +2 -0
  8. data/lib/cocoapods-packager/pod_utils.rb +9 -0
  9. data/lib/cocoapods-packager/symbols.rb +1 -2
  10. data/lib/cocoapods_packager.rb +1 -1
  11. data/lib/pod/command/package.rb +1 -1
  12. data/spec/command/error_spec.rb +8 -0
  13. data/spec/command/package_spec.rb +11 -0
  14. data/spec/fixtures/KFData.podspec +11 -2
  15. data/spec/fixtures/LibraryConsumerDemo/.gitignore +22 -0
  16. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj +324 -0
  17. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  18. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme +100 -0
  19. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h +17 -0
  20. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m +26 -0
  21. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist +40 -0
  22. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/main.m +16 -0
  23. data/spec/fixtures/LibraryConsumerDemo/Podfile +1 -0
  24. data/spec/fixtures/LibraryDemo.podspec +12 -0
  25. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/xcshareddata/xcschemes/PackagerTest.xcscheme +110 -0
  26. data/spec/fixtures/PackagerTest/Podfile.lock +7 -7
  27. data/spec/fixtures/Weakly.podspec +13 -0
  28. data/spec/integration/project_spec.rb +26 -4
  29. metadata +40 -13
@@ -0,0 +1,26 @@
1
+ //
2
+ // AppDelegate.m
3
+ // LibraryConsumer
4
+ //
5
+ // Created by Ole Gammelgaard Poulsen on 16/10/14.
6
+ // Copyright (c) 2014 Shape A/S. All rights reserved.
7
+ //
8
+
9
+ #import "AppDelegate.h"
10
+ #import "MyDemoClass.h"
11
+
12
+ @interface AppDelegate ()
13
+
14
+ @end
15
+
16
+ @implementation AppDelegate
17
+
18
+
19
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20
+
21
+ NSLog(@"%@", [MyDemoClass welcomeMessage]);
22
+
23
+ return YES;
24
+ }
25
+
26
+ @end
@@ -0,0 +1,40 @@
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>dk.shape.$(PRODUCT_NAME:rfc1034identifier)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>APPL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ <key>LSRequiresIPhoneOS</key>
24
+ <true/>
25
+ <key>UILaunchStoryboardName</key>
26
+ <string>LaunchScreen</string>
27
+ <key>UIMainStoryboardFile</key>
28
+ <string>Main</string>
29
+ <key>UIRequiredDeviceCapabilities</key>
30
+ <array>
31
+ <string>armv7</string>
32
+ </array>
33
+ <key>UISupportedInterfaceOrientations</key>
34
+ <array>
35
+ <string>UIInterfaceOrientationPortrait</string>
36
+ <string>UIInterfaceOrientationLandscapeLeft</string>
37
+ <string>UIInterfaceOrientationLandscapeRight</string>
38
+ </array>
39
+ </dict>
40
+ </plist>
@@ -0,0 +1,16 @@
1
+ //
2
+ // main.m
3
+ // LibraryConsumer
4
+ //
5
+ // Created by Ole Gammelgaard Poulsen on 16/10/14.
6
+ // Copyright (c) 2014 Shape A/S. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+ #import "AppDelegate.h"
11
+
12
+ int main(int argc, char * argv[]) {
13
+ @autoreleasepool {
14
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ pod 'LibraryDemo', :path => '../../../LibraryDemo-1.0.0'
@@ -0,0 +1,12 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = 'LibraryDemo'
3
+ s.version = '1.0.0'
4
+ s.summary = 'Demo'
5
+ s.author = {'Ole Gammelgaard Poulsen' => 'ole@shape.dk' }
6
+ s.source = { :git => 'https://github.com/olegam/LibraryDemo.git', :tag => s.version.to_s }
7
+ s.source_files = 'sources/**/*.{h,m}'
8
+ s.requires_arc = true
9
+ s.ios.deployment_target = '5.0'
10
+ s.osx.deployment_target = '10.9'
11
+
12
+ end
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "0610"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
18
+ BuildableName = "PackagerTest.app"
19
+ BlueprintName = "PackagerTest"
20
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ <BuildActionEntry
24
+ buildForTesting = "YES"
25
+ buildForRunning = "YES"
26
+ buildForProfiling = "NO"
27
+ buildForArchiving = "NO"
28
+ buildForAnalyzing = "YES">
29
+ <BuildableReference
30
+ BuildableIdentifier = "primary"
31
+ BlueprintIdentifier = "A1DE56CF19AA4A97000339C6"
32
+ BuildableName = "PackagerTestTests.xctest"
33
+ BlueprintName = "PackagerTestTests"
34
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
35
+ </BuildableReference>
36
+ </BuildActionEntry>
37
+ </BuildActionEntries>
38
+ </BuildAction>
39
+ <TestAction
40
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42
+ shouldUseLaunchSchemeArgsEnv = "YES"
43
+ buildConfiguration = "Debug">
44
+ <Testables>
45
+ <TestableReference
46
+ skipped = "NO">
47
+ <BuildableReference
48
+ BuildableIdentifier = "primary"
49
+ BlueprintIdentifier = "A1DE56CF19AA4A97000339C6"
50
+ BuildableName = "PackagerTestTests.xctest"
51
+ BlueprintName = "PackagerTestTests"
52
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
53
+ </BuildableReference>
54
+ </TestableReference>
55
+ </Testables>
56
+ <MacroExpansion>
57
+ <BuildableReference
58
+ BuildableIdentifier = "primary"
59
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
60
+ BuildableName = "PackagerTest.app"
61
+ BlueprintName = "PackagerTest"
62
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
63
+ </BuildableReference>
64
+ </MacroExpansion>
65
+ </TestAction>
66
+ <LaunchAction
67
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69
+ launchStyle = "0"
70
+ useCustomWorkingDirectory = "NO"
71
+ buildConfiguration = "Debug"
72
+ ignoresPersistentStateOnLaunch = "NO"
73
+ debugDocumentVersioning = "YES"
74
+ allowLocationSimulation = "YES">
75
+ <BuildableProductRunnable>
76
+ <BuildableReference
77
+ BuildableIdentifier = "primary"
78
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
79
+ BuildableName = "PackagerTest.app"
80
+ BlueprintName = "PackagerTest"
81
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
82
+ </BuildableReference>
83
+ </BuildableProductRunnable>
84
+ <AdditionalOptions>
85
+ </AdditionalOptions>
86
+ </LaunchAction>
87
+ <ProfileAction
88
+ shouldUseLaunchSchemeArgsEnv = "YES"
89
+ savedToolIdentifier = ""
90
+ useCustomWorkingDirectory = "NO"
91
+ buildConfiguration = "Release"
92
+ debugDocumentVersioning = "YES">
93
+ <BuildableProductRunnable>
94
+ <BuildableReference
95
+ BuildableIdentifier = "primary"
96
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
97
+ BuildableName = "PackagerTest.app"
98
+ BlueprintName = "PackagerTest"
99
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
100
+ </BuildableReference>
101
+ </BuildableProductRunnable>
102
+ </ProfileAction>
103
+ <AnalyzeAction
104
+ buildConfiguration = "Debug">
105
+ </AnalyzeAction>
106
+ <ArchiveAction
107
+ buildConfiguration = "Release"
108
+ revealArchiveInOrganizer = "YES">
109
+ </ArchiveAction>
110
+ </Scheme>
@@ -1,11 +1,11 @@
1
1
  PODS:
2
2
  - AFNetworking (2.3.1):
3
- - AFNetworking/NSURLConnection
4
- - AFNetworking/NSURLSession
5
- - AFNetworking/Reachability
6
- - AFNetworking/Security
7
- - AFNetworking/Serialization
8
- - AFNetworking/UIKit
3
+ - AFNetworking/NSURLConnection (= 2.3.1)
4
+ - AFNetworking/NSURLSession (= 2.3.1)
5
+ - AFNetworking/Reachability (= 2.3.1)
6
+ - AFNetworking/Security (= 2.3.1)
7
+ - AFNetworking/Serialization (= 2.3.1)
8
+ - AFNetworking/UIKit (= 2.3.1)
9
9
  - AFNetworking/NSURLConnection (2.3.1):
10
10
  - AFNetworking/Reachability
11
11
  - AFNetworking/Security
@@ -27,4 +27,4 @@ DEPENDENCIES:
27
27
  SPEC CHECKSUMS:
28
28
  AFNetworking: 6d7b76aa5d04c8c37daad3eef4b7e3f2a7620da3
29
29
 
30
- COCOAPODS: 0.34.0
30
+ COCOAPODS: 0.36.0
@@ -0,0 +1,13 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = "Weakly"
3
+ s.version = "0.1.0"
4
+ s.summary = "Yo"
5
+ s.homepage = "http://google.com"
6
+ s.license = "MIT"
7
+ s.author = { "Boris Bügling" => "boris@icculus.org" }
8
+ s.platform = :ios, '8.0'
9
+ s.source = { :git => "https://github.com/neonichu/CPDColors.git", :tag => s.version }
10
+ s.source_files = 'Code'
11
+
12
+ s.dependency 'PromiseKit'
13
+ end
@@ -5,7 +5,8 @@ module Pod
5
5
  describe 'IntegrationTests' do
6
6
  after do
7
7
  Dir.glob("NikeKit-*").each { |dir| Pathname.new(dir).rmtree }
8
- Pathname.new('spec/fixtures/PackagerTest/NikeKit.framework').rmtree
8
+ Dir.glob("LibraryDemo-*").each { |dir| Pathname.new(dir).rmtree }
9
+ FileUtils.rm_rf('spec/fixtures/PackagerTest/NikeKit.framework')
9
10
  end
10
11
 
11
12
  it 'Allow integration into project alongside CocoaPods' do
@@ -15,13 +16,34 @@ module Pod
15
16
  command.run
16
17
  `cp -Rp NikeKit-*/ios/NikeKit.framework spec/fixtures/PackagerTest`
17
18
 
19
+ log = ''
20
+
18
21
  Dir.chdir('spec/fixtures/PackagerTest') do
19
- `pod install`
20
- `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest`
22
+ `pod install 2>&1`
23
+ log << `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest -sdk iphonesimulator CODE_SIGN_IDENTITY=- 2>&1`
21
24
  end
22
25
 
23
- true.should == true # To make the test pass without any shoulds
26
+ puts log if $?.exitstatus != 0
27
+ $?.exitstatus.should == 0
24
28
  end
29
+
30
+ it 'allows integration of a library without dependencies' do
31
+ SourcesManager.stubs(:search).returns(nil)
32
+
33
+ command = Command.parse(%w{ package spec/fixtures/LibraryDemo.podspec })
34
+ command.run
35
+
36
+ log = ''
37
+
38
+ Dir.chdir('spec/fixtures/LibraryConsumerDemo') do
39
+ `pod install 2>&1`
40
+ log << `xcodebuild -workspace LibraryConsumer.xcworkspace -scheme LibraryConsumer 2>&1`
41
+ log << `xcodebuild -sdk iphonesimulator -workspace LibraryConsumer.xcworkspace -scheme LibraryConsumer 2>&1`
42
+ end
43
+
44
+ puts log if $?.exitstatus != 0
45
+ $?.exitstatus.should == 0
46
+ end
25
47
  end
26
48
  end
27
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-26 00:00:00.000000000 Z
12
+ date: 2015-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.3'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.3'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  description:
@@ -45,14 +45,15 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - ".coveralls.yml"
49
- - ".gitignore"
50
- - ".rubocop-cocoapods.yml"
51
- - ".rubocop.yml"
52
- - ".travis.yml"
48
+ - .coveralls.yml
49
+ - .gitignore
50
+ - .rubocop-cocoapods.yml
51
+ - .rubocop.yml
52
+ - .travis.yml
53
53
  - Gemfile
54
54
  - Gemfile.lock
55
55
  - LICENSE
56
+ - Podfile.lock
56
57
  - README.md
57
58
  - Rakefile
58
59
  - cocoapods-packager.gemspec
@@ -73,11 +74,23 @@ files:
73
74
  - spec/fixtures/Builder.podspec
74
75
  - spec/fixtures/CPDColors.podspec
75
76
  - spec/fixtures/KFData.podspec
77
+ - spec/fixtures/LibraryConsumerDemo/.gitignore
78
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
79
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
80
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme
81
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcworkspace/contents.xcworkspacedata
82
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h
83
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m
84
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist
85
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/main.m
86
+ - spec/fixtures/LibraryConsumerDemo/Podfile
87
+ - spec/fixtures/LibraryDemo.podspec
76
88
  - spec/fixtures/NikeKit.podspec
77
89
  - spec/fixtures/OpenSans.podspec
78
90
  - spec/fixtures/PackagerTest/.gitignore
79
91
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
80
92
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
93
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/xcshareddata/xcschemes/PackagerTest.xcscheme
81
94
  - spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata
82
95
  - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h
83
96
  - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m
@@ -92,6 +105,7 @@ files:
92
105
  - spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings
93
106
  - spec/fixtures/PackagerTest/Podfile
94
107
  - spec/fixtures/PackagerTest/Podfile.lock
108
+ - spec/fixtures/Weakly.podspec
95
109
  - spec/fixtures/a.podspec
96
110
  - spec/fixtures/foo-bar.podspec
97
111
  - spec/fixtures/layer-client-messaging-schema.podspec
@@ -109,12 +123,12 @@ require_paths:
109
123
  - lib
110
124
  required_ruby_version: !ruby/object:Gem::Requirement
111
125
  requirements:
112
- - - ">="
126
+ - - '>='
113
127
  - !ruby/object:Gem::Version
114
128
  version: '0'
115
129
  required_rubygems_version: !ruby/object:Gem::Requirement
116
130
  requirements:
117
- - - ">="
131
+ - - '>='
118
132
  - !ruby/object:Gem::Version
119
133
  version: '0'
120
134
  requirements: []
@@ -131,11 +145,23 @@ test_files:
131
145
  - spec/fixtures/Builder.podspec
132
146
  - spec/fixtures/CPDColors.podspec
133
147
  - spec/fixtures/KFData.podspec
148
+ - spec/fixtures/LibraryConsumerDemo/.gitignore
149
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
150
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
151
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme
152
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcworkspace/contents.xcworkspacedata
153
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h
154
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m
155
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist
156
+ - spec/fixtures/LibraryConsumerDemo/LibraryConsumer/main.m
157
+ - spec/fixtures/LibraryConsumerDemo/Podfile
158
+ - spec/fixtures/LibraryDemo.podspec
134
159
  - spec/fixtures/NikeKit.podspec
135
160
  - spec/fixtures/OpenSans.podspec
136
161
  - spec/fixtures/PackagerTest/.gitignore
137
162
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
138
163
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
164
+ - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/xcshareddata/xcschemes/PackagerTest.xcscheme
139
165
  - spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata
140
166
  - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h
141
167
  - spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m
@@ -150,6 +176,7 @@ test_files:
150
176
  - spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings
151
177
  - spec/fixtures/PackagerTest/Podfile
152
178
  - spec/fixtures/PackagerTest/Podfile.lock
179
+ - spec/fixtures/Weakly.podspec
153
180
  - spec/fixtures/a.podspec
154
181
  - spec/fixtures/foo-bar.podspec
155
182
  - spec/fixtures/layer-client-messaging-schema.podspec