cocoapods-packager 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daf6373e6fe4b564fcdb89c3f9088932c5ee5089
4
- data.tar.gz: 98179203644200ea7ae4c527b2407da266923a92
3
+ metadata.gz: 1779698a2b998e7fd5d2eecfc593b85c0ceeb8d6
4
+ data.tar.gz: c9ee91bdb13bf055737f751346285e8cdea77f5c
5
5
  SHA512:
6
- metadata.gz: 1c6efb257cf86a34176576abfe91f4500c2545f670f3ce0fa95806a49e9eb166490e07325801d12e7be8ed8a07cb5fba0f0d8d5f4f68aa7f6bb7e33779a5e0df
7
- data.tar.gz: 2ef8bfcaf3570cd43e6c559ef369790702d1871fc83ef0bf5e14d9f1094bb0b1606637b7cc2f8eb83b1627d7676ea74588b24f51499460ea6cfe96803332a252
6
+ metadata.gz: dafb63dce69ef0a5d972938ee7252f2af6e26fc73f6438d96c9f8d0088730e9b358f8d25c7225c65b8c2fa892474305ad031c18c6f4f75ff7beec09477d5edab
7
+ data.tar.gz: 69944f0312505f09f293dd5174a8b5c169563bf89959bd1d23331584d523b683087cf9a2335493c5e89eb404e88ee3c28d12f521fe6687b9aa6e435f64350b98
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem 'cocoapods'
6
+ gem 'cocoapods', '>= 0.34.0.beta'
7
7
  gem 'bacon'
8
8
  gem 'mocha-on-bacon'
9
9
  gem 'mocha', '~> 0.11.4'
data/Gemfile.lock CHANGED
@@ -9,38 +9,46 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- cocoapods-packager (1.0.0)
12
+ cocoapods-packager (1.0.1)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
+ CFPropertyList (2.2.8)
17
18
  activesupport (3.2.19)
18
19
  i18n (~> 0.6, >= 0.6.4)
19
20
  multi_json (~> 1.0)
20
21
  bacon (1.2.0)
21
- claide (0.6.1)
22
- cocoapods (0.33.1)
22
+ claide (0.7.0)
23
+ cocoapods (0.34.0.rc1)
23
24
  activesupport (>= 3.2.15, < 4)
24
- claide (~> 0.6.1)
25
- cocoapods-core (= 0.33.1)
26
- cocoapods-downloader (~> 0.6.1)
27
- cocoapods-plugins (~> 0.2.0)
25
+ claide (~> 0.7.0)
26
+ cocoapods-core (= 0.34.0.rc1)
27
+ cocoapods-downloader (~> 0.7.0)
28
+ cocoapods-plugins (~> 0.3.1)
29
+ cocoapods-trunk (~> 0.2.0)
30
+ cocoapods-try (~> 0.4.0)
28
31
  colored (~> 1.2)
29
32
  escape (~> 0.0.4)
30
33
  json_pure (~> 1.8)
31
- nap (~> 0.7)
34
+ nap (~> 0.8)
32
35
  open4 (~> 1.3)
33
- xcodeproj (~> 0.17.0)
34
- cocoapods-core (0.33.1)
36
+ xcodeproj (~> 0.19.1)
37
+ cocoapods-core (0.34.0.rc1)
35
38
  activesupport (>= 3.2.15)
36
39
  fuzzy_match (~> 2.0.4)
37
40
  json_pure (~> 1.8)
38
- nap (~> 0.5)
39
- cocoapods-downloader (0.6.1)
40
- cocoapods-plugins (0.2.0)
41
+ nap (~> 0.8.0)
42
+ cocoapods-downloader (0.7.0)
43
+ cocoapods-plugins (0.3.1)
41
44
  nap
45
+ cocoapods-trunk (0.2.0)
46
+ json_pure (~> 1.8)
47
+ nap (>= 0.8)
48
+ netrc
49
+ cocoapods-try (0.4.0)
42
50
  colored (1.2)
