cocoapods 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 0.17.1
|
2
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.0...0.17.1)
|
3
|
+
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.17.0...0.17.1)
|
4
|
+
|
5
|
+
###### Bug fixes
|
6
|
+
|
7
|
+
* Always create the CACHE_ROOT directory when performing a search.
|
8
|
+
[#917](https://github.com/CocoaPods/CocoaPods/issues/917)
|
9
|
+
|
1
10
|
## 0.17.0
|
2
11
|
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.0.rc7...0.17.0)
|
3
12
|
• [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.17.0.rc7...0.17.0)
|
data/lib/cocoapods.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
3
|
module Pod
|
4
|
+
require 'pathname'
|
5
|
+
|
4
6
|
require 'cocoapods/gem_version'
|
5
7
|
require 'cocoapods-core'
|
6
8
|
require 'xcodeproj'
|
@@ -16,12 +18,13 @@ module Pod
|
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
19
|
-
# @return [
|
21
|
+
# @return [Pathname] The directory where CocoaPods caches the downloads.
|
20
22
|
#
|
21
23
|
# @todo The {Installer::PodSourceInstaller} and the #{ExternalSources}
|
22
24
|
# classes build and configure the downloader from scratch.
|
23
25
|
#
|
24
|
-
CACHE_ROOT =
|
26
|
+
CACHE_ROOT = Pathname.new(File.join(ENV['HOME'], 'Library/Caches/CocoaPods'))
|
27
|
+
CACHE_ROOT.mkpath unless CACHE_ROOT.exist?
|
25
28
|
|
26
29
|
# @return [Fixnum] The maximum size for the cache expressed in Mb.
|
27
30
|
#
|
@@ -30,7 +33,7 @@ module Pod
|
|
30
33
|
#
|
31
34
|
MAX_CACHE_SIZE = 500
|
32
35
|
|
33
|
-
Pod::Specification::Set::Statistics.instance.cache_file =
|
36
|
+
Pod::Specification::Set::Statistics.instance.cache_file = CACHE_ROOT + 'statistics.yml'
|
34
37
|
|
35
38
|
autoload :Command, 'cocoapods/command'
|
36
39
|
autoload :Executable, 'cocoapods/executable'
|
@@ -44,8 +47,6 @@ module Pod
|
|
44
47
|
autoload :UI, 'cocoapods/user_interface'
|
45
48
|
autoload :Validator, 'cocoapods/validator'
|
46
49
|
|
47
|
-
autoload :Pathname, 'pathname'
|
48
|
-
|
49
50
|
module Generator
|
50
51
|
autoload :Acknowledgements, 'cocoapods/generator/acknowledgements'
|
51
52
|
autoload :BridgeSupport, 'cocoapods/generator/bridge_support'
|
@@ -132,7 +132,7 @@ module Pod
|
|
132
132
|
target = sandbox.root + name
|
133
133
|
target.rmtree if target.exist?
|
134
134
|
downloader = Downloader.for_target(target, params)
|
135
|
-
downloader.cache_root = CACHE_ROOT
|
135
|
+
downloader.cache_root = CACHE_ROOT.to_s
|
136
136
|
downloader.max_cache_size = MAX_CACHE_SIZE
|
137
137
|
downloader.aggressive_cache = false
|
138
138
|
downloader.download
|
@@ -156,7 +156,7 @@ module Pod
|
|
156
156
|
def downloader
|
157
157
|
return @downloader if @downloader
|
158
158
|
@downloader = Downloader.for_target(root, root_spec.source.dup)
|
159
|
-
@downloader.cache_root = CACHE_ROOT
|
159
|
+
@downloader.cache_root = CACHE_ROOT.to_s
|
160
160
|
@downloader.max_cache_size = MAX_CACHE_SIZE
|
161
161
|
@downloader.aggressive_cache = aggressive_cache?
|
162
162
|
@downloader
|
@@ -107,8 +107,7 @@ module Pod
|
|
107
107
|
# @return [Pathname] The path where the search index should be stored.
|
108
108
|
#
|
109
109
|
def search_index_path
|
110
|
-
|
111
|
-
caches_path + 'search_index.yaml'
|
110
|
+
CACHE_ROOT + 'search_index.yaml'
|
112
111
|
end
|
113
112
|
|
114
113
|
public
|
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.17.
|
4
|
+
version: 0.17.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cocoapods-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.17.
|
22
|
+
version: 0.17.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - '='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.17.
|
30
|
+
version: 0.17.1
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: claide
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|