cocoapods-wxpodhook 0.0.7 → 0.0.9
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/lib/cocoapods-wxpodhook/gem_version.rb +1 -1
- data/lib/cocoapods-wxpodhook/helper.rb +28 -16
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c2079288aa9624b99c01e07acaf9a3171e8e55cef22237c5c2cf7a04d30654b
|
4
|
+
data.tar.gz: 33628326a692888af039aa42259e3077275f42845e7a1d25b2ae992a36f9acc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 495f9d311fef1d779edbf49ac84fdec127af9e45927509e4a89427f7c67c068c2539a28031bae96c525f0ad47b8b172f0e7998f0afff1a9d94ac8aa6aa8a095c
|
7
|
+
data.tar.gz: 3786e90a6f18eab6b263563284358dd7ccd28c4f229dabe376afc8f614a5bdf6f5c9ee3e642ae210b37c34ef6e27d4d00b743e37a16966773b7a2a1982060205
|
@@ -1 +1 @@
|
|
1
|
-
module CocoapodsWxpodhook; VERSION = "0.0.
|
1
|
+
module CocoapodsWxpodhook; VERSION = "0.0.9"; end
|
@@ -12,27 +12,33 @@ module CocoapodsWxpodhook
|
|
12
12
|
|
13
13
|
# 自动更新repo(官方Repo和阿里云repo不再自动更新list中)
|
14
14
|
def AutoUpdateRepo
|
15
|
-
|
16
15
|
before = Time.new();
|
17
16
|
|
18
17
|
put_redMsg("开始自动更新网校自有的repo仓库")
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
19
|
+
# 设置Git浅克隆环境变量
|
20
|
+
ENV['GIT_CLONE_ARGS'] = '--depth=1'
|
21
|
+
|
22
|
+
# 使用CocoaPods的API来更新repo
|
23
|
+
config = Pod::Config.instance
|
24
|
+
repos = config.sources_manager.all
|
25
|
+
|
26
|
+
# 过滤出需要更新的repo
|
27
|
+
tal_repos = repos.select { |repo| repo.name.include?("100tal-") || repo.name.include?("TAL") }
|
28
|
+
|
29
|
+
# 更新repo
|
30
|
+
tal_repos.each do |repo|
|
31
|
+
put_redMsg("正在更新 #{repo.name}")
|
32
|
+
repo.update(true)
|
29
33
|
end
|
30
34
|
|
31
|
-
|
35
|
+
# 恢复Git克隆环境变量
|
36
|
+
ENV.delete('GIT_CLONE_ARGS')
|
32
37
|
|
33
|
-
|
38
|
+
after = Time.new();
|
39
|
+
time = after.to_i - before.to_i
|
34
40
|
|
35
|
-
|
41
|
+
put_redMsg("更新Repo仓库完成,耗时#{time} 秒")
|
36
42
|
end
|
37
43
|
end
|
38
44
|
end
|
@@ -78,11 +84,11 @@ module Pod
|
|
78
84
|
class Command
|
79
85
|
class UpdateAll < Command
|
80
86
|
self.summary = <<-SUMMARY
|
81
|
-
更新该Podfile下所有使用Repo
|
87
|
+
更新该Podfile下所有使用Repo库管理的组件,不支持传入额外参数,使用Git浅克隆方式加快下载速度
|
82
88
|
SUMMARY
|
83
89
|
|
84
90
|
self.description = <<-DESC
|
85
|
-
更新该Podfile下所有使用Repo
|
91
|
+
更新该Podfile下所有使用Repo库管理的组件,不支持传入额外参数,使用Git浅克隆方式加快下载速度
|
86
92
|
DESC
|
87
93
|
|
88
94
|
self.arguments = []
|
@@ -193,11 +199,17 @@ module Pod
|
|
193
199
|
|
194
200
|
put_redMsg("待更新的组件列表如下 \n #{prepareUpdateComponentStr}")
|
195
201
|
|
196
|
-
put_redMsg("
|
202
|
+
put_redMsg("开始使用浅克隆方式更新组件 \n #{prepareUpdateComponentStr}")
|
203
|
+
|
204
|
+
# 设置Git浅克隆环境变量
|
205
|
+
ENV['GIT_CLONE_ARGS'] = '--depth=1'
|
197
206
|
|
198
207
|
# 执行pod update
|
199
208
|
system("pod update #{prepareUpdateComponentStr} --no-repo-update")
|
200
209
|
|
210
|
+
# 恢复Git克隆环境变量
|
211
|
+
ENV.delete('GIT_CLONE_ARGS')
|
212
|
+
|
201
213
|
now = Time.new();
|
202
214
|
|
203
215
|
time = now.to_i - before.to_i;
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-wxpodhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- leev
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-05-09 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -38,7 +37,6 @@ dependencies:
|
|
38
37
|
- - ">="
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
|
-
description:
|
42
40
|
email:
|
43
41
|
- lishuaishuai01@tal.com
|
44
42
|
executables: []
|
@@ -54,7 +52,6 @@ homepage: https://github.com/EXAMPLE/cocoapods-wxpodhook
|
|
54
52
|
licenses:
|
55
53
|
- MIT
|
56
54
|
metadata: {}
|
57
|
-
post_install_message:
|
58
55
|
rdoc_options: []
|
59
56
|
require_paths:
|
60
57
|
- lib
|
@@ -69,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
66
|
- !ruby/object:Gem::Version
|
70
67
|
version: '0'
|
71
68
|
requirements: []
|
72
|
-
rubygems_version: 3.5
|
73
|
-
signing_key:
|
69
|
+
rubygems_version: 3.6.5
|
74
70
|
specification_version: 4
|
75
71
|
summary: 网校GitHooks
|
76
72
|
test_files: []
|