cocoapods-hbh 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa9a46dbd35d6f731cb779c53d98fc6ce5bdf2a7c7b07cd8a524cca704a22f9
|
4
|
+
data.tar.gz: 8daba11c634b15cdb5aaf5f0c9f0d91d1c9d7038d64b4ed86d64abc7794d574f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6467fdf43be71dac1f3ec3281fb8e1ddce111259a3b5135a9db2421bbababaa849be9dea547671294be7894e11b5fc7f92328b37a1d603e7251b72fd2d9df5
|
7
|
+
data.tar.gz: b862ebfb616bd9a4d0b5250922d0943b6e33c14629a11139d11fcc17939640c8808eb28b61d898df986ebeffab671c8772f6975de25d14e7b64265f3331a1022
|
@@ -83,7 +83,7 @@ module Pod
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
if moduleTag != nil and !moduleTag.empty?
|
86
|
-
result = system("cd #{path_module} && git fetch origin #{moduleTag} && git checkout #{moduleTag}")
|
86
|
+
result = system("cd #{path_module} && git fetch origin tag #{moduleTag} && git checkout #{moduleTag}")
|
87
87
|
raise "发生错误" unless result
|
88
88
|
# `cd #{path_module} && git fetch && git checkout #{moduleTag}`
|
89
89
|
# Pod::UI.puts "发生错误#{result}".red
|
@@ -47,17 +47,27 @@ module Pod
|
|
47
47
|
if !File.exist?(git_hooks_path)
|
48
48
|
FileUtils.mkdir_p git_hooks_path
|
49
49
|
end
|
50
|
-
|
51
|
-
|
50
|
+
|
51
|
+
copyHookAndChmod(hooks_path, git_hooks_path, file_name)
|
52
52
|
findSubmodulesHooks(hooks_path, git_path, file_name)
|
53
53
|
end
|
54
54
|
|
55
55
|
def findSubmodulesHooks (git_hooks_path, git_path, file_name)
|
56
56
|
subGitHookPath = walk(git_path)
|
57
57
|
subGitHookPath.each do |path|
|
58
|
+
copyHookAndChmod(git_hooks_path, path, file_name)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def copyHookAndChmod(git_hooks_path, path, file_name)
|
63
|
+
if File.exist?("#{path}/#{file_name}")
|
64
|
+
Pod::UI.puts "文件已经存在#{path}/#{file_name}"
|
65
|
+
return
|
66
|
+
else
|
58
67
|
FileUtils.cp_r(git_hooks_path, path)
|
59
68
|
FileUtils.chmod("+x", "#{path}/#{file_name}")
|
60
69
|
end
|
70
|
+
|
61
71
|
end
|
62
72
|
|
63
73
|
def walk (startPath, dirName = "hooks", first = true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-hbh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zanju
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|