43
- coveralls (0.7.0)
51
+ coveralls (0.7.1)
44
52
  multi_json (~> 1.3)
45
53
  rest-client
46
54
  simplecov (>= 0.7)
@@ -52,7 +60,7 @@ GEM
52
60
  i18n (0.6.11)
53
61
  json_pure (1.8.1)
54
62
  metaclass (0.0.4)
55
- mime-types (2.1)
63
+ mime-types (2.3)
56
64
  mocha (0.11.4)
57
65
  metaclass (~> 0.0.1)
58
66
  mocha-on-bacon (0.2.1)
@@ -73,8 +81,9 @@ GEM
73
81
  term-ansicolor (1.3.0)
74
82
  tins (~> 1.0)
75
83
  thor (0.19.1)
76
- tins (1.3.0)
77
- xcodeproj (0.17.0)
84
+ tins (1.3.2)
85
+ xcodeproj (0.19.1)
86
+ CFPropertyList (~> 2.2)
78
87
  activesupport (~> 3.0)
79
88
  colored (~> 1.2)
80
89
 
@@ -84,7 +93,7 @@ PLATFORMS
84
93
  DEPENDENCIES
85
94
  bacon
86
95
  bundler (~> 1.3)
87
- cocoapods
96
+ cocoapods (>= 0.34.0.beta)
88
97
  cocoapods-packager!
89
98
  coveralls
90
99
  mocha (~> 0.11.4)
@@ -6,7 +6,7 @@ require 'cocoapods_packager.rb'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'cocoapods-packager'
8
8
  spec.version = Pod::Packager::VERSION
9
- spec.authors = ['Kyle Fuller']
9
+ spec.authors = ['Kyle Fuller', 'Boris Bügling']
10
10
  spec.summary = 'CocoaPods plugin which allows you to generate a framework or static library from a podspec.'
11
11
  spec.homepage = 'https://github.com/CocoaPods/cocoapods-packager'
12
12
  spec.license = 'MIT'
@@ -105,14 +105,18 @@ module Pod
105
105
  end
106
106
 
107
107
  def copy_resources(platform)
108
+ bundles = Dir.glob("#{@sandbox_root}/build/*.bundle")
108
109
  `cp -rp #{@sandbox_root}/build/*.bundle #{@fwk.resources_path} 2>&1`
109
110
 
110
111
  resources = expand_paths(@spec.consumer(platform).resources)
111
- if resources.count == 0
112
+ if resources.count == 0 && bundles.count == 0
112
113
  @fwk.delete_resources
113
114
  return
114
115
  end
115
- `cp -rp #{resources.join(' ')} #{@fwk.resources_path}`
116
+
117
+ if resources.count > 0
118
+ `cp -rp #{resources.join(' ')} #{@fwk.resources_path}`
119
+ end
116
120
  end
117
121
 
118
122
  def create_framework(platform)
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Packager
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -4,7 +4,8 @@ module Pod
4
4
  class Command
5
5
  class Package < Command
6
6
  self.summary = 'Package a podspec into a static library.'
7
- self.arguments = [['NAME', :required], ['SOURCE']]
7
+ self.arguments = [CLAide::Argument.new('NAME', true),
8
+ CLAide::Argument.new('SOURCE', false)]
8
9
 
9
10
  def self.options
