cocoapods-ve 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43d73854a3290065af12a098ad1d6ceae43772a266cdb4bdd53be97565781df5
4
- data.tar.gz: 5e68bc66d435ff9f96047ca953063287ee40b5a046ce1101c5b51b5c0bc018c4
3
+ metadata.gz: eaeef5a6af2cdf48eb8992f35db7bf8df625c41716fb91e87c5701a00ff72963
4
+ data.tar.gz: ae33f62c708957c66f83783ae4462a56bd9fe3c9eb702b2ffe1b8cc477f48772
5
5
  SHA512:
6
- metadata.gz: cf8345f22b42f10df7d6fb8062194af710010ef7c29113c31ffbe0052ab00f49b81105529e2b19d748af7d8cc173f5625eef7b24fa9d1f2582e14cc8cf42aed7
7
- data.tar.gz: 8ee4b478018c7ee3aeec9186b487c657ab501b636ac07d076c9a32b6479249d8741e43d299e4d1388acabae4164d83d57e4362d2206fdf8d4fee9dfe442043c0
6
+ metadata.gz: 1b95d8efd5f3a0b7f5181cd9caf12c786d118486f0b5256dbae95eeb02b5a2d8fceb3b96c904e9f00fdd3e701d523192590fef0b4ba518ecccd482dbf14b6453
7
+ data.tar.gz: d6f0dc62fecad13dcd2ba15da7aa14db4107ac167e15e1d004ca515ef2be26f429d7af9c37708ed71ca31401960ec1471946b55450e40d95b0005af0cd3e1e05
data/cocoapods-ve.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.3'
22
22
  spec.add_development_dependency 'rake'
23
- spec.add_runtime_dependency 'cocoapods',"~>1.9.1"
23
+ spec.add_runtime_dependency 'cocoapods',">1.7.0"
24
24
 
25
25
  end
data/lib/cocoapods-ve.rb CHANGED
@@ -1,2 +1,5 @@
1
1
  require 'cocoapods-ve/gem_version'
2
- require 'cocoapods-ve/ext/downloader-ext'
2
+ require 'cocoapods-ve/ext/downloader_ext'
3
+ require 'cocoapods-ve/ext/sources_manager'
4
+ require 'cocoapods-ve/ext/resolver_ext'
5
+ require 'cocoapods-ve/ext/requirement_ext'
@@ -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
@@ -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['COCOAPODS_LINK_POD_CACHE'] == 'true'
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
@@ -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.1"
2
+ VERSION = "0.0.11"
3
3
  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.1
4
+ version: 0.0.11
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-04-26 00:00:00.000000000 Z
11
+ date: 2021-08-05 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.9.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.9.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,10 @@ 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/downloader-ext.rb
71
+ - lib/cocoapods-ve/ext/downloader_ext.rb
72
+ - lib/cocoapods-ve/ext/requirement_ext.rb
73
+ - lib/cocoapods-ve/ext/resolver_ext.rb
74
+ - lib/cocoapods-ve/ext/sources_manager.rb
72
75
  - lib/cocoapods-ve/gem_version.rb
73
76
  - lib/cocoapods_plugin.rb
74
77
  - spec/command/ve_spec.rb