cocoapods-ve 0.0.8 → 0.0.12

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: a58a9fe4a5cd7d02161f7ce9c711a4c71953422d9ad4616fb2bf3ae03da047c1
4
- data.tar.gz: 1af0d3a4a9b608b9b58b6dbd6ebaba7e980cddd7144d354118c405ac8ed8efb1
3
+ metadata.gz: 5b1e687ba504aedbcdc44196a8f0570ca7085679a95a11262f9bba51db9091ef
4
+ data.tar.gz: 57a895dc6bcb10e068ab2179bbde5143b8a199983b71a114e08f39b8e956bf76
5
5
  SHA512:
6
- metadata.gz: 5da754106acf781882c8d868de5190931fedebabc1b876c75ad4020e8003ee1b8833e89e23bd3df4474298e6580f1618e1db19936669f73f5f654b39000ff1f2
7
- data.tar.gz: 2576db325d9d1f1f1a016dacfd0d72134db8b8af63a169ff49d34d516c193b1446dd5d2a137d461d018392984b9a9df4abdf4995e462aaadb7b35c5a16777628
6
+ metadata.gz: 66aeafa326438edb983f025486fce3754d1b48ebe56924a71f21811c5208b594897c0415826ec157ec95e2a3ad1e0ec498ef1b161a5bd4a0db76753b10476ae1
7
+ data.tar.gz: 4dfdda0a2f09e929519dab42fbe39ed38fbafdcf5da716d6f3de3a9c66aa6da6fb9be2368aa8a8bb3cbb3cad6b1aa5e3c8869bde14014401fd94387600ccc238
@@ -24,7 +24,7 @@ module Pod
24
24
  Longer description of cocoapods-ve.
25
25
  DESC
26
26
 
27
- self.arguments = 'NAME'
27
+ self.arguments = []
28
28
 
29
29
  def initialize(argv)
30
30
  @name = argv.shift_argument
@@ -9,8 +9,8 @@ module Pod
9
9
  def requirement_satisfied_by?(requirement, activated, spec)
10
10
  if ENV['DISABLE_CONFLICT_CHECKER'] && (ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'YES' || ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'TRUE')
11
11
  version = spec.version
12
- puts "DISABLE_CONFLICT_CHECKER for #{requirement.requirement.to_s} and #{spec.to_s}" unless requirement.requirement.satisfied_by?(version)
13
- return false unless valid_possibility_version_for_root_name?(requirement, activated, spec)
12
+ puts "DISABLE_CONFLICT_CHECKER【satisfied_by】 for #{requirement.requirement.to_s} and #{spec.to_s}" unless requirement.requirement.satisfied_by?(version)
13
+ puts "DISABLE_CONFLICT_CHECKER【valid_possibility_version_for_root_name】 for #{requirement.requirement.to_s} and #{spec.to_s}" unless valid_possibility_version_for_root_name?(requirement, activated, spec)
14
14
  return false unless spec_is_platform_compatible?(activated, requirement, spec)
15
15
  true
16
16
  else
@@ -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.8"
2
+ VERSION = "0.0.12"
3
3
  end
data/lib/cocoapods-ve.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods-ve/gem_version'
2
2
  require 'cocoapods-ve/ext/downloader_ext'
3
+ require 'cocoapods-ve/ext/sources_manager'
3
4
  require 'cocoapods-ve/ext/resolver_ext'
4
5
  require 'cocoapods-ve/ext/requirement_ext'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-ve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyle.zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-27 00:00:00.000000000 Z
11
+ date: 2021-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -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