lg_pod_plugin 1.1.6.4 → 1.1.6.5
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/command/install.rb +0 -1
- data/lib/lg_pod_plugin/git/gitlab_api.rb +3 -2
- data/lib/lg_pod_plugin/installer/PodDownload +0 -0
- data/lib/lg_pod_plugin/installer/concurrency.rb +7 -5
- data/lib/lg_pod_plugin/installer/install.rb +2 -5
- data/lib/lg_pod_plugin/installer/main.rb +0 -1
- data/lib/lg_pod_plugin/installer/project.rb +2 -2
- data/lib/lg_pod_plugin/utils/l_util.rb +9 -9
- data/lib/lg_pod_plugin/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af2ac8a760f94c57f82d9005cd1b366a7dc9b51ab09c887e43dff3e0f43b0c4
|
4
|
+
data.tar.gz: f120886f336ce31ea35dcc38300a24561878a7a49963017484d26b59eb3e671e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e304fe0bbafee6d7ad797c3bc32e60c4fb050109d29a2d04d27d0a22630a7e9abf024820e54891792c16b8953f0574b0876e4df2b67cf27f22e57af7c89a6352
|
7
|
+
data.tar.gz: 13029c1d8e46a6dc0388fc7de8e78b470dbd6f040834d6554bab1c615a4344d7f8584efbf56714c1429262fb6478ec2fa6792cfedef7570b0ad3cd4b354ddfb4
|
data/lib/command/install.rb
CHANGED
@@ -178,11 +178,12 @@ module LgPodPlugin
|
|
178
178
|
end
|
179
179
|
return self.use_default_refs_heads git, branch
|
180
180
|
end
|
181
|
-
commit, _ =
|
181
|
+
commit, _ = GithubAPI.request_github_refs_heads git, branch
|
182
182
|
if commit
|
183
183
|
return [commit, branch]
|
184
184
|
else
|
185
|
-
|
185
|
+
commit, _ = self.use_default_refs_heads git, branch
|
186
|
+
return [commit, branch]
|
186
187
|
end
|
187
188
|
end
|
188
189
|
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
-
require 'aescrypt'
|
2
|
+
# require 'aescrypt'
|
3
3
|
|
4
4
|
module LgPodPlugin
|
5
5
|
|
@@ -8,12 +8,14 @@ module LgPodPlugin
|
|
8
8
|
public
|
9
9
|
def self.async_download_pods(installers)
|
10
10
|
return if installers.empty?
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
hash = installers.map(&:download_params).uniq
|
12
|
+
json_text = JSON.generate(hash)
|
13
|
+
file_path = LFileManager.download_director.join(LUtils.md5(json_text)).to_path + ".json"
|
14
|
+
# pp file_path
|
15
|
+
File.open(file_path, 'w+') { |f| f.write(json_text) }
|
14
16
|
pwd = Pathname.new(File.dirname(__FILE__)).realpath
|
15
17
|
FileUtils.chdir pwd
|
16
|
-
system("./PodDownload #{
|
18
|
+
system("./PodDownload #{file_path}")
|
17
19
|
installers.each(&:copy_file_to_caches)
|
18
20
|
end
|
19
21
|
|
@@ -69,12 +69,9 @@ module LgPodPlugin
|
|
69
69
|
git = checkout_options[:git]
|
70
70
|
return unless git
|
71
71
|
cache_podspec = request.lg_spec.spec if request.lg_spec
|
72
|
-
branch = checkout_options[:branch]
|
72
|
+
branch = checkout_options[:branch] ||= request.params[:branch]
|
73
73
|
checkout_options[:name] = name if name
|
74
|
-
|
75
|
-
branch = self.request.params[:branch] if request.params[:branch]
|
76
|
-
checkout_options[:branch] = branch if branch
|
77
|
-
end
|
74
|
+
checkout_options[:branch] = branch if branch
|
78
75
|
lg_pod_path = LFileManager.cache_workspace(LProject.shared.workspace)
|
79
76
|
lg_pod_path.mkdir(0700) unless lg_pod_path.exist?
|
80
77
|
checkout_options[:path] = lg_pod_path
|
@@ -16,7 +16,7 @@ module LgPodPlugin
|
|
16
16
|
attr_reader :external_pods
|
17
17
|
attr_reader :need_update_pods
|
18
18
|
attr_accessor :cache_specs
|
19
|
-
attr_accessor :redirect_url_hash
|
19
|
+
# attr_accessor :redirect_url_hash
|
20
20
|
def setup(workspace,podfile_path, update, repo_update)
|
21
21
|
@podfile = Pod::Podfile.from_file(podfile_path)
|
22
22
|
@update = update
|
@@ -36,7 +36,7 @@ module LgPodPlugin
|
|
36
36
|
@cache_specs = Hash.new
|
37
37
|
@external_pods = Hash.new.merge!(external_pods)
|
38
38
|
@need_update_pods = Hash.new
|
39
|
-
@redirect_url_hash = Hash.new
|
39
|
+
# @redirect_url_hash = Hash.new
|
40
40
|
return self
|
41
41
|
end
|
42
42
|
|
@@ -3,20 +3,20 @@ require 'resolv'
|
|
3
3
|
require "ipaddr"
|
4
4
|
require 'base64'
|
5
5
|
require 'fileutils'
|
6
|
-
require_relative 'aes-crypt'
|
6
|
+
# require_relative 'aes-crypt'
|
7
7
|
|
8
8
|
module LgPodPlugin
|
9
9
|
|
10
10
|
class LUtils
|
11
11
|
|
12
|
-
def self.encrypt(message, password)
|
13
|
-
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.decrypt(message, password)
|
18
|
-
|
19
|
-
end
|
12
|
+
# def self.encrypt(message, password)
|
13
|
+
# encrypted_data = AESCrypt.encrypt(message, password)
|
14
|
+
# encrypted_data.tr("\n", "")
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
# def self.decrypt(message, password)
|
18
|
+
# AESCrypt.decrypt message, password
|
19
|
+
# end
|
20
20
|
|
21
21
|
def self.md5(text)
|
22
22
|
return "" unless text
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dongzb01
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -44,20 +44,6 @@ dependencies:
|
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: aescrypt
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '1.0'
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '1.0'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: bacon
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|