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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2856c6176e67bdb0249923ef653839b1ed0c96f974b05cfb2597031c3d6b70c
4
- data.tar.gz: 1ce2bfc2864e5e2b2388d381feb52a50cf174084e93fd2c26b01b79557802889
3
+ metadata.gz: 20f31ff1cc2c918a56c786e3cce6311e70ea09881c5670c3ef539dfd8ac4b343
4
+ data.tar.gz: b1709ff0270418b4e34fe622d8dedbfbc7b807c977d53822137e6fe12427de9c
5
5
  SHA512:
6
- metadata.gz: 12c3598b4d3bced5a2ab14ab90bdf292b0a74a6c69505238f2254c3ab1f26e8f6cdf18894dec4e2488fd51fa482efce7aac91f50b4f9a0ef35c67333811899ba
7
- data.tar.gz: ceb70ef9e782de49e01f61916497cf46f98c38cdd3198154889d255ebc79baeef6ce9716a5c0e8da9171e229db3c91bc5a2ea6009c96e5e2ab3d270d82706e00
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsVe
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  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.9
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