cocoapods-packager-m 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cocoapods-packager-m might be problematic. Click here for more details.

Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -123
  3. data/.coveralls.yml +0 -1
  4. data/.gitignore +0 -3
  5. data/.rubocop-cocoapods.yml +0 -71
  6. data/.rubocop.yml +0 -38
  7. data/.travis.yml +0 -9
  8. data/Gemfile +0 -12
  9. data/Gemfile.lock +0 -121
  10. data/LICENSE +0 -22
  11. data/README.md +0 -42
  12. data/Rakefile +0 -12
  13. data/cocoapods-packager.gemspec +0 -19
  14. data/lib/cocoapods-packager/builder.rb +0 -312
  15. data/lib/cocoapods-packager/framework.rb +0 -66
  16. data/lib/cocoapods-packager/mangle.rb +0 -32
  17. data/lib/cocoapods-packager/pod_utils.rb +0 -252
  18. data/lib/cocoapods-packager/spec_builder.rb +0 -63
  19. data/lib/cocoapods-packager/symbols.rb +0 -35
  20. data/lib/cocoapods-packager/user_interface/build_failed_report.rb +0 -15
  21. data/lib/cocoapods_packager.rb +0 -5
  22. data/lib/cocoapods_plugin.rb +0 -8
  23. data/lib/pod/command/package.rb +0 -165
  24. data/scripts/lstconst.sh +0 -9
  25. data/scripts/lstsym.sh +0 -8
  26. data/spec/command/error_spec.rb +0 -74
  27. data/spec/command/package_spec.rb +0 -359
  28. data/spec/command/subspecs_spec.rb +0 -30
  29. data/spec/fixtures/Builder.podspec +0 -25
  30. data/spec/fixtures/CPDColors.podspec +0 -19
  31. data/spec/fixtures/FH.podspec +0 -18
  32. data/spec/fixtures/KFData.podspec +0 -73
  33. data/spec/fixtures/LibraryConsumerDemo/.gitignore +0 -22
  34. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj +0 -340
  35. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  36. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme +0 -100
  37. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h +0 -17
  38. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m +0 -27
  39. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist +0 -40
  40. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/main.m +0 -16
  41. data/spec/fixtures/LibraryConsumerDemo/Podfile +0 -5
  42. data/spec/fixtures/LibraryDemo.podspec +0 -14
  43. data/spec/fixtures/NikeKit.podspec +0 -19
  44. data/spec/fixtures/OpenSans.podspec +0 -18
  45. data/spec/fixtures/PackagerTest/.gitignore +0 -21
  46. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj +0 -536
  47. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  48. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/xcshareddata/xcschemes/PackagerTest.xcscheme +0 -110
  49. data/spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata +0 -1
  50. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h +0 -15
  51. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m +0 -49
  52. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/AppIcon.appiconset/Contents.json +0 -23
  53. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/LaunchImage.launchimage/Contents.json +0 -23
  54. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Info.plist +0 -38
  55. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Prefix.pch +0 -16
  56. data/spec/fixtures/PackagerTest/PackagerTest/en.lproj/InfoPlist.strings +0 -2
  57. data/spec/fixtures/PackagerTest/PackagerTest/main.m +0 -18
  58. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests-Info.plist +0 -22
  59. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests.m +0 -34
  60. data/spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings +0 -2
  61. data/spec/fixtures/PackagerTest/Podfile +0 -10
  62. data/spec/fixtures/PackagerTest/Podfile.lock +0 -32
  63. data/spec/fixtures/Weakly.podspec +0 -13
  64. data/spec/fixtures/a.podspec +0 -19
  65. data/spec/fixtures/foo-bar.podspec +0 -19
  66. data/spec/fixtures/layer-client-messaging-schema.podspec +0 -13
  67. data/spec/integration/project_spec.rb +0 -70
  68. data/spec/pod/utils_spec.rb +0 -58
  69. data/spec/spec_helper.rb +0 -50
  70. data/spec/specification/builder_spec.rb +0 -40
  71. data/spec/specification/spec_builder_spec.rb +0 -61
  72. data/spec/user_interface/build_failed_report_spec.rb +0 -11
