cocoapods-packager 1.1.1 → 1.2.0
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +18 -20
- data/lib/cocoapods-packager/builder.rb +27 -4
- data/lib/cocoapods-packager/user_interface/build_failed_report.rb +15 -0
- data/lib/cocoapods_packager.rb +1 -1
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/pod/command/package.rb +6 -3
- data/spec/command/package_spec.rb +19 -0
- data/spec/fixtures/Builder.podspec +5 -1
- data/spec/fixtures/FH.podspec +18 -0
- data/spec/fixtures/PackagerTest/Podfile.lock +2 -2
- data/spec/fixtures/Weakly.podspec +2 -2
- data/spec/specification/builder_spec.rb +30 -46
- data/spec/specification/spec_builder_spec.rb +56 -0
- data/spec/user_interface/build_failed_report_spec.rb +11 -0
- metadata +9 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 000570243f14d96b7675a8ba1807ff16f73211e7
|
|
4
|
+
data.tar.gz: 71846e4374dd39f08051e48986c7e75623211fad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: affc675c70cf6fbf4eb14974ae1f804bf96b2f6f8b05fa5f04dd19788b459168bcd79a305c00c22099514f053c9471c528c31f1dc852ed26f3210edb0ec982ab
|
|
7
|
+
data.tar.gz: 281f240dde0b63c45dc9691506eac825ea847d1406d8a5bfce4e6914d6a2dcef5b91e9cdfc13cb28c3e40c43d5c924265511a07b9105bcaa7ddc5a2ce838a4e0
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -9,12 +9,12 @@ GIT
|
|
|
9
9
|
PATH
|
|
10
10
|
remote: .
|
|
11
11
|
specs:
|
|
12
|
-
cocoapods-packager (1.
|
|
12
|
+
cocoapods-packager (1.2.0)
|
|
13
13
|
|
|
14
14
|
GEM
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
|
-
activesupport (4.2.
|
|
17
|
+
activesupport (4.2.1)
|
|
18
18
|
i18n (~> 0.7)
|
|
19
19
|
json (~> 1.7, >= 1.7.7)
|
|
20
20
|
minitest (~> 5.1)
|
|
@@ -22,31 +22,30 @@ GEM
|
|
|
22
22
|
tzinfo (~> 1.1)
|
|
23
23
|
bacon (1.2.0)
|
|
24
24
|
claide (0.8.1)
|
|
25
|
-
cocoapods (0.
|
|
25
|
+
cocoapods (0.37.1)
|
|
26
26
|
activesupport (>= 3.2.15)
|
|
27
27
|
claide (~> 0.8.1)
|
|
28
|
-
cocoapods-core (= 0.
|
|
29
|
-
cocoapods-downloader (~> 0.
|
|
30
|
-
cocoapods-plugins (~> 0.4.
|
|
28
|
+
cocoapods-core (= 0.37.1)
|
|
29
|
+
cocoapods-downloader (~> 0.9.0)
|
|
30
|
+
cocoapods-plugins (~> 0.4.2)
|
|
31
31
|
cocoapods-trunk (~> 0.6.0)
|
|
32
|
-
cocoapods-try (~> 0.4.
|
|
32
|
+
cocoapods-try (~> 0.4.4)
|
|
33
33
|
colored (~> 1.2)
|
|
34
34
|
escape (~> 0.0.4)
|
|
35
|
-
molinillo (~> 0.2.
|
|
35
|
+
molinillo (~> 0.2.3)
|
|
36
36
|
nap (~> 0.8)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
cocoapods-core (0.36.0)
|
|
37
|
+
xcodeproj (~> 0.24.1)
|
|
38
|
+
cocoapods-core (0.37.1)
|
|
40
39
|
activesupport (>= 3.2.15)
|
|
41
40
|
fuzzy_match (~> 2.0.4)
|
|
42
41
|
nap (~> 0.8.0)
|
|
43
|
-
cocoapods-downloader (0.
|
|
44
|
-
cocoapods-plugins (0.4.
|
|
42
|
+
cocoapods-downloader (0.9.0)
|
|
43
|
+
cocoapods-plugins (0.4.2)
|
|
45
44
|
nap
|
|
46
45
|
cocoapods-trunk (0.6.0)
|
|
47
46
|
nap (>= 0.8)
|
|
48
47
|
netrc (= 0.7.8)
|
|
49
|
-
cocoapods-try (0.4.
|
|
48
|
+
cocoapods-try (0.4.4)
|
|
50
49
|
colored (1.2)
|
|
51
50
|
coveralls (0.7.2)
|
|
52
51
|
multi_json (~> 1.3)
|
|
@@ -61,16 +60,15 @@ GEM
|
|
|
61
60
|
json (1.8.2)
|
|
62
61
|
metaclass (0.0.4)
|
|
63
62
|
mime-types (2.4.3)
|
|
64
|
-
minitest (5.
|
|
63
|
+
minitest (5.6.1)
|
|
65
64
|
mocha (0.11.4)
|
|
66
65
|
metaclass (~> 0.0.1)
|
|
67
66
|
mocha-on-bacon (0.2.1)
|
|
68
67
|
mocha (>= 0.9.8)
|
|
69
|
-
molinillo (0.2.
|
|
68
|
+
molinillo (0.2.3)
|
|
70
69
|
multi_json (1.10.1)
|
|
71
70
|
nap (0.8.0)
|
|
72
71
|
netrc (0.7.8)
|
|
73
|
-
open4 (1.3.4)
|
|
74
72
|
rake (10.4.2)
|
|
75
73
|
rest-client (1.6.7)
|
|
76
74
|
mime-types (>= 1.16)
|
|
@@ -82,11 +80,11 @@ GEM
|
|
|
82
80
|
term-ansicolor (1.2.2)
|
|
83
81
|
tins (~> 0.8)
|
|
84
82
|
thor (0.18.1)
|
|
85
|
-
thread_safe (0.3.
|
|
83
|
+
thread_safe (0.3.5)
|
|
86
84
|
tins (0.13.2)
|
|
87
85
|
tzinfo (1.2.2)
|
|
88
86
|
thread_safe (~> 0.1)
|
|
89
|
-
xcodeproj (0.
|
|
87
|
+
xcodeproj (0.24.1)
|
|
90
88
|
activesupport (>= 3)
|
|
91
89
|
colored (~> 1.2)
|
|
92
90
|
|
|
@@ -96,7 +94,7 @@ PLATFORMS
|
|
|
96
94
|
DEPENDENCIES
|
|
97
95
|
bacon
|
|
98
96
|
bundler (~> 1.3)
|
|
99
|
-
cocoapods (>= 0.
|
|
97
|
+
cocoapods (>= 0.37.0)
|
|
100
98
|
cocoapods-packager!
|
|
101
99
|
coveralls
|
|
102
100
|
mocha (~> 0.11.4)
|
|
@@ -78,6 +78,8 @@ module Pod
|
|
|
78
78
|
def build_with_mangling(platform)
|
|
79
79
|
UI.puts 'Mangling symbols'
|
|
80
80
|
defines = Symbols.mangle_for_pod_dependencies(@spec.name, @sandbox_root)
|
|
81
|
+
defines << " " << @spec.consumer(platform).compiler_flags.join(' ')
|
|
82
|
+
|
|
81
83
|
if platform.name == :ios
|
|
82
84
|
defines = "#{defines} ARCHS=\"x86_64 i386 arm64 armv7 armv7s\""
|
|
83
85
|
end
|
|
@@ -89,6 +91,7 @@ module Pod
|
|
|
89
91
|
|
|
90
92
|
def compile(platform)
|
|
91
93
|
defines = "GCC_PREPROCESSOR_DEFINITIONS='PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
|
|
94
|
+
defines << " " << @spec.consumer(platform).compiler_flags.join(' ')
|
|
92
95
|
|
|
93
96
|
if platform.name == :ios
|
|
94
97
|
defines = "#{defines} ARCHS=\"x86_64 i386 arm64 armv7 armv7s\""
|
|
@@ -107,9 +110,15 @@ module Pod
|
|
|
107
110
|
headers_source_root = "#{@public_headers_root}/#{@spec.name}"
|
|
108
111
|
|
|
109
112
|
Dir.glob("#{headers_source_root}/**/*.h").
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
each { |h| `ditto #{h} #{@fwk.headers_path}/#{h.sub(headers_source_root, '')}` }
|
|
114
|
+
|
|
115
|
+
# If custom 'module_map' is specified add it to the framework distribution
|
|
116
|
+
# otherwise check if a header exists that is equal to 'spec.name', if so
|
|
117
|
+
# create a default 'module_map' one using it.
|
|
118
|
+
if !@spec.module_map.nil?
|
|
119
|
+
module_map_file = "#{@sandbox_root}/#{@spec.name}/#{@spec.module_map}"
|
|
120
|
+
module_map = File.read(module_map_file) if Pathname(module_map_file).exist?
|
|
121
|
+
elsif File.exist?("#{@public_headers_root}/#{@spec.name}/#{@spec.name}.h")
|
|
113
122
|
module_map = <<MAP
|
|
114
123
|
framework module #{@spec.name} {
|
|
115
124
|
umbrella header "#{@spec.name}.h"
|
|
@@ -118,7 +127,9 @@ framework module #{@spec.name} {
|
|
|
118
127
|
module * { export * }
|
|
119
128
|
}
|
|
120
129
|
MAP
|
|
130
|
+
end
|
|
121
131
|
|
|
132
|
+
unless module_map.nil?
|
|
122
133
|
@fwk.module_map_path.mkpath unless @fwk.module_map_path.exist?
|
|
123
134
|
File.write("#{@fwk.module_map_path}/module.modulemap", module_map)
|
|
124
135
|
end
|
|
@@ -171,7 +182,19 @@ MAP
|
|
|
171
182
|
end
|
|
172
183
|
|
|
173
184
|
def xcodebuild(defines = '', args = '', build_dir = 'build')
|
|
174
|
-
|
|
185
|
+
command = "xcodebuild #{defines} CONFIGURATION_BUILD_DIR=#{build_dir} clean build #{args} -configuration Release -target Pods -project #{@sandbox_root}/Pods.xcodeproj 2>&1"
|
|
186
|
+
output = `#{command}`.lines.to_a
|
|
187
|
+
|
|
188
|
+
if $?.exitstatus != 0
|
|
189
|
+
puts UI::BuildFailedReport.report(command, output)
|
|
190
|
+
|
|
191
|
+
# Note: We use `Process.exit` here because it fires a `SystemExit`
|
|
192
|
+
# exception, which gives the caller a chance to clean up before the
|
|
193
|
+
# process terminates.
|
|
194
|
+
#
|
|
195
|
+
# See http://ruby-doc.org/core-1.9.3/Process.html#method-c-exit
|
|
196
|
+
Process.exit
|
|
197
|
+
end
|
|
175
198
|
end
|
|
176
199
|
end
|
|
177
200
|
end
|
data/lib/cocoapods_packager.rb
CHANGED
data/lib/cocoapods_plugin.rb
CHANGED
data/lib/pod/command/package.rb
CHANGED
|
@@ -67,10 +67,13 @@ module Pod
|
|
|
67
67
|
|
|
68
68
|
sandbox = install_pod(platform.name)
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
begin
|
|
71
|
+
perform_build(platform, sandbox)
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
ensure # in case the build fails; see Builder#xcodebuild.
|
|
74
|
+
Pathname.new(config.sandbox_root).rmtree
|
|
75
|
+
FileUtils.rm_f('Podfile.lock')
|
|
76
|
+
end
|
|
74
77
|
end
|
|
75
78
|
|
|
76
79
|
def build_package
|
|
@@ -8,6 +8,7 @@ module Pod
|
|
|
8
8
|
Dir.glob("NikeKit-*").each { |dir| Pathname.new(dir).rmtree }
|
|
9
9
|
Dir.glob("foo-bar-*").each { |dir| Pathname.new(dir).rmtree }
|
|
10
10
|
Dir.glob("a-*").each { |dir| Pathname.new(dir).rmtree }
|
|
11
|
+
Dir.glob("FH-*").each { |dir| Pathname.new(dir).rmtree }
|
|
11
12
|
end
|
|
12
13
|
|
|
13
14
|
it 'registers itself' do
|
|
@@ -94,6 +95,24 @@ module Pod
|
|
|
94
95
|
true.should == true # To make the test pass without any shoulds
|
|
95
96
|
end
|
|
96
97
|
|
|
98
|
+
it "it respects module_map directive" do
|
|
99
|
+
SourcesManager.stubs(:search).returns(nil)
|
|
100
|
+
|
|
101
|
+
command = Command.parse(%w{ package spec/fixtures/FH.podspec })
|
|
102
|
+
command.run
|
|
103
|
+
|
|
104
|
+
modulemap_contents = File.read(Dir.glob("FH-*/ios/FH.framework/Modules/module.modulemap").first)
|
|
105
|
+
module_map = <<MAP
|
|
106
|
+
framework module FH {
|
|
107
|
+
umbrella header "FeedHenry.h"
|
|
108
|
+
|
|
109
|
+
export *
|
|
110
|
+
module * { export * }
|
|
111
|
+
}
|
|
112
|
+
MAP
|
|
113
|
+
modulemap_contents.should == module_map
|
|
114
|
+
end
|
|
115
|
+
|
|
97
116
|
#it "runs with a spec in the master repository" do
|
|
98
117
|
# command = Command.parse(%w{ package KFData })
|
|
99
118
|
# command.run
|
|
@@ -11,11 +11,15 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.libraries = 'xml2'
|
|
12
12
|
s.requires_arc = true
|
|
13
13
|
s.xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }
|
|
14
|
+
s.compiler_flag = "-DBASE_FLAG"
|
|
14
15
|
|
|
15
16
|
s.ios.frameworks = 'Foundation'
|
|
16
17
|
s.ios.deployment_target = '8.0'
|
|
18
|
+
s.ios.compiler_flag = "-DIOS_FLAG"
|
|
17
19
|
|
|
18
20
|
s.osx.frameworks = 'AppKit'
|
|
21
|
+
s.osx.deployment_target = "10.8"
|
|
19
22
|
s.osx.requires_arc = false
|
|
20
23
|
s.osx.xcconfig = { 'CFLAGS' => '-I.' }
|
|
21
|
-
|
|
24
|
+
s.osx.compiler_flag = "-DOSX_FLAG"
|
|
25
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Pod::Spec.new do |s|
|
|
2
|
+
s.name = 'FH'
|
|
3
|
+
s.version = '2.2.8'
|
|
4
|
+
s.summary = 'FeedHenry iOS Software Development Kit'
|
|
5
|
+
s.homepage = 'https://www.feedhenry.com'
|
|
6
|
+
s.social_media_url = 'https://twitter.com/feedhenry'
|
|
7
|
+
s.license = 'FeedHenry'
|
|
8
|
+
s.author = 'Red Hat, Inc.'
|
|
9
|
+
s.source = { :git => 'https://github.com/cvasilak/fh-ios-sdk.git', :branch => 'module_map' }
|
|
10
|
+
s.platform = :ios, 7.0
|
|
11
|
+
s.source_files = 'fh-ios-sdk/**/*.{h,m}'
|
|
12
|
+
s.public_header_files = 'fh-ios-sdk/FeedHenry.h', 'fh-ios-sdk/FH.h', 'fh-ios-sdk/FHAct.h', 'fh-ios-sdk/FHActRequest.h', 'fh-ios-sdk/FHAuthRequest.h', 'fh-ios-sdk/FHCloudProps.h', 'fh-ios-sdk/FHCloudRequest.h', 'fh-ios-sdk/FHConfig.h', 'fh-ios-sdk/FHResponse.h', 'fh-ios-sdk/FHResponseDelegate.h', 'fh-ios-sdk/Sync/FHSyncClient.h', 'fh-ios-sdk/Sync/FHSyncConfig.h', 'fh-ios-sdk/Sync/FHSyncNotificationMessage.h', 'fh-ios-sdk/Sync/FHSyncDelegate.h', 'fh-ios-sdk/Categories/JSON/FHJSON.h', 'fh-ios-sdk/FHDataManager.h'
|
|
13
|
+
s.module_map = 'fh-ios-sdk/module.modulemap'
|
|
14
|
+
s.requires_arc = true
|
|
15
|
+
s.libraries = 'xml2', 'z'
|
|
16
|
+
s.dependency 'ASIHTTPRequest/Core', '1.8.2'
|
|
17
|
+
s.dependency 'Reachability', '3.2'
|
|
18
|
+
end
|
|
@@ -1,56 +1,40 @@
|
|
|
1
1
|
require File.expand_path('../../spec_helper', __FILE__)
|
|
2
2
|
|
|
3
3
|
module Pod
|
|
4
|
-
describe
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
describe Builder do
|
|
5
|
+
describe 'Xcodebuild command' do
|
|
6
|
+
describe 'compiler flags' do
|
|
7
|
+
before do
|
|
8
|
+
@spec = Specification.from_file('spec/fixtures/Builder.podspec')
|
|
9
|
+
@builder = Builder.new(nil, nil, nil, @spec, nil, nil)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it "includes proper compiler flags for iOS" do
|
|
13
|
+
@builder.expects(:xcodebuild).with('GCC_PREPROCESSOR_DEFINITIONS=\'PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder\' -DBASE_FLAG -DIOS_FLAG ARCHS="x86_64 i386 arm64 armv7 armv7s"').returns(nil)
|
|
14
|
+
@builder.compile(Platform.new(:ios))
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it "includes proper compiler flags for OSX" do
|
|
18
|
+
@builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DOSX_FLAG").returns(nil)
|
|
19
|
+
@builder.compile(Platform.new(:osx))
|
|
20
|
+
end
|
|
12
21
|
end
|
|
13
|
-
end
|
|
14
22
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
describe 'on build failure' do
|
|
24
|
+
before do
|
|
25
|
+
@spec = Specification.from_file('spec/fixtures/Builder.podspec')
|
|
26
|
+
@builder = Builder.new(nil, nil, nil, @spec, nil, nil)
|
|
27
|
+
end
|
|
20
28
|
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
it 'dumps report and terminates' do
|
|
30
|
+
UI::BuildFailedReport.expects(:report).returns(nil)
|
|
23
31
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
should.raise SystemExit do
|
|
33
|
+
# TODO: check that it dumps report
|
|
34
|
+
@builder.compile(Platform.new(:ios))
|
|
35
|
+
end
|
|
36
|
+
end
|
|
28
37
|
end
|
|
29
|
-
|
|
30
|
-
it "preserves platform.frameworks" do
|
|
31
|
-
spec = specification_from_builder(@builder)
|
|
32
|
-
compare_attributes(spec, @spec, 'frameworks')
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
it "preserves platform.libraries" do
|
|
36
|
-
spec = specification_from_builder(@builder)
|
|
37
|
-
compare_attributes(spec, @spec, 'libraries')
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
it "preserves platform.requires_arc" do
|
|
41
|
-
spec = specification_from_builder(@builder)
|
|
42
|
-
compare_attributes(spec, @spec, 'requires_arc')
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
it "preserves platform.deployment_target" do
|
|
46
|
-
spec = specification_from_builder(@builder)
|
|
47
|
-
compare_attributes(spec, @spec, 'deployment_target')
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
it "preserves platform.xcconfig" do
|
|
51
|
-
spec = specification_from_builder(@builder)
|
|
52
|
-
compare_attributes(spec, @spec, 'xcconfig')
|
|
53
|
-
end
|
|
54
|
-
end
|
|
38
|
+
end
|
|
55
39
|
end
|
|
56
40
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
module Pod
|
|
4
|
+
describe SpecBuilder do
|
|
5
|
+
def compare_attributes(first_spec, second_spec, attribute_name)
|
|
6
|
+
first_spec.attributes_hash[attribute_name].should ==
|
|
7
|
+
second_spec.attributes_hash[attribute_name]
|
|
8
|
+
|
|
9
|
+
%w(ios osx).each do |platform|
|
|
10
|
+
first_spec.attributes_hash[platform][attribute_name].should ==
|
|
11
|
+
second_spec.attributes_hash[platform][attribute_name]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def specification_from_builder(builder)
|
|
16
|
+
spec_string = builder.spec_metadata
|
|
17
|
+
spec_string += builder.spec_platform(Platform.ios)
|
|
18
|
+
spec_string += builder.spec_platform(Platform.osx)
|
|
19
|
+
spec_string += builder.spec_close
|
|
20
|
+
|
|
21
|
+
return Specification.from_string(spec_string, 'Builder.podspec')
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe 'Preserve attributes from source specification' do
|
|
25
|
+
before do
|
|
26
|
+
@spec = Specification.from_file('spec/fixtures/Builder.podspec')
|
|
27
|
+
@builder = SpecBuilder.new(@spec, nil, false)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
it "preserves platform.frameworks" do
|
|
31
|
+
spec = specification_from_builder(@builder)
|
|
32
|
+
compare_attributes(spec, @spec, 'frameworks')
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
it "preserves platform.libraries" do
|
|
36
|
+
spec = specification_from_builder(@builder)
|
|
37
|
+
compare_attributes(spec, @spec, 'libraries')
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "preserves platform.requires_arc" do
|
|
41
|
+
spec = specification_from_builder(@builder)
|
|
42
|
+
compare_attributes(spec, @spec, 'requires_arc')
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it "preserves platform.deployment_target" do
|
|
46
|
+
spec = specification_from_builder(@builder)
|
|
47
|
+
compare_attributes(spec, @spec, 'deployment_target')
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
it "preserves platform.xcconfig" do
|
|
51
|
+
spec = specification_from_builder(@builder)
|
|
52
|
+
compare_attributes(spec, @spec, 'xcconfig')
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
module Pod
|
|
4
|
+
module UserInterface
|
|
5
|
+
describe BuildFailedReport do
|
|
6
|
+
it 'should format a report correctly' do
|
|
7
|
+
UI::BuildFailedReport.report('a', ['b']).should == "Build command failed: a\nOutput:\n b\n"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
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.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle Fuller
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -63,6 +63,7 @@ files:
|
|
|
63
63
|
- lib/cocoapods-packager/pod_utils.rb
|
|
64
64
|
- lib/cocoapods-packager/spec_builder.rb
|
|
65
65
|
- lib/cocoapods-packager/symbols.rb
|
|
66
|
+
- lib/cocoapods-packager/user_interface/build_failed_report.rb
|
|
66
67
|
- lib/cocoapods_packager.rb
|
|
67
68
|
- lib/cocoapods_plugin.rb
|
|
68
69
|
- lib/pod/command/package.rb
|
|
@@ -73,6 +74,7 @@ files:
|
|
|
73
74
|
- spec/command/subspecs_spec.rb
|
|
74
75
|
- spec/fixtures/Builder.podspec
|
|
75
76
|
- spec/fixtures/CPDColors.podspec
|
|
77
|
+
- spec/fixtures/FH.podspec
|
|
76
78
|
- spec/fixtures/KFData.podspec
|
|
77
79
|
- spec/fixtures/LibraryConsumerDemo/.gitignore
|
|
78
80
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
|
|
@@ -113,6 +115,8 @@ files:
|
|
|
113
115
|
- spec/pod/utils_spec.rb
|
|
114
116
|
- spec/spec_helper.rb
|
|
115
117
|
- spec/specification/builder_spec.rb
|
|
118
|
+
- spec/specification/spec_builder_spec.rb
|
|
119
|
+
- spec/user_interface/build_failed_report_spec.rb
|
|
116
120
|
homepage: https://github.com/CocoaPods/cocoapods-packager
|
|
117
121
|
licenses:
|
|
118
122
|
- MIT
|
|
@@ -144,6 +148,7 @@ test_files:
|
|
|
144
148
|
- spec/command/subspecs_spec.rb
|
|
145
149
|
- spec/fixtures/Builder.podspec
|
|
146
150
|
- spec/fixtures/CPDColors.podspec
|
|
151
|
+
- spec/fixtures/FH.podspec
|
|
147
152
|
- spec/fixtures/KFData.podspec
|
|
148
153
|
- spec/fixtures/LibraryConsumerDemo/.gitignore
|
|
149
154
|
- spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj
|
|
@@ -184,4 +189,6 @@ test_files:
|
|
|
184
189
|
- spec/pod/utils_spec.rb
|
|
185
190
|
- spec/spec_helper.rb
|
|
186
191
|
- spec/specification/builder_spec.rb
|
|
192
|
+
- spec/specification/spec_builder_spec.rb
|
|
193
|
+
- spec/user_interface/build_failed_report_spec.rb
|
|
187
194
|
has_rdoc:
|