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 CHANGED
@@ -1,6 +1,9 @@
1
1
  # CocoaPods – an Objective-C library manager
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/CocoaPods/CocoaPods.png?branch=master)](https://secure.travis-ci.org/CocoaPods/CocoaPods)
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
 
@@ -1,7 +1,7 @@
1
1
  Encoding.default_external = Encoding::UTF_8 if RUBY_VERSION > '1.8.7'
2
2
 
3
3
  module Pod
4
- VERSION = '0.6.0.rc1'
4
+ VERSION = '0.6.0.rc2'
5
5
 
6
6
  class PlainInformative < StandardError
7
7
  end
@@ -64,21 +64,36 @@ module Pod
64
64
  root.rmtree if exists?
65
65
  end
66
66
 
67
- # It deletes all the files identified by clean_files, then it removes
68
- # all the empty folders or symlinks.
67
+ ### Cleaning
68
+
69
+ # Public: Deletes any path that is not used by the pod.
69
70
  def clean
70
- clean_files.each { |path| FileUtils.rm_rf(path) }
71
+ clean_paths.each { |path| FileUtils.rm_rf(path) }
72
+ end
71
73
 
72
- # Get all the directories. Then sort them from the longest
73
- # to the shortest, so a directory will be empty if its
74
- # subdirs where empty. We need to delete the symlinks because
75
- # it might prevent a bundle from being deleted
76
- dirs = Dir.glob(root + "**/*", File::FNM_DOTMATCH)
77
- dirs = dirs.reject { |d| d.end_with?('.', '..') || !File.directory?(d) }.sort_by(&:length).reverse
78
- dirs.each { |d| FileUtils.rm_rf(d) if File.symlink?(d) || (Dir.entries(d) == %w[ . .. ]) }
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
- # File attributes
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= resource= resources= xcconfig= framework= frameworks= library= libraries= compiler_flags= deployment_target= dependency }.each do |method|
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=, :resources=
202
- alias_method :framework=, :frameworks=
203
- alias_method :library=, :libraries=
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
- prerelease: true
5
- segments:
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
- date: 2012-05-31 00:00:00 +02:00
19
- default_executable:
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
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
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
- requirement: &id002 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ~>
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 3
45
- - 0
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
- requirement: &id003 !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 1
58
- - 2
59
- version: "1.2"
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
- requirement: &id004 !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- - 0
72
- - 4
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
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ~>
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 1
85
- - 7
86
- - 3
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
- requirement: &id006 !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ~>
96
- - !ruby/object:Gem::Version
97
- segments:
98
- - 1
99
- - 3
100
- - 0
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
- requirement: &id007 !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- segments:
112
- - 0
113
- - 9
114
- - 0
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
- requirement: &id008 !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
- - 2
128
- - 0
129
- - rc1
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
- requirement: &id009 !ruby/object:Gem::Requirement
137
- requirements:
138
- - - ~>
139
- - !ruby/object:Gem::Version
140
- segments:
141
- - 1
142
- - 1
143
- version: "1.1"
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
- version_requirements: *id009
146
- description: |-
147
- CocoaPods manages library dependencies for your Xcode project.
148
-
149
- You specify the dependencies for your project in one easy text file. CocoaPods resolves dependencies between libraries, fetches source code for the dependencies, and creates and maintains an Xcode workspace to build your project.
150
-
151
- Ultimately, the goal is to improve discoverability of, and engagement in, third party open-source libraries, by creating a more centralized ecosystem.
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: "[!] If this is your first time install of CocoaPods, or if you are upgrading, first run: $ pod setup"
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
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- segments:
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
- version: "0"
222
- required_rubygems_version: !ruby/object:Gem::Requirement
223
- requirements:
224
- - - ">="
225
- - !ruby/object:Gem::Version
226
- segments:
227
- - 0
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.3.6
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
-