10
11
  [
@@ -5,6 +5,7 @@ module Pod
5
5
  after do
6
6
  Dir.glob("CPDColors-*").each { |dir| Pathname.new(dir).rmtree }
7
7
  Dir.glob("layer-client-messaging-schema-*").each { |dir| Pathname.new(dir).rmtree }
8
+ Dir.glob("OpenSans-*").each { |dir| Pathname.new(dir).rmtree }
8
9
  end
9
10
 
10
11
  it 'presents the help if a directory is provided' do
@@ -39,5 +40,13 @@ module Pod
39
40
 
40
41
  true.should == true # To make the test pass without any shoulds
41
42
  end
43
+
44
+ it 'can package a podspec with resource bundles' do
45
+ command = Command.parse(%w{ package spec/fixtures/OpenSans.podspec })
46
+ command.run
47
+
48
+ bundles = Dir.glob('OpenSans-*/ios/OpenSans.framework/Versions/A/Resources/*.bundle')
49
+ bundles.count.should == 1
50
+ end
42
51
  end
43
52
  end
@@ -26,4 +26,5 @@ module Pod
26
26
  end
27
27
  end
28
28
  end
29
- end
29
+ end
30
+
@@ -0,0 +1,18 @@
1
+ Pod::Spec.new do |spec|
2
+ spec.name = 'OpenSans'
3
+ spec.version = '1.0.3'
4
+ spec.summary = 'A podspec encapsulating OpenSans font for iOS'
5
+ spec.description = "Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type Director of Ascender Corp. This version contains the complete 897 character set, which includes the standard ISO Latin 1, Latin CE, Greek and Cyrillic character sets. Open Sans was designed with an upright stress, open forms and a neutral, yet friendly appearance. It was optimized for print, web, and mobile interfaces, and has excellent legibility characteristics in its letterforms."
6
+ spec.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE.txt' }
7
+ spec.authors = { 'Kyle Fuller' => 'inbox@kylefuller.co.uk' }
8
+ spec.homepage = 'https://github.com/CocoaPods-Fonts/OpenSans'
9
+ spec.screenshot = 'http://f.cl.ly/items/2t2F032e3W0h2T1i0j1n/opensans-ios7-iphone5.png'
10
+ spec.social_media_url = 'https://twitter.com/kylefuller'
11
+ spec.platform = :ios
12
+ spec.source = { :git => 'https://github.com/CocoaPods-Fonts/OpenSans.git', :tag => spec.version.to_s }
13
+ spec.source_files = 'UIFont+OpenSans.{h,m}'
14
+ spec.resource_bundle = { 'OpenSans' => 'Fonts/*.ttf' }
15
+ spec.frameworks = 'UIKit', 'CoreText'
16
+ spec.requires_arc = true
17
+ end
18
+
@@ -34,8 +34,8 @@
34
34
  /* End PBXContainerItemProxy section */
35
35
 
36
36
  /* Begin PBXFileReference section */
37
+ 30DB64CBA098C4F9066EAB94 /* Pods-PackagerTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PackagerTest.release.xcconfig"; path = "Pods/Target Support Files/Pods-PackagerTest/Pods-PackagerTest.release.xcconfig"; sourceTree = "<group>"; };
37
38
  38EC8BF834704005B8AE03E6 /* libPods-PackagerTest.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PackagerTest.a"; sourceTree = BUILT_PRODUCTS_DIR; };
38
- 69E6CB32DE4D4894BCEB4EF1 /* Pods-PackagerTest.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PackagerTest.xcconfig"; path = "Pods/Pods-PackagerTest.xcconfig"; sourceTree = "<group>"; };
39
39
  A1DE56B519AA4A97000339C6 /* PackagerTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PackagerTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
40
40
  A1DE56B819AA4A97000339C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
41
41
  A1DE56BA19AA4A97000339C6 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
@@ -53,6 +53,7 @@
53
53
  A1DE56DB19AA4A97000339C6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
54
54
  A1DE56DD19AA4A97000339C6 /* PackagerTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PackagerTestTests.m; sourceTree = "<group>"; };
55
55
  A1DE56E719AA4AC4000339C6 /* NikeKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = NikeKit.framework; sourceTree = "<group>"; };
56
+ B7874038A2A0571A3948D0D5 /* Pods-PackagerTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PackagerTest.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PackagerTest/Pods-PackagerTest.debug.xcconfig"; sourceTree = "<group>"; };
56
57
  /* End PBXFileReference section */
57
58
 
58
59
  /* Begin PBXFrameworksBuildPhase section */
@@ -81,6 +82,15 @@
81
82
  /* End PBXFrameworksBuildPhase section */
82
83
 
83
84
  /* Begin PBXGroup section */
85
+ 3518C5838BE4529D790B0B92 /* Pods */ = {
86
+ isa = PBXGroup;
87
+ children = (
88
+ B7874038A2A0571A3948D0D5 /* Pods-PackagerTest.debug.xcconfig */,
89
+ 30DB64CBA098C4F9066EAB94 /* Pods-PackagerTest.release.xcconfig */,
90
+ );
91
+ name = Pods;
92
+ sourceTree = "<group>";
93
+ };
84
94
  A1DE56AC19AA4A97000339C6 = {
85
95
  isa = PBXGroup;
86
96
  children = (
@@ -88,7 +98,7 @@
88
98
  A1DE56D719AA4A97000339C6 /* PackagerTestTests */,
89
99
  A1DE56B719AA4A97000339C6 /* Frameworks */,
90
100
  A1DE56B619AA4A97000339C6 /* Products */,
91
- 69E6CB32DE4D4894BCEB4EF1 /* Pods-PackagerTest.xcconfig */,
101
+ 3518C5838BE4529D790B0B92 /* Pods */,
92
102
  );
93
103
  sourceTree = "<group>";
94
104
  };
@@ -275,7 +285,7 @@
275
285
  );
