cocoapods-cafswitcher 0.0.25 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +38 -26
- data/cocoapods-cafswitcher.gemspec +1 -1
- data/lib/cocoapods-cafswitcher/Main.rb +17 -12
- data/lib/cocoapods-cafswitcher/gem_version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 665ef99907a1f245ae1cb6b32a036a6315772689c6acedfec05b79a74271d1ed
|
4
|
+
data.tar.gz: 8ca5e29f37c0cb77c147207a1cec9704eda457f6fbc2c1b6ac9c8242aca4ea55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d603a0a2ffcdd896765e0cede565ed51d8b27c595ecc7c0be1f9b00d2a77d8e71110be09009fba9ba56d0d27c682b318985b498e79b9e498b6e368b89817f4a
|
7
|
+
data.tar.gz: c437acc1ca533aef71f86f9406d532a35f8b91231e98b11615d383412d961517b6df9c2725aa70dd2c4fd161d7977fc6296951659bdbf6583a5c2866785ec2a6
|
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,65 +1,75 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-cafswitcher (0.0.
|
4
|
+
cocoapods-cafswitcher (0.0.30)
|
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
|
-
claide (1.0.
|
18
|
-
cocoapods (1.
|
20
|
+
claide (1.0.3)
|
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)
|
31
|
-
fourflusher (>= 2.
|
34
|
+
fourflusher (>= 2.3.0, < 3.0)
|
32
35
|
gh_inspector (~> 1.0)
|
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)
|
54
|
-
|
61
|
+
ethon (0.12.0)
|
62
|
+
ffi (>= 1.3.0)
|
63
|
+
ffi (1.13.0)
|
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
|
-
|
213
|
+
cleanCocoapodsCache(gitPathList)
|
209
214
|
|
210
215
|
# 把新的配置写入file
|
211
216
|
File.open(configFile, 'wb') {|f| YAML.dump(caf_hash, f) } unless changedSubPods.empty?
|
@@ -223,14 +228,14 @@ 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].include?(release_specs_dir)
|
227
|
-
|
231
|
+
if desc[:spec_file].to_s.include?(release_specs_dir.to_s)
|
232
|
+
next
|
228
233
|
end
|
229
234
|
Pod::UI.message("Removing spec #{desc[:spec_file]} (v#{desc[:version]})") do
|
230
|
-
FileUtils.
|
235
|
+
FileUtils.rm_rf([desc[:spec_file]])
|
231
236
|
end
|
232
237
|
# Pod::UI.message("Removing cache #{desc[:slug]}") do
|
233
|
-
# FileUtils.rm_rf(desc[:slug])
|
238
|
+
# FileUtils.rm_rf([desc[:slug]])
|
234
239
|
# end
|
235
240
|
end
|
236
241
|
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.30
|
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-06-10 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
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
|
98
|
-
rubygems_version: 2.7.7
|
97
|
+
rubygems_version: 3.0.8
|
99
98
|
signing_key:
|
100
99
|
specification_version: 4
|
101
100
|
summary: A longer description of cocoapods-cafswitcher.
|