cocoapods 0.6.0.rc1 → 0.6.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -2
- data/lib/cocoapods.rb +1 -1
- data/lib/cocoapods/local_pod.rb +26 -20
- data/lib/cocoapods/specification.rb +17 -4
- metadata +157 -145
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# CocoaPods – an Objective-C library manager
|
2
2
|
|
3
|
-
|
3
|
+
| Master branch | Develop branch | CocoaPods/Specs |
|
4
|
+
| :---: | :---: | :---: |
|
5
|
+
[![Master Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=master)](https://secure.travis-ci.org/CocoaPods/CocoaPods)|[![Develop Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=develop)](https://secure.travis-ci.org/CocoaPods/CocoaPods)|[![Build Status](https://secure.travis-ci.org/CocoaPods/Specs.png?branch=master)](http://travis-ci.org/CocoaPods/Specs)
|
6
|
+
|
4
7
|
|
5
8
|
CocoaPods manages library dependencies for your Xcode project.
|
6
9
|
|
@@ -22,7 +25,7 @@ Downloading and installing CocoaPods only takes a few minutes.
|
|
22
25
|
CocoaPods runs on [Ruby](http://www.ruby-lang.org/en/). To install it run the following commands:
|
23
26
|
|
24
27
|
```
|
25
|
-
$ sudo gem install cocoapods
|
28
|
+
$ [sudo] gem install cocoapods --pre
|
26
29
|
$ pod setup
|
27
30
|
```
|
28
31
|
|
data/lib/cocoapods.rb
CHANGED
data/lib/cocoapods/local_pod.rb
CHANGED
@@ -64,21 +64,36 @@ module Pod
|
|
64
64
|
root.rmtree if exists?
|
65
65
|
end
|
66
66
|
|
67
|
-
|
68
|
-
|
67
|
+
### Cleaning
|
68
|
+
|
69
|
+
# Public: Deletes any path that is not used by the pod.
|
69
70
|
def clean
|
70
|
-
|
71
|
+
clean_paths.each { |path| FileUtils.rm_rf(path) }
|
72
|
+
end
|
71
73
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
74
|
+
# Public: Finds the absolute paths, including hidden ones, of the files
|
75
|
+
# that are not used by the pod and can be safely deleted.
|
76
|
+
#
|
77
|
+
# Returns an Array of Strings containing the absolute paths.
|
78
|
+
def clean_paths
|
79
|
+
cached_used_paths = used_paths.map{ |path| path.to_s }
|
80
|
+
files = Dir.glob(root + "**/*", File::FNM_DOTMATCH)
|
81
|
+
files.reject! do |candidate|
|
82
|
+
candidate.end_with?('.', '..') ||
|
83
|
+
cached_used_paths.any? { |path| path.include?(candidate) || candidate.include?(path) }
|
84
|
+
end
|
85
|
+
files
|
79
86
|
end
|
80
87
|
|
81
|
-
#
|
88
|
+
# Public: Finds all the absolute paths used by pod.
|
89
|
+
#
|
90
|
+
# Returns an Array of Pathnames containing the absolute paths.
|
91
|
+
def used_paths
|
92
|
+
files = source_files(false) + resources(false) + preserve_paths + [ readme_file, license_file, prefix_header_file ]
|
93
|
+
files.compact
|
94
|
+
end
|
95
|
+
|
96
|
+
### File attributes
|
82
97
|
|
83
98
|
def prefix_header_file
|
84
99
|
root + top_specification.prefix_header_file if top_specification.prefix_header_file
|
@@ -96,15 +111,6 @@ module Pod
|
|
96
111
|
chained_expanded_paths(:resources, :relative_to_sandbox => relative)
|
97
112
|
end
|
98
113
|
|
99
|
-
def clean_files
|
100
|
-
all_files = Dir.glob(root + "**/*", File::FNM_DOTMATCH).map { |f| root + f }.reject { |p| p.directory? }
|
101
|
-
all_files - used_files
|
102
|
-
end
|
103
|
-
|
104
|
-
def used_files
|
105
|
-
source_files(false) + resources(false) + preserve_paths + [ readme_file, license_file, prefix_header_file ]
|
106
|
-
end
|
107
|
-
|
108
114
|
# TODO: implement case insensitive search
|
109
115
|
def preserve_paths
|
110
116
|
chained_expanded_paths(:preserve_paths) + expanded_paths(%w[ *.podspec notice* NOTICE* CREDITS* ])
|
@@ -107,7 +107,19 @@ module Pod
|
|
107
107
|
@specification, @platform = specification, platform
|
108
108
|
end
|
109
109
|
|
110
|
-
%w{ source_files=
|
110
|
+
%w{ source_files=
|
111
|
+
resource=
|
112
|
+
resources=
|
113
|
+
preserve_paths=
|
114
|
+
preserve_path=
|
115
|
+
xcconfig=
|
116
|
+
framework=
|
117
|
+
frameworks=
|
118
|
+
library=
|
119
|
+
libraries=
|
120
|
+
compiler_flags=
|
121
|
+
deployment_target=
|
122
|
+
dependency }.each do |method|
|
111
123
|
define_method(method) do |args|
|
112
124
|
@specification._on_platform(@platform) do
|
113
125
|
@specification.send(method, args)
|
@@ -198,9 +210,10 @@ module Pod
|
|
198
210
|
pltf_chained_attr_accessor :frameworks, lambda {|value, current| (current << value).flatten }
|
199
211
|
pltf_chained_attr_accessor :libraries, lambda {|value, current| (current << value).flatten }
|
200
212
|
|
201
|
-
alias_method :resource=,
|
202
|
-
alias_method :
|
203
|
-
alias_method :
|
213
|
+
alias_method :resource=, :resources=
|
214
|
+
alias_method :preserve_path=, :preserve_paths=
|
215
|
+
alias_method :framework=, :frameworks=
|
216
|
+
alias_method :library=, :libraries=
|
204
217
|
|
205
218
|
platform_attr_writer :xcconfig, lambda {|value, current| current.tap { |c| c.merge!(value) } }
|
206
219
|
|
metadata
CHANGED
@@ -1,162 +1,176 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 6
|
8
|
-
- 0
|
9
|
-
- rc1
|
10
|
-
version: 0.6.0.rc1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0.rc2
|
5
|
+
prerelease: 6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Eloy Duran
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: faraday
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
26
|
-
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
- 8
|
31
|
-
- 1
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 0.8.1
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: octokit
|
37
23
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: octokit
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
46
37
|
version: 1.3.0
|
47
38
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: colored
|
51
39
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.3.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: colored
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.2'
|
60
54
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: escape
|
64
55
|
prerelease: false
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: escape
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
73
69
|
version: 0.0.4
|
74
70
|
type: :runtime
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: json
|
78
71
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.0.4
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: json
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
87
85
|
version: 1.7.3
|
88
86
|
type: :runtime
|
89
|
-
version_requirements: *id005
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: open4
|
92
87
|
prerelease: false
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.7.3
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: open4
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
101
|
version: 1.3.0
|
102
102
|
type: :runtime
|
103
|
-
version_requirements: *id006
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: rake
|
106
103
|
prerelease: false
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.3.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rake
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
115
117
|
version: 0.9.0
|
116
118
|
type: :runtime
|
117
|
-
version_requirements: *id007
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: xcodeproj
|
120
119
|
prerelease: false
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.9.0
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: xcodeproj
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
130
133
|
version: 0.2.0.rc1
|
131
134
|
type: :runtime
|
132
|
-
version_requirements: *id008
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: bacon
|
135
135
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.2.0.rc1
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: bacon
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.1'
|
144
150
|
type: :development
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '1.1'
|
158
|
+
description: ! 'CocoaPods manages library dependencies for your Xcode project.
|
159
|
+
|
160
|
+
|
161
|
+
You specify the dependencies for your project in one easy text file. CocoaPods resolves
|
162
|
+
dependencies between libraries, fetches source code for the dependencies, and creates
|
163
|
+
and maintains an Xcode workspace to build your project.
|
164
|
+
|
165
|
+
|
166
|
+
Ultimately, the goal is to improve discoverability of, and engagement in, third
|
167
|
+
party open-source libraries, by creating a more centralized ecosystem.'
|
152
168
|
email: eloy.de.enige@gmail.com
|
153
|
-
executables:
|
169
|
+
executables:
|
154
170
|
- pod
|
155
171
|
extensions: []
|
156
|
-
|
157
172
|
extra_rdoc_files: []
|
158
|
-
|
159
|
-
files:
|
173
|
+
files:
|
160
174
|
- lib/cocoapods/command/error_report.rb
|
161
175
|
- lib/cocoapods/command/install.rb
|
162
176
|
- lib/cocoapods/command/list.rb
|
@@ -203,35 +217,33 @@ files:
|
|
203
217
|
- README.md
|
204
218
|
- LICENSE
|
205
219
|
- CHANGELOG.md
|
206
|
-
has_rdoc: true
|
207
220
|
homepage: https://github.com/CocoaPods/CocoaPods
|
208
|
-
licenses:
|
221
|
+
licenses:
|
209
222
|
- MIT
|
210
|
-
post_install_message:
|
223
|
+
post_install_message: ! '[!] If this is your first time install of CocoaPods, or if
|
224
|
+
you are upgrading, first run: $ pod setup'
|
211
225
|
rdoc_options: []
|
212
|
-
|
213
|
-
require_paths:
|
226
|
+
require_paths:
|
214
227
|
- lib
|
215
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
230
|
+
requirements:
|
231
|
+
- - ! '>='
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '0'
|
234
|
+
segments:
|
220
235
|
- 0
|
221
|
-
|
222
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
version: "0"
|
236
|
+
hash: -4185987676698712042
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
none: false
|
239
|
+
requirements:
|
240
|
+
- - ! '>='
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
229
243
|
requirements: []
|
230
|
-
|
231
244
|
rubyforge_project:
|
232
|
-
rubygems_version: 1.
|
245
|
+
rubygems_version: 1.8.24
|
233
246
|
signing_key:
|
234
247
|
specification_version: 3
|
235
248
|
summary: An Objective-C library package manager.
|
236
249
|
test_files: []
|
237
|
-
|