@@ -1,19 +0,0 @@
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, '8.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
@@ -1,13 +0,0 @@
1
- Pod::Spec.new do |s|
2
- s.name = "layer-client-messaging-schema"
3
- s.version = "20140715104949748"
4
- s.summary = "Packages the database schema and migrations for layer-client-messaging-schema"
5
- s.homepage = "http://github.com/layerhq"
6
- s.author = { "Steven Jones" => "steven@layer.com" }
7
- s.source = { :git => "https://github.com/neonichu/CPDColors.git",
8
- :tag => "0.1.0" }
9
- s.license = 'Commercial'
10
- s.requires_arc = true
11
- s.platform = :ios, '7.0'
12
- s.resource_bundles = { 'layer-client-messaging-schema' => ['Code/**/*.h'] }
13
- end
@@ -1,70 +0,0 @@
1
- require File.expand_path('../../spec_helper', __FILE__)
2
-
3
- module Pod
4
-
5
- DONT_CODESIGN = true
6
-
7
- describe Command::Spec::Package do
8
- describe 'IntegrationTests' do
9
- after do
10
- Dir.glob("NikeKit-*").each { |dir| Pathname.new(dir).rmtree }
11
- Dir.glob("LibraryDemo-*").each { |dir| Pathname.new(dir).rmtree }
12
- FileUtils.rm_rf('spec/fixtures/PackagerTest/NikeKit.framework')
13
- end
14
-
15
- it 'Allow integration into project alongside CocoaPods' do
16
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
17
-
18
- command = Command.parse(%w{ package spec/fixtures/NikeKit.podspec })
19
- command.run
20
- `cp -Rp NikeKit-*/ios/NikeKit.framework spec/fixtures/PackagerTest`
21
-
22
- log = ''
23
-
24
- Dir.chdir('spec/fixtures/PackagerTest') do
25
- `pod install 2>&1`
26
- log << `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest -sdk iphonesimulator CODE_SIGN_IDENTITY=- 2>&1`
27
- end
28
-
29
- puts log if $?.exitstatus != 0
30
- $?.exitstatus.should == 0
31
- end
32
-
33
- it 'Allow integration of dynamic framework into project alongside CocoaPods' do
34
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
35
-
36
- command = Command.parse(%w{ package spec/fixtures/NikeKit.podspec --dynamic })
37
- command.run
38
- `cp -Rp NikeKit-*/ios/NikeKit.framework spec/fixtures/PackagerTest`
39
-
40
- log = ''
41
-
42
- Dir.chdir('spec/fixtures/PackagerTest') do
43
- `pod install 2>&1`
44
- log << `xcodebuild -workspace PackagerTest.xcworkspace -scheme PackagerTest -sdk iphonesimulator CODE_SIGN_IDENTITY=- 2>&1`
45
- end
46
-
47
- puts log if $?.exitstatus != 0
48
- $?.exitstatus.should == 0
49
- end
50
-
51
- it 'allows integration of a library without dependencies' do
52
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
53
-
54
- command = Command.parse(%w{ package spec/fixtures/LibraryDemo.podspec })
55
- command.run
56
-
57
- log = ''
58
-
59
- Dir.chdir('spec/fixtures/LibraryConsumerDemo') do
60
- `pod install 2>&1`
61
- log << `xcodebuild -workspace LibraryConsumer.xcworkspace -scheme LibraryConsumer 2>&1`
62
- log << `xcodebuild -sdk iphonesimulator -workspace LibraryConsumer.xcworkspace -scheme LibraryConsumer 2>&1`
63
- end
64
-
65
- puts log if $?.exitstatus != 0
66
- $?.exitstatus.should == 0
67
- end
68
- end
69
- end
70
- end
@@ -1,58 +0,0 @@
1
- require File.expand_path('../../spec_helper', __FILE__)
2
-
3
- module Pod
4
- describe Command::Package do
5
- after do
6
- Dir.glob("Pods").each { |dir| Pathname.new(dir).rmtree }
7
- end
8
-
9
- it "uses additional spec repos passed on the command line" do
10
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
11
- nil::NilClass.any_instance.stubs(:install!)
12
- Installer.expects(:new).with {
13
- |sandbox, podfile| podfile.sources == ['foo', 'bar']
14
- }
15
-
16
- command = Command.parse(%w{ package spec/fixtures/KFData.podspec --spec-sources=foo,bar})
17
- command.send(:install_pod, :osx, nil)
18
-
19
- end
20
-
21
- it "uses only the master repo if no spec repos were passed" do
22
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
23
- nil::NilClass.any_instance.stubs(:install!)
24
- Installer.expects(:new).with {
25
- |sandbox, podfile| podfile.sources == ['https://github.com/CocoaPods/Specs.git']
26
- }
27
-
28
- command = Command.parse(%w{ package spec/fixtures/KFData.podspec })
29
- command.send(:install_pod, :osx, nil)
30
- end
31
-
32
- it "creates seperate static and dynamic target if dynamic is passed" do
33
- source_dir = Dir.pwd
34
-
35
- Pod::Config.instance.sources_manager.stubs(:search).returns(nil)
36
-
37
- command = Command.parse(%w{ package spec/fixtures/NikeKit.podspec -dynamic})
38
- t, w = command.send(:create_working_directory)
39
-
40
- command.config.installation_root = Pathname.new(w)
41
- command.config.sandbox_root = 'Pods'
42
-
43
- static_sandbox = command.send(:build_static_sandbox, true)
44
- static_installer = command.send(:install_pod, :ios, static_sandbox)
45
-
46
- dynamic_sandbox = command.send(:build_dynamic_sandbox, static_sandbox, static_installer)
47
- command.send(:install_dynamic_pod, dynamic_sandbox, static_sandbox, static_installer)
48
-
49
- static_sandbox_dir = Dir.new(Dir.pwd << "/Pods/Static")
50
- dynamic_sandbox_dir = Dir.new(Dir.pwd << "/Pods/Dynamic")
51
-
52
- static_sandbox_dir.to_s.should.not.be.empty
53
- dynamic_sandbox_dir.to_s.should.not.be.empty
54
-
55
- Dir.chdir(source_dir)
56
- end
57
- end
58
- end
@@ -1,50 +0,0 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
- require 'pathname'
5
- ROOT = Pathname.new(File.expand_path('../../', __FILE__))
6
- $:.unshift((ROOT + 'lib').to_s)
7
- $:.unshift((ROOT + 'spec').to_s)
8
-
9
- require 'bundler/setup'
10
- require 'bacon'
11
- require 'mocha-on-bacon'
12
- require 'pretty_bacon'
13
- require 'cocoapods'
14
-
15
- require 'cocoapods_plugin'
16
-
17
- #-----------------------------------------------------------------------------#
18
-
19
- module Pod
20
-
21
- # Disable the wrapping so the output is deterministic in the tests.
22
- #
23
- UI.disable_wrap = true
24
-
25
- # Redirects the messages to an internal store.
26
- #
27
- module UI
28
- @output = ''
29
- @warnings = ''
30
-
31
- class << self
32
- attr_accessor :output
33
- attr_accessor :warnings
34
-
35
- def puts(message = '')
36
- @output << "#{message}\n"
37
- end
38
-
39
- def warn(message = '', actions = [])
40
- @warnings << "#{message}\n"
41
- end
42
-
43
- def print(message)
44
- @output << message
45
- end
46
- end
47
- end
48
- end
49
-
50
- #-----------------------------------------------------------------------------#
@@ -1,40 +0,0 @@
1
- require File.expand_path('../../spec_helper', __FILE__)
2
-
3
- module Pod
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, nil, @spec, nil, nil, nil, nil, nil, nil)
10
- end
11
-
12
- it "includes proper compiler flags for iOS" do
13
- @builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DIOS_FLAG", "ARCHS='x86_64 i386 arm64 armv7 armv7s' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments'").returns(nil)
14
- @builder.send(:compile, Platform.new(:ios))
15
- end
16
-
17
- it "includes proper compiler flags for OSX" do
18
- @builder.expects(:xcodebuild).with("GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_Builder=PodsDummy_PodPackage_Builder' -DBASE_FLAG -DOSX_FLAG", nil).returns(nil)
19
- @builder.send(:compile, Platform.new(:osx))
20
- end
21
- end
22
-
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, nil, @spec, nil, nil, nil, nil, nil, nil)
27
- end
28
-
29
- it 'dumps report and terminates' do
30
- UI::BuildFailedReport.expects(:report).returns(nil)
31
-
32
- should.raise SystemExit do
33
- # TODO: check that it dumps report
34
- @builder.send(:compile, Platform.new(:ios))
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,61 +0,0 @@
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, nil)
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.weak_frameworks" do
36
- spec = specification_from_builder(@builder)
37
- compare_attributes(spec, @spec, 'weak_frameworks')
38
- end
39
-
40
- it "preserves platform.libraries" do
41
- spec = specification_from_builder(@builder)
42
- compare_attributes(spec, @spec, 'libraries')
43
- end
44
-
45
- it "preserves platform.requires_arc" do
46
- spec = specification_from_builder(@builder)
47
- compare_attributes(spec, @spec, 'requires_arc')
48
- end
49
-
50
- it "preserves platform.deployment_target" do
51
- spec = specification_from_builder(@builder)
52
- compare_attributes(spec, @spec, 'deployment_target')
53
- end
54
-
55
- it "preserves platform.xcconfig" do
56
- spec = specification_from_builder(@builder)
57
- compare_attributes(spec, @spec, 'xcconfig')
58
- end
59
- end
60
- end
61
- end
@@ -1,11 +0,0 @@
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