cocoapods-ve 0.0.9 → 0.0.10
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-ve/ext/sources_manager.rb +29 -0
- data/lib/cocoapods-ve/gem_version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20f31ff1cc2c918a56c786e3cce6311e70ea09881c5670c3ef539dfd8ac4b343
|
4
|
+
data.tar.gz: b1709ff0270418b4e34fe622d8dedbfbc7b807c977d53822137e6fe12427de9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c2da3658a4eb137c083954dbac37522ab6322127d934cca640a40359394717a7b9d79d0cf7146af039513cd5cf2c9e754ea1b87220204b91587adbada1f4cb0
|
7
|
+
data.tar.gz: 89267159b580ac50a6345404a0ba28c52ccde0e84ef3a35a48d727e426ab65788da49830cfb372b5424956e5058b77dea9cbc13a5b81ab57441c53553c937227
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Pod
|
2
|
+
class Source
|
3
|
+
if self.instance_methods.include? :update_git_repo
|
4
|
+
alias update_git_repo_t update_git_repo
|
5
|
+
def update_git_repo(show_output = false)
|
6
|
+
Config.instance.with_changes(:verbose => show_output) do
|
7
|
+
begin
|
8
|
+
args = %W(-C #{repo} fetch origin)
|
9
|
+
args.push('--progress') if show_output
|
10
|
+
git!(args)
|
11
|
+
current_branch = git!(%W(-C #{repo} rev-parse --abbrev-ref HEAD)).strip
|
12
|
+
git!(%W(-C #{repo} reset --hard origin/#{current_branch}))
|
13
|
+
rescue Exception => e
|
14
|
+
UI.warn 'Unable g error, clean and re clone'
|
15
|
+
`rm -rf #{repo}`
|
16
|
+
git!(%W( clone #{url} #{repo}))
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
rescue
|
22
|
+
raise Informative, 'CocoaPods was not able to update the ' \
|
23
|
+
"`#{name}` repo. If this is an unexpected issue " \
|
24
|
+
'and persists you can inspect it running ' \
|
25
|
+
'`pod repo update --verbose`'
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-ve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/cocoapods-ve/ext/downloader_ext.rb
|
72
72
|
- lib/cocoapods-ve/ext/requirement_ext.rb
|
73
73
|
- lib/cocoapods-ve/ext/resolver_ext.rb
|
74
|
+
- lib/cocoapods-ve/ext/sources_manager.rb
|
74
75
|
- lib/cocoapods-ve/gem_version.rb
|
75
76
|
- lib/cocoapods_plugin.rb
|
76
77
|
- spec/command/ve_spec.rb
|