276
286
  runOnlyForDeploymentPostprocessing = 0;
277
287
  shellPath = /bin/sh;
278
- shellScript = "\"${SRCROOT}/Pods/Pods-PackagerTest-resources.sh\"\n";
288
+ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PackagerTest/Pods-PackagerTest-resources.sh\"\n";
279
289
  showEnvVarsInLog = 0;
280
290
  };
281
291
  /* End PBXShellScriptBuildPhase section */
@@ -400,7 +410,7 @@
400
410
  };
401
411
  A1DE56E219AA4A97000339C6 /* Debug */ = {
402
412
  isa = XCBuildConfiguration;
403
- baseConfigurationReference = 69E6CB32DE4D4894BCEB4EF1 /* Pods-PackagerTest.xcconfig */;
413
+ baseConfigurationReference = B7874038A2A0571A3948D0D5 /* Pods-PackagerTest.debug.xcconfig */;
404
414
  buildSettings = {
405
415
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
406
416
  ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -418,7 +428,7 @@
418
428
  };
419
429
  A1DE56E319AA4A97000339C6 /* Release */ = {
420
430
  isa = XCBuildConfiguration;
421
- baseConfigurationReference = 69E6CB32DE4D4894BCEB4EF1 /* Pods-PackagerTest.xcconfig */;
431
+ baseConfigurationReference = 30DB64CBA098C4F9066EAB94 /* Pods-PackagerTest.release.xcconfig */;
422
432
  buildSettings = {
423
433
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
424
434
  ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -27,4 +27,4 @@ DEPENDENCIES:
27
27
  SPEC CHECKSUMS:
28
28
  AFNetworking: 6d7b76aa5d04c8c37daad3eef4b7e3f2a7620da3
29
29
 
30
- COCOAPODS: 0.33.1
30
+ COCOAPODS: 0.34.0.rc1
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
8
+ - Boris Bügling
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
12
+ date: 2014-09-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -73,6 +74,7 @@ files:
73
74
  - spec/fixtures/CPDColors.podspec
74
75
  - spec/fixtures/KFData.podspec
75
76
  - spec/fixtures/NikeKit.podspec
77
+ - spec/fixtures/OpenSans.podspec
76
78
  - spec/fixtures/PackagerTest/.gitignore
77
79
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
78
80
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -128,6 +130,7 @@ test_files:
128
130
  - spec/fixtures/CPDColors.podspec
129
131
  - spec/fixtures/KFData.podspec
130
132
  - spec/fixtures/NikeKit.podspec
133
+ - spec/fixtures/OpenSans.podspec
131
134
  - spec/fixtures/PackagerTest/.gitignore
132
135
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj
133
136
  - spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata