cocoapods-ve 0.0.1 → 0.0.8
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/cocoapods-ve.gemspec +1 -1
- data/lib/cocoapods-ve.rb +3 -1
- data/lib/cocoapods-ve/ext/{downloader-ext.rb → downloader_ext.rb} +1 -1
- data/lib/cocoapods-ve/ext/requirement_ext.rb +42 -0
- data/lib/cocoapods-ve/ext/resolver_ext.rb +34 -0
- data/lib/cocoapods-ve/gem_version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a58a9fe4a5cd7d02161f7ce9c711a4c71953422d9ad4616fb2bf3ae03da047c1
|
4
|
+
data.tar.gz: 1af0d3a4a9b608b9b58b6dbd6ebaba7e980cddd7144d354118c405ac8ed8efb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da754106acf781882c8d868de5190931fedebabc1b876c75ad4020e8003ee1b8833e89e23bd3df4474298e6580f1618e1db19936669f73f5f654b39000ff1f2
|
7
|
+
data.tar.gz: 2576db325d9d1f1f1a016dacfd0d72134db8b8af63a169ff49d34d516c193b1446dd5d2a137d461d018392984b9a9df4abdf4995e462aaadb7b35c5a16777628
|
data/cocoapods-ve.gemspec
CHANGED
data/lib/cocoapods-ve.rb
CHANGED
@@ -8,7 +8,7 @@ module Pod
|
|
8
8
|
can_cache: true,
|
9
9
|
cache_path: Config.instance.cache_root + 'Pods'
|
10
10
|
)
|
11
|
-
if ENV['
|
11
|
+
if ENV['COCOAPODS_LINK_POD_CACHE_VE'] == 'true'
|
12
12
|
can_cache &&= !Config.instance.skip_download_cache
|
13
13
|
|
14
14
|
request = preprocess_request(request)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Pod::Vendor
|
2
|
+
|
3
|
+
# require "rubygems/version"
|
4
|
+
# require "rubygems/deprecate"
|
5
|
+
|
6
|
+
# If we're being loaded after yaml was already required, then
|
7
|
+
# load our yaml + workarounds now.
|
8
|
+
# Gem.load_yaml if defined? ::YAML
|
9
|
+
|
10
|
+
##
|
11
|
+
# A Requirement is a set of one or more version restrictions. It supports a
|
12
|
+
# few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators.
|
13
|
+
#
|
14
|
+
# See Gem::Version for a description on how versions and requirements work
|
15
|
+
# together in RubyGems.
|
16
|
+
|
17
|
+
class Gem::Requirement
|
18
|
+
|
19
|
+
alias satisfied_by_t? satisfied_by?
|
20
|
+
def satisfied_by? version
|
21
|
+
if ENV['DISABLE_CONFLICT_CHECKER'] && (ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'YES' || ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'TRUE')
|
22
|
+
raise ArgumentError, "Need a Gem::Version: #{version.inspect}" unless
|
23
|
+
Gem::Version === version
|
24
|
+
# #28965: syck has a bug with unquoted '=' YAML.loading as YAML::DefaultKey
|
25
|
+
|
26
|
+
|
27
|
+
for req in requirements
|
28
|
+
op = req[0]
|
29
|
+
rv = req[1]
|
30
|
+
|
31
|
+
if op == '=' && OPS["="].call(version,rv)
|
32
|
+
puts "DISABLE_CONFLICT_CHECKER for #{self.to_s} and #{version.to_s}" unless requirements.all? { |op, rv| (OPS[op] || OPS["="]).call version, rv }
|
33
|
+
return true
|
34
|
+
end
|
35
|
+
end
|
36
|
+
requirements.all? { |op, rv| (OPS[op] || OPS["="]).call version, rv }
|
37
|
+
else
|
38
|
+
satisfied_by_t? version
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Pod
|
2
|
+
|
3
|
+
# The resolver is responsible of generating a list of specifications grouped
|
4
|
+
# by target for a given Podfile.
|
5
|
+
#
|
6
|
+
class Resolver
|
7
|
+
alias requirement_satisfied_by_t? requirement_satisfied_by?
|
8
|
+
|
9
|
+
def requirement_satisfied_by?(requirement, activated, spec)
|
10
|
+
if ENV['DISABLE_CONFLICT_CHECKER'] && (ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'YES' || ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'TRUE')
|
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)
|
14
|
+
return false unless spec_is_platform_compatible?(activated, requirement, spec)
|
15
|
+
true
|
16
|
+
else
|
17
|
+
requirement_satisfied_by_t? requirement,activated,spec
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
if self.instance_methods.include?(:seer_verify_dependency_conflicts!)
|
23
|
+
alias seer_verify_dependency_conflicts_t! seer_verify_dependency_conflicts!
|
24
|
+
def seer_verify_dependency_conflicts!(dependency)
|
25
|
+
if ENV['DISABLE_CONFLICT_CHECKER'] && (ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'YES' || ENV['DISABLE_CONFLICT_CHECKER'].upcase == 'TRUE')
|
26
|
+
return
|
27
|
+
else
|
28
|
+
seer_verify_dependency_conflicts_t! dependency
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
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.
|
4
|
+
version: 0.0.8
|
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-
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: cocoapods
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.7.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.7.0
|
55
55
|
description: A short description of cocoapods-ve.
|
56
56
|
email:
|
57
57
|
- kyle.zhou@bytedance.com
|
@@ -68,7 +68,9 @@ files:
|
|
68
68
|
- lib/cocoapods-ve.rb
|
69
69
|
- lib/cocoapods-ve/command.rb
|
70
70
|
- lib/cocoapods-ve/command/ve.rb
|
71
|
-
- lib/cocoapods-ve/ext/
|
71
|
+
- lib/cocoapods-ve/ext/downloader_ext.rb
|
72
|
+
- lib/cocoapods-ve/ext/requirement_ext.rb
|
73
|
+
- lib/cocoapods-ve/ext/resolver_ext.rb
|
72
74
|
- lib/cocoapods-ve/gem_version.rb
|
73
75
|
- lib/cocoapods_plugin.rb
|
74
76
|
- spec/command/ve_spec.rb
|