cocoapods-dongjia 1.1.9 → 1.1.11
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-dongjia/command/install.rb +18 -18
- data/lib/cocoapods-dongjia/gem_version.rb +1 -1
- data/lib/helper/installer.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8954ae550d9759e424b8250ace3ad0d6deb0f1ec221995637855b3dbf44ea1a
|
4
|
+
data.tar.gz: 59850829db90f3389146586b7dbc70ac6c43d5110f7272388d8bee356ad64c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21dce76b6b0513f2e8ad7b109b8c8576aa3722e5a8d4e2d5c12cb3d6b06a7c5f670d2d03557e8b66b5e64e7e69dcb0037fb1d157ff2eed49512229e6011be23d
|
7
|
+
data.tar.gz: 233659f47ab622e95ffaf19da47e54b76b616491a0373966803a86e12de719a63b48f07870f00e725aa57e13dddd56b54ca97ae9023a86a09c7b299056966fe6
|
@@ -1,20 +1,20 @@
|
|
1
1
|
require 'cocoapods'
|
2
2
|
|
3
|
-
module Pod
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
3
|
+
# module Pod
|
4
|
+
# class Command
|
5
|
+
# class Install < Command
|
6
|
+
# alias_method :run_retryable, :run
|
7
|
+
# def run
|
8
|
+
# begin
|
9
|
+
# run_retryable()
|
10
|
+
# rescue => exception
|
11
|
+
# # 有异常,打开 --repo-update 重试
|
12
|
+
# unless @repo_update
|
13
|
+
# @repo_update = true
|
14
|
+
# run_retryable()
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
# end
|
18
|
+
# end
|
19
|
+
# end
|
20
|
+
# end
|
data/lib/helper/installer.rb
CHANGED
@@ -5,16 +5,16 @@ module Pod
|
|
5
5
|
|
6
6
|
class Installer
|
7
7
|
|
8
|
-
class PodSourceInstaller
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
8
|
+
# class PodSourceInstaller
|
9
|
+
# # 关闭自己仓库中 pod 的安全警告
|
10
|
+
# old_method = instance_method(:verify_source_is_secure)
|
11
|
+
# define_method(:verify_source_is_secure) do |root_spec|
|
12
|
+
# url = root_spec.source[:http]
|
13
|
+
# if url != nil && !url.start_with?('http://code.kaipao.cc')
|
14
|
+
# old_method.bind(self).(root_spec)
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
# end
|
18
18
|
|
19
19
|
# Hook post_installer
|
20
20
|
# origin_perform_post_install_actions = instance_method(:perform_post_install_actions)
|