lg_pod_plugin 1.1.6.0 → 1.1.6.2
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/lg_pod_plugin/downloader/l_cache.rb +42 -41
- data/lib/lg_pod_plugin/pod/release-pod.rb +5 -3
- data/lib/lg_pod_plugin/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec02e7287d7905d93048a8620d22946077d9b60078df1531986db93559cd6d4
|
4
|
+
data.tar.gz: a13a7706ad353e97a931fcd96581f20d70e2c6aaef4d63c5dbf3eb1c7fa698a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b930234998ecfaa0376344d2e4c9efd74cb4be730bbd6e0379fad087718355e24805babe26443019a791df623fe1938c6e8d71def6480ec2b85f1505fd928c8a
|
7
|
+
data.tar.gz: ab48391439c46f2730f0133c9350ee256cc6bfb3690a142588da6633d6c0516b88c6d26e5e46b90ba3deafebe3ac9b78598b1a87b38c9290fc38c395da762bd9
|
@@ -17,7 +17,7 @@ module LgPodPlugin
|
|
17
17
|
if (File.exist?(destination) && !destination.children.empty?) && cache_pod_spec.exist?
|
18
18
|
return [true, destination, cache_pod_spec]
|
19
19
|
else
|
20
|
-
[false, destination, cache_pod_spec]
|
20
|
+
return [false, destination, cache_pod_spec]
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -58,12 +58,12 @@ module LgPodPlugin
|
|
58
58
|
Pathname.new(path.to_path + '.podspec.json')
|
59
59
|
end
|
60
60
|
|
61
|
-
def self.cached_spec(request)
|
62
|
-
|
63
|
-
|
64
|
-
rescue JSON::ParserError
|
65
|
-
|
66
|
-
end
|
61
|
+
# def self.cached_spec(request)
|
62
|
+
# path = path_for_spec(request)
|
63
|
+
# path.file? && Specification.from_file(path)
|
64
|
+
# rescue JSON::ParserError
|
65
|
+
# nil
|
66
|
+
# end
|
67
67
|
|
68
68
|
def self.get_local_spec(request, target)
|
69
69
|
result = Pod::Downloader::Response.new
|
@@ -86,7 +86,7 @@ module LgPodPlugin
|
|
86
86
|
[result, local_specs]
|
87
87
|
end
|
88
88
|
|
89
|
-
def self.
|
89
|
+
def self.group_subspecs_by_platform(spec)
|
90
90
|
specs_by_platform = {}
|
91
91
|
[spec, *spec.recursive_subspecs].each do |ss|
|
92
92
|
ss.available_platforms.each do |platform|
|
@@ -98,7 +98,7 @@ module LgPodPlugin
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def self.copy_and_clean(source, destination, spec)
|
101
|
-
specs_by_platform =
|
101
|
+
specs_by_platform = group_subspecs_by_platform(spec)
|
102
102
|
destination.parent.mkpath
|
103
103
|
self.write_lock(destination) do
|
104
104
|
FileUtils.rm_rf(destination)
|
@@ -109,7 +109,8 @@ module LgPodPlugin
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def self.clean_pod_unused_files(destination, spec)
|
112
|
-
specs_by_platform =
|
112
|
+
specs_by_platform = group_subspecs_by_platform(spec)
|
113
|
+
destination.parent.mkpath
|
113
114
|
self.write_lock(destination) do
|
114
115
|
Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
|
115
116
|
Pod::Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean!
|
@@ -117,37 +118,37 @@ module LgPodPlugin
|
|
117
118
|
end
|
118
119
|
|
119
120
|
def self.write_lock(location, &block)
|
120
|
-
|
121
|
-
end
|
122
|
-
|
123
|
-
def self.lock(location, lock_type)
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
end
|
145
|
-
|
146
|
-
def self.valid_lock?(file, filename)
|
147
|
-
|
148
|
-
rescue Errno::ENOENT
|
149
|
-
|
150
|
-
end
|
121
|
+
Pod::Downloader::Cache.lock(location, File::LOCK_SH, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# def self.lock(location, lock_type)
|
125
|
+
# raise ArgumentError, 'no block given' unless block_given?
|
126
|
+
# lockfile = "#{location}.lock"
|
127
|
+
# f = nil
|
128
|
+
# loop do
|
129
|
+
# f.close if f
|
130
|
+
# f = File.open(lockfile, File::CREAT, 0o644)
|
131
|
+
# f.flock(lock_type)
|
132
|
+
# break if self.valid_lock?(f, lockfile)
|
133
|
+
# end
|
134
|
+
# begin
|
135
|
+
# yield location
|
136
|
+
# ensure
|
137
|
+
# if lock_type == File::LOCK_SH
|
138
|
+
# f.flock(File::LOCK_EX)
|
139
|
+
# File.delete(lockfile) if self.valid_lock?(f, lockfile)
|
140
|
+
# else
|
141
|
+
# File.delete(lockfile)
|
142
|
+
# end
|
143
|
+
# f.close
|
144
|
+
# end
|
145
|
+
# end
|
146
|
+
|
147
|
+
# def self.valid_lock?(file, filename)
|
148
|
+
# file.stat.ino == File.stat(filename).ino
|
149
|
+
# rescue Errno::ENOENT
|
150
|
+
# false
|
151
|
+
# end
|
151
152
|
|
152
153
|
public
|
153
154
|
def self.write_spec(spec, path)
|
@@ -47,8 +47,7 @@ module LgPodPlugin
|
|
47
47
|
http = "https://ghproxy.com/" + http
|
48
48
|
source["http"] = http
|
49
49
|
end
|
50
|
-
|
51
|
-
requirements = {:http => http, :version => version}
|
50
|
+
requirements = {:http => http }
|
52
51
|
elsif git && tag
|
53
52
|
tag = tag.to_s unless LUtils.is_a_string? tag
|
54
53
|
requirements = { :git => git, :tag => tag }
|
@@ -74,14 +73,17 @@ module LgPodPlugin
|
|
74
73
|
# 通过 swift 可执行文件进行异步下载任务
|
75
74
|
LgPodPlugin::Concurrency.async_download_pods all_installers
|
76
75
|
end
|
76
|
+
|
77
77
|
|
78
78
|
def self.dependencies(installer)
|
79
79
|
installer.download_dependencies
|
80
80
|
installer.send(:validate_targets)
|
81
|
+
installer.send(:clean_sandbox)
|
81
82
|
installation_options = installer.send(:installation_options)
|
82
83
|
skip_pods_project_generation = installation_options.send(:skip_pods_project_generation)
|
83
84
|
if skip_pods_project_generation
|
84
85
|
installer.show_skip_pods_project_generation_message
|
86
|
+
installer.send(:run_podfile_post_install_hooks)
|
85
87
|
else
|
86
88
|
installer.integrate
|
87
89
|
end
|
@@ -132,7 +134,7 @@ module LgPodPlugin
|
|
132
134
|
raise Pod::Informative, "No `Podfile.lock' found in the project directory, run `pod install'."
|
133
135
|
end
|
134
136
|
end
|
135
|
-
|
137
|
+
|
136
138
|
def self.install_release_pod(update, repo_update, verbose, clean_install)
|
137
139
|
#切换工作目录到当前工程下, 开始执行pod install
|
138
140
|
workspace = LProject.shared.workspace
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lg_pod_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.6.
|
4
|
+
version: 1.1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dongzb01
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.12.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.12.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: claide
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,16 +76,16 @@ dependencies:
|
|
76
76
|
name: bundler
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
81
|
+
version: 2.0.0
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2.
|
88
|
+
version: 2.0.0
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|