cocoapods 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -3
- data/bin/pod +1 -1
- data/bin/sandbox-pod +58 -26
- data/lib/cocoapods/config.rb +1 -1
- data/lib/cocoapods/gem_version.rb +1 -1
- metadata +16 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d078b09572096d92db205fd56fb0e6e6b60059be
|
4
|
+
data.tar.gz: 1b79e708c08519af47fc7cfc2054faecda218baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75dbe6c9e6e3685cfa6f637c8bd6e64b4dda39001447edc401c956ced89c4f4071edef71a0d731bb7cb587825bef24dbbb36442df712032b6ab68dfe6b4164e6
|
7
|
+
data.tar.gz: 9e88e314d8a12c23a684e64bb016f7efb10186e41d398a0839855da686c51dba79723754e203b148681bd06ed28d6f7928dad8e942e558b3c04e110111c31e5c
|
data/CHANGELOG.md
CHANGED
@@ -2,11 +2,23 @@
|
|
2
2
|
|
3
3
|
To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html).
|
4
4
|
|
5
|
-
##
|
5
|
+
## 0.20.1
|
6
|
+
|
7
|
+
###### Bug fixes
|
8
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.20.0...0.20.1)
|
9
|
+
• [CLAide](https://github.com/CocoaPods/CLAide/compare/0.3.0...0.3.2)
|
10
|
+
|
11
|
+
* Made sandbox-pod executable visible as it wasn't correctly configured in the
|
12
|
+
gemspec.
|
13
|
+
* Made sandbox-pod executable actually work when installed as a gem. (In which
|
14
|
+
case every executable is wrapped in a wrapper bin script and the DATA constant
|
15
|
+
can no longer be used.)
|
16
|
+
* Required CLAide 0.3.2 as 0.3.0 didn't include all the files in the gemspec
|
17
|
+
and 0.3.1 was not correctly processed by RubyGems.
|
6
18
|
|
7
19
|
## 0.20.0
|
8
|
-
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.19.
|
9
|
-
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.19.
|
20
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.19.1...0.20.0)
|
21
|
+
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.19.1...0.20.0)
|
10
22
|
• [cocoapods-downloader](https://github.com/CocoaPods/CLAide/compare/0.1.0...0.1.1)
|
11
23
|
• [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.5.5...0.6.0)
|
12
24
|
• [CLAide](https://github.com/CocoaPods/CLAide/compare/0.2.0...0.3.0)
|
data/bin/pod
CHANGED
data/bin/sandbox-pod
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# encoding: utf-8
|
2
3
|
|
3
4
|
# This bin wrapper runs the `pod` command in a OS X sandbox. The reason for this
|
4
5
|
# is to ensure that people can’t use malicious code from pod specifications.
|
@@ -24,37 +25,13 @@
|
|
24
25
|
if $0 == __FILE__
|
25
26
|
$:.unshift File.expand_path('../../lib', __FILE__)
|
26
27
|
end
|
28
|
+
|
27
29
|
require 'pathname'
|
28
30
|
require 'cocoapods/config'
|
29
|
-
|
30
|
-
|
31
|
-
pod_bin = File.expand_path('../pod', __FILE__)
|
32
|
-
pod_prefix = File.expand_path('../..', pod_bin)
|
33
|
-
|
34
31
|
require 'rbconfig'
|
35
|
-
ruby_bin = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
36
|
-
ruby_prefix = RbConfig::CONFIG['prefix']
|
37
|
-
|
38
|
-
prefixes = ['/bin', '/usr/bin', '/usr/libexec']
|
39
|
-
prefixes << `brew --prefix`.strip unless `which brew`.strip.empty?
|
40
|
-
# From asking people, it seems MacPorts does not have a `prefix` command, like
|
41
|
-
# Homebrew does, so make an educated guess:
|
42
|
-
unless (port = `which port`.strip).empty?
|
43
|
-
prefixes << File.dirname(File.dirname(port))
|
44
|
-
end
|
45
|
-
|
46
|
-
developer_prefix = `xcode-select --print-path`.strip
|
47
|
-
xcode_app_path = File.expand_path('../..', developer_prefix)
|
48
|
-
|
49
32
|
require 'erb'
|
50
|
-
profile = ERB.new(DATA.read, 0, '>').result(TOPLEVEL_BINDING)
|
51
|
-
#puts profile
|
52
|
-
|
53
|
-
command = ['/usr/bin/sandbox-exec', '-p', profile, pod_bin, *ARGV]
|
54
|
-
exec *command
|
55
|
-
|
56
33
|
|
57
|
-
|
34
|
+
PROFILE_ERB_TEMPLATE = <<-EOS
|
58
35
|
(version 1)
|
59
36
|
(debug allow)
|
60
37
|
|
@@ -128,3 +105,58 @@ __END__
|
|
128
105
|
)
|
129
106
|
|
130
107
|
(deny default)
|
108
|
+
EOS
|
109
|
+
|
110
|
+
|
111
|
+
class Profile
|
112
|
+
|
113
|
+
def pod_bin
|
114
|
+
File.expand_path('../pod', __FILE__)
|
115
|
+
end
|
116
|
+
|
117
|
+
def pod_prefix
|
118
|
+
File.expand_path('../..', pod_bin)
|
119
|
+
end
|
120
|
+
|
121
|
+
def ruby_bin
|
122
|
+
File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
123
|
+
end
|
124
|
+
|
125
|
+
def ruby_prefix
|
126
|
+
RbConfig::CONFIG['prefix']
|
127
|
+
end
|
128
|
+
|
129
|
+
def prefixes
|
130
|
+
prefixes = ['/bin', '/usr/bin', '/usr/libexec']
|
131
|
+
prefixes << `brew --prefix`.strip unless `which brew`.strip.empty?
|
132
|
+
# From asking people, it seems MacPorts does not have a `prefix` command, like
|
133
|
+
# Homebrew does, so make an educated guess:
|
134
|
+
unless (port = `which port`.strip).empty?
|
135
|
+
prefixes << File.dirname(File.dirname(port))
|
136
|
+
end
|
137
|
+
prefixes
|
138
|
+
end
|
139
|
+
|
140
|
+
def developer_prefix
|
141
|
+
`xcode-select --print-path`.strip
|
142
|
+
end
|
143
|
+
|
144
|
+
def xcode_app_path
|
145
|
+
File.expand_path('../..', developer_prefix)
|
146
|
+
end
|
147
|
+
|
148
|
+
# TODO raise SAFE level (0) to 4 if possible.
|
149
|
+
def generate
|
150
|
+
ERB.new(PROFILE_ERB_TEMPLATE, 0, '>').result(binding)
|
151
|
+
end
|
152
|
+
|
153
|
+
end
|
154
|
+
|
155
|
+
# Ensure the `pod` bin doesn’t think it needs to use Bundler.
|
156
|
+
ENV['COCOAPODS_NO_BUNDLER'] = '1'
|
157
|
+
|
158
|
+
profile = Profile.new
|
159
|
+
#puts profile.generate
|
160
|
+
command = ['/usr/bin/sandbox-exec', '-p', profile.generate, profile.pod_bin, *ARGV]
|
161
|
+
exec(*command)
|
162
|
+
|
data/lib/cocoapods/config.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.20.
|
20
|
+
version: 0.20.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.20.
|
27
|
+
version: 0.20.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: claide
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.3.
|
34
|
+
version: 0.3.2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.3.
|
41
|
+
version: 0.3.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: cocoapods-downloader
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,6 +204,7 @@ email:
|
|
204
204
|
- fabiopelosin@gmail.com
|
205
205
|
executables:
|
206
206
|
- pod
|
207
|
+
- sandbox-pod
|
207
208
|
extensions: []
|
208
209
|
extra_rdoc_files: []
|
209
210
|
files:
|
@@ -271,80 +272,19 @@ post_install_message: |2+
|
|
271
272
|
|
272
273
|
CHANGELOG:
|
273
274
|
|
274
|
-
## 0.20.
|
275
|
-
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.19.0...0.20.0)
|
276
|
-
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.19.0...0.20.0)
|
277
|
-
• [cocoapods-downloader](https://github.com/CocoaPods/CLAide/compare/0.1.0...0.1.1)
|
278
|
-
• [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.5.5...0.6.0)
|
279
|
-
• [CLAide](https://github.com/CocoaPods/CLAide/compare/0.2.0...0.3.0)
|
280
|
-
|
281
|
-
###### Enhancements
|
282
|
-
|
283
|
-
* Introduces an experimental sandbox feature.
|
284
|
-
[#939](https://github.com/CocoaPods/CocoaPods/issues/939)
|
285
|
-
|
286
|
-
Let’s face it, even though we have a great community that spends an amazing
|
287
|
-
amount of time on curating the specifications, the internet can be a hostile
|
288
|
-
place and the community is growing too large to take a naive approach any
|
289
|
-
longer.
|
290
|
-
|
291
|
-
As such, we have started leveraging OS X’s sandbox facilities to disallow
|
292
|
-
unsanctioned operations. This is still very experimental and therefore has to
|
293
|
-
be used explicitely, for now, but that does **not** mean we don’t want you to
|
294
|
-
start using it and **report issues**.
|
295
|
-
|
296
|
-
To use the sandbox, simply use the `sandbox-pod` command instead. E.g.:
|
297
|
-
|
298
|
-
$ sandbox-pod install
|
299
|
-
|
300
|
-
In case of issues, be sure to check `/var/log/system.log` for ‘deny’ messages.
|
301
|
-
For instance, here’s an example where the sandbox denies read access to `/`:
|
302
|
-
|
303
|
-
May 16 00:23:35 Khaos kernel[0]: Sandbox: ruby(98430) deny file-read-data /
|
304
|
-
|
305
|
-
**NOTE**: _The above example is actually one that we know of. We’re not sure
|
306
|
-
yet which process causes this, but there shouldn’t be a need for any process
|
307
|
-
to read data from the root path anyways._
|
308
|
-
|
309
|
-
**NOTE 2**: _At the moment the sandbox is not compatible with the `:path` option
|
310
|
-
when referencing Pods that are not stored within the directory of the Podfile._
|
311
|
-
|
312
|
-
* The naked `pod` command now defaults to `pod install`.
|
313
|
-
[#958](https://github.com/CocoaPods/CocoaPods/issues/958)
|
314
|
-
|
315
|
-
* CocoaPods will look for the Podfile in the ancestors paths if one is
|
316
|
-
not available in the working directory.
|
317
|
-
[#940](https://github.com/CocoaPods/CocoaPods/issues/940)
|
318
|
-
|
319
|
-
* Documentation generation has been removed from CocoaPods as it graduated
|
320
|
-
to CocoaDocs. This decision was taken because CocoaDocs is a much better
|
321
|
-
solution which doesn't clutter Xcode's docsets while still allowing
|
322
|
-
access to the docsets with Xcode and with Dash. Removing this feature
|
323
|
-
keeps the installer leaner and easier to develop and paves the way for the
|
324
|
-
upcoming sandbox. Private pods can use pre install hook to generate the
|
325
|
-
documentation. If there will be enough demand this feature might be
|
326
|
-
reintegrated as plugin (see
|
327
|
-
[#1037](https://github.com/CocoaPods/CocoaPods/issues/1037)).
|
328
|
-
|
329
|
-
* Improved performance of the copy resources script and thus build time of
|
330
|
-
the integrated targets. Contribution by [@onato](https://github.com/onato)
|
331
|
-
[#1050](https://github.com/CocoaPods/CocoaPods/issues/1050).
|
332
|
-
|
333
|
-
* The changelog for the current version is printed after CocoaPods is
|
334
|
-
installed/updated.
|
335
|
-
[#853](https://github.com/CocoaPods/CocoaPods/issues/853).
|
336
|
-
|
275
|
+
## 0.20.1
|
337
276
|
|
338
277
|
###### Bug fixes
|
278
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.20.0...0.20.1)
|
279
|
+
• [CLAide](https://github.com/CocoaPods/CLAide/compare/0.3.0...0.3.2)
|
339
280
|
|
340
|
-
*
|
341
|
-
|
342
|
-
*
|
343
|
-
|
344
|
-
|
345
|
-
*
|
346
|
-
|
347
|
-
[#1039](https://github.com/CocoaPods/CocoaPods/issues/1039)
|
281
|
+
* Made sandbox-pod executable visible as it wasn't correctly configured in the
|
282
|
+
gemspec.
|
283
|
+
* Made sandbox-pod executable actually work when installed as a gem. (In which
|
284
|
+
case every executable is wrapped in a wrapper bin script and the DATA constant
|
285
|
+
can no longer be used.)
|
286
|
+
* Required CLAide 0.3.2 as 0.3.0 didn't include all the files in the gemspec
|
287
|
+
and 0.3.1 was not correctly processed by RubyGems.
|
348
288
|
|
349
289
|
|
350
290
|
rdoc_options: []
|