cocoapods-cafswitcher 0.0.26 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bundle/config +2 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +35 -23
- data/cocoapods-cafswitcher.gemspec +1 -1
- data/lib/cocoapods-cafswitcher/Main.rb +20 -15
- data/lib/cocoapods-cafswitcher/gem_version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 713a52400dc4544fe2f10801225532273ae5d53ac1a1687170fe422485464c43
|
|
4
|
+
data.tar.gz: a67b434254816eed754a9fe0e603b36c5fffbbb7820f7a0f12d00ab9f37a609c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d7072743d3cc8d5bb2824bd6ba89d5a048af4719a0ec64c5580590d2e6dad74ff8f28453b311b05bfcde04ef48f0921cc2fa7041ccba6941a6997c61b4e314e
|
|
7
|
+
data.tar.gz: 64b5d5f9bc81da056c1bb1fb4361e4b3425275d63483960e4debdb0d059c65060408a64f4404ef07f37df0e8eda3e2035d2d50c9bd6f120433ad4e0b1a28580b
|
data/.bundle/config
ADDED
data/Gemfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
source 'https://
|
|
1
|
+
source 'https://gems.ruby-china.com/'
|
|
2
2
|
|
|
3
3
|
# Specify your gem's dependencies in cocoapods-cafswitcher.gemspec
|
|
4
4
|
gemspec
|
|
@@ -10,5 +10,5 @@ group :development do
|
|
|
10
10
|
gem 'bacon'
|
|
11
11
|
gem 'mocha-on-bacon'
|
|
12
12
|
gem 'prettybacon'
|
|
13
|
-
gem 'cocoapods-stats'
|
|
13
|
+
gem 'cocoapods-stats'
|
|
14
14
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cocoapods-cafswitcher (0.0.
|
|
4
|
+
cocoapods-cafswitcher (0.0.31)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
|
-
remote: https://
|
|
7
|
+
remote: https://gems.ruby-china.com/
|
|
8
8
|
specs:
|
|
9
|
-
CFPropertyList (3.0.
|
|
10
|
-
activesupport (4.2.11.
|
|
9
|
+
CFPropertyList (3.0.2)
|
|
10
|
+
activesupport (4.2.11.3)
|
|
11
11
|
i18n (~> 0.7)
|
|
12
12
|
minitest (~> 5.1)
|
|
13
13
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
14
14
|
tzinfo (~> 1.1)
|
|
15
|
+
algoliasearch (1.27.3)
|
|
16
|
+
httpclient (~> 2.8, >= 2.8.3)
|
|
17
|
+
json (>= 1.5.1)
|
|
15
18
|
atomos (0.1.3)
|
|
16
19
|
bacon (1.2.0)
|
|
17
20
|
claide (1.0.3)
|
|
18
|
-
cocoapods (1.
|
|
21
|
+
cocoapods (1.9.3)
|
|
19
22
|
activesupport (>= 4.0.2, < 5)
|
|
20
23
|
claide (>= 1.0.2, < 2.0)
|
|
21
|
-
cocoapods-core (= 1.
|
|
24
|
+
cocoapods-core (= 1.9.3)
|
|
22
25
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
23
26
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
|
24
27
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
25
28
|
cocoapods-search (>= 1.0.0, < 2.0)
|
|
26
29
|
cocoapods-stats (>= 1.0.0, < 2.0)
|
|
27
|
-
cocoapods-trunk (>= 1.
|
|
30
|
+
cocoapods-trunk (>= 1.4.0, < 2.0)
|
|
28
31
|
cocoapods-try (>= 1.1.0, < 2.0)
|
|
29
32
|
colored2 (~> 3.1)
|
|
30
33
|
escape (~> 0.0.4)
|
|
@@ -33,33 +36,40 @@ GEM
|
|
|
33
36
|
molinillo (~> 0.6.6)
|
|
34
37
|
nap (~> 1.0)
|
|
35
38
|
ruby-macho (~> 1.4)
|
|
36
|
-
xcodeproj (>= 1.
|
|
37
|
-
cocoapods-core (1.
|
|
39
|
+
xcodeproj (>= 1.14.0, < 2.0)
|
|
40
|
+
cocoapods-core (1.9.3)
|
|
38
41
|
activesupport (>= 4.0.2, < 6)
|
|
42
|
+
algoliasearch (~> 1.0)
|
|
43
|
+
concurrent-ruby (~> 1.1)
|
|
39
44
|
fuzzy_match (~> 2.0.4)
|
|
40
45
|
nap (~> 1.0)
|
|
46
|
+
netrc (~> 0.11)
|
|
47
|
+
typhoeus (~> 1.0)
|
|
41
48
|
cocoapods-deintegrate (1.0.4)
|
|
42
|
-
cocoapods-downloader (1.
|
|
49
|
+
cocoapods-downloader (1.3.0)
|
|
43
50
|
cocoapods-plugins (1.0.0)
|
|
44
51
|
nap
|
|
45
52
|
cocoapods-search (1.0.0)
|
|
46
|
-
cocoapods-stats (1.
|
|
47
|
-
cocoapods-trunk (1.
|
|
53
|
+
cocoapods-stats (1.1.0)
|
|
54
|
+
cocoapods-trunk (1.5.0)
|
|
48
55
|
nap (>= 0.8, < 2.0)
|
|
49
56
|
netrc (~> 0.11)
|
|
50
|
-
cocoapods-try (1.
|
|
57
|
+
cocoapods-try (1.2.0)
|
|
51
58
|
colored2 (3.1.2)
|
|
52
|
-
concurrent-ruby (1.1.
|
|
59
|
+
concurrent-ruby (1.1.6)
|
|
53
60
|
escape (0.0.4)
|
|
61
|
+
ethon (0.12.0)
|
|
62
|
+
ffi (>= 1.3.0)
|
|
63
|
+
ffi (1.13.0)
|
|
54
64
|
fourflusher (2.3.1)
|
|
55
65
|
fuzzy_match (2.0.4)
|
|
56
66
|
gh_inspector (1.1.3)
|
|
67
|
+
httpclient (2.8.3)
|
|
57
68
|
i18n (0.9.5)
|
|
58
69
|
concurrent-ruby (~> 1.0)
|
|
59
|
-
|
|
60
|
-
minitest (5.
|
|
61
|
-
mocha (1.
|
|
62
|
-
metaclass (~> 0.0.1)
|
|
70
|
+
json (2.3.0)
|
|
71
|
+
minitest (5.14.1)
|
|
72
|
+
mocha (1.11.2)
|
|
63
73
|
mocha-on-bacon (0.2.3)
|
|
64
74
|
mocha (>= 0.13.0)
|
|
65
75
|
molinillo (0.6.6)
|
|
@@ -68,12 +78,14 @@ GEM
|
|
|
68
78
|
netrc (0.11.0)
|
|
69
79
|
prettybacon (0.0.2)
|
|
70
80
|
bacon (~> 1.2)
|
|
71
|
-
rake (
|
|
81
|
+
rake (13.0.1)
|
|
72
82
|
ruby-macho (1.4.0)
|
|
73
83
|
thread_safe (0.3.6)
|
|
74
|
-
|
|
84
|
+
typhoeus (1.4.0)
|
|
85
|
+
ethon (>= 0.9.0)
|
|
86
|
+
tzinfo (1.2.7)
|
|
75
87
|
thread_safe (~> 0.1)
|
|
76
|
-
xcodeproj (1.
|
|
88
|
+
xcodeproj (1.16.0)
|
|
77
89
|
CFPropertyList (>= 2.3.3, < 4.0)
|
|
78
90
|
atomos (~> 0.1.3)
|
|
79
91
|
claide (>= 1.0.2, < 2.0)
|
|
@@ -89,11 +101,11 @@ DEPENDENCIES
|
|
|
89
101
|
cocoapods
|
|
90
102
|
cocoapods-cafswitcher!
|
|
91
103
|
cocoapods-plugins
|
|
92
|
-
cocoapods-stats
|
|
104
|
+
cocoapods-stats
|
|
93
105
|
mocha
|
|
94
106
|
mocha-on-bacon
|
|
95
107
|
prettybacon
|
|
96
108
|
rake
|
|
97
109
|
|
|
98
110
|
BUNDLED WITH
|
|
99
|
-
1.
|
|
111
|
+
1.17.3
|
|
@@ -196,16 +196,21 @@ Pod::HooksManager.register('cocoapods-cafswitcher', :pre_install) do |installer_
|
|
|
196
196
|
podName = subPod.split('/')[0]
|
|
197
197
|
changedPods << podName
|
|
198
198
|
end
|
|
199
|
+
|
|
200
|
+
# gitPathList.each do |gitPathSubPod|
|
|
201
|
+
# changedSubPods << gitPathSubPod
|
|
202
|
+
# end
|
|
203
|
+
changedSubPods.uniq!
|
|
204
|
+
|
|
199
205
|
changedPods.uniq!
|
|
206
|
+
|
|
207
|
+
|
|
200
208
|
Pod::UI.puts "\nchanged Pod is:\n " + changedPods.to_s + "\n" unless changedPods.empty?
|
|
201
209
|
|
|
202
|
-
|
|
203
|
-
changedSubPods << gitPathSubPod
|
|
204
|
-
end
|
|
205
|
-
changedSubPods.uniq!
|
|
210
|
+
|
|
206
211
|
|
|
207
212
|
cleanPodsDir(changedSubPods)
|
|
208
|
-
cleanCocoapodsCache(
|
|
213
|
+
cleanCocoapodsCache(changedSubPods)
|
|
209
214
|
|
|
210
215
|
# 把新的配置写入file
|
|
211
216
|
File.open(configFile, 'wb') {|f| YAML.dump(caf_hash, f) } unless changedSubPods.empty?
|
|
@@ -223,15 +228,15 @@ def cleanCocoapodsCache(gitPathList)
|
|
|
223
228
|
cache_descriptors.each do |desc|
|
|
224
229
|
specs_dir = cachePath + 'Specs'
|
|
225
230
|
release_specs_dir = specs_dir + 'Release'
|
|
226
|
-
if desc[:spec_file].to_s.include?(release_specs_dir.to_s)
|
|
227
|
-
|
|
228
|
-
end
|
|
231
|
+
# if desc[:spec_file].to_s.include?(release_specs_dir.to_s)
|
|
232
|
+
# next
|
|
233
|
+
# end
|
|
229
234
|
Pod::UI.message("Removing spec #{desc[:spec_file]} (v#{desc[:version]})") do
|
|
230
|
-
FileUtils.
|
|
231
|
-
end
|
|
232
|
-
Pod::UI.message("Removing cache #{desc[:slug]}") do
|
|
233
|
-
FileUtils.rm_rf(desc[:slug])
|
|
235
|
+
FileUtils.rm_rf([desc[:spec_file]])
|
|
234
236
|
end
|
|
237
|
+
# Pod::UI.message("Removing cache #{desc[:slug]}") do
|
|
238
|
+
# FileUtils.rm_rf([desc[:slug]])
|
|
239
|
+
# end
|
|
235
240
|
end
|
|
236
241
|
end
|
|
237
242
|
end
|
|
@@ -245,15 +250,15 @@ def cleanPodsDir(changedSubPods)
|
|
|
245
250
|
changedSubPods.each do |changedSubPod|
|
|
246
251
|
changedPod = changedSubPod.split('/')[0]
|
|
247
252
|
# 清除本地的localFile 的JSON
|
|
248
|
-
localspecPath = podRoot + "Local Podspecs/" + "#{changedPod}.podspec.json"
|
|
249
|
-
if
|
|
253
|
+
localspecPath = podRoot + "/Local Podspecs/" + "#{changedPod}.podspec.json"
|
|
254
|
+
if File.exist? localspecPath.to_s
|
|
250
255
|
Pod::UI.message "Removing local Podspecs.json #{localspecPath}"
|
|
251
256
|
FileUtils.rm_r(localspecPath)
|
|
252
257
|
end
|
|
253
258
|
# next unless changedSubPod =~ /^(?i)LJ/ || changedSubPod =~ /^(?i)Lianjia/ || changedSubPod.include?('/')
|
|
254
259
|
# 清除目录 pods 文件夹下的缓存
|
|
255
260
|
changedPodPath = podRoot + changedPod
|
|
256
|
-
if
|
|
261
|
+
if File.exist? changedPodPath.to_s
|
|
257
262
|
Pod::UI.message "Removing Folder #{changedPodPath}"
|
|
258
263
|
FileUtils.rm_r(changedPodPath)
|
|
259
264
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-cafswitcher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.31
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- handa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -42,16 +42,16 @@ dependencies:
|
|
|
42
42
|
name: cocoapods
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: '0'
|
|
55
55
|
description: A short description of cocoapods-cafswitcher.
|
|
56
56
|
email:
|
|
57
57
|
- 794363716@qq.com
|
|
@@ -59,6 +59,7 @@ executables: []
|
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- ".bundle/config"
|
|
62
63
|
- ".gitignore"
|
|
63
64
|
- Gemfile
|
|
64
65
|
- Gemfile.lock
|
|
@@ -94,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
95
|
- !ruby/object:Gem::Version
|
|
95
96
|
version: '0'
|
|
96
97
|
requirements: []
|
|
97
|
-
|
|
98
|
-
rubygems_version: 2.7.7
|
|
98
|
+
rubygems_version: 3.0.8
|
|
99
99
|
signing_key:
|
|
100
100
|
specification_version: 4
|
|
101
101
|
summary: A longer description of cocoapods-cafswitcher.
|