lg_pod_plugin 1.1.5.1 → 1.1.5.3
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/config/lockfile_model.rb +7 -0
- data/lib/lg_pod_plugin/downloader/downloader.rb +2 -2
- data/lib/lg_pod_plugin/git/git_clone.rb +5 -2
- data/lib/lg_pod_plugin/installer/PodDownload +0 -0
- data/lib/lg_pod_plugin/pod/release-pod.rb +10 -3
- data/lib/lg_pod_plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612ab757a2dda325c65ee1be76b2c36f041e742cbc73137b7600daeb6f8a27a3
|
4
|
+
data.tar.gz: e9eb84aa2b66b88c57c4307ecdc8bc94e4441d15bb643342d441bb04c5f57dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60962ccf4a99c7a4f85e9fe1aa1d2ad6f99133904b3ab60a5fef9003e0f5c253710000b7cc41d78a1ebb92fd8abd95edab71d5a7a329ddb026fa9cba56cc7b4b
|
7
|
+
data.tar.gz: f18f82873e111af8574c1bd9b4c032aab708bc019e438d2fdec3c3ebc92417aa9170999bd59b77fd20a4a52fb9a59a29b6eea4550c913f662922eef8b57aff64
|
@@ -54,6 +54,13 @@ module LgPodPlugin
|
|
54
54
|
hash ? hash : {}
|
55
55
|
end
|
56
56
|
|
57
|
+
def self.writeToFile()
|
58
|
+
lockfile = LProject.shared.lockfile
|
59
|
+
hash = lockfile.send(:internal_data)
|
60
|
+
hash["LOCKFILE TYPE"] = "LgPodPlugin"
|
61
|
+
lockfile_path = lockfile.send(:defined_in_file)
|
62
|
+
lockfile.send(:write_to_disk, lockfile_path)
|
63
|
+
end
|
57
64
|
|
58
65
|
end
|
59
66
|
end
|
@@ -107,8 +107,8 @@ module LgPodPlugin
|
|
107
107
|
return download_params
|
108
108
|
elsif File.exist?(download_params.to_s) && download_params
|
109
109
|
FileUtils.chdir download_params
|
110
|
-
LgPodPlugin::LCache.cache_pod(name, download_params
|
111
|
-
LgPodPlugin::LCache.cache_pod(name, download_params
|
110
|
+
LgPodPlugin::LCache.cache_pod(name, download_params, { :git => git }, podspec, self.request.released_pod) if self.request.single_git
|
111
|
+
LgPodPlugin::LCache.cache_pod(name, download_params, self.request.get_cache_key_params,podspec, self.request.released_pod)
|
112
112
|
FileUtils.chdir(LFileManager.download_director)
|
113
113
|
FileUtils.rm_rf(download_params)
|
114
114
|
self.request.checkout_options.delete(:branch) if commit
|
@@ -51,9 +51,12 @@ module LgPodPlugin
|
|
51
51
|
|
52
52
|
# git clone commit
|
53
53
|
def git_clone_by_commit(path, temp_name)
|
54
|
-
|
54
|
+
unless File.exist?(temp_name)
|
55
|
+
FileUtils.mkdir(temp_name)
|
56
|
+
end
|
55
57
|
FileUtils.chdir(temp_name)
|
56
|
-
|
58
|
+
system("git init")
|
59
|
+
LgPodPlugin.log_blue "git clone -b #{self.commit} #{self.git}"
|
57
60
|
system("git remote add origin #{self.git}")
|
58
61
|
system("git fetch origin #{self.commit}")
|
59
62
|
system("git reset --hard FETCH_HEAD")
|
Binary file
|
@@ -86,6 +86,7 @@ module LgPodPlugin
|
|
86
86
|
end
|
87
87
|
installer.send(:write_lockfiles)
|
88
88
|
installer.send(:perform_post_install_actions)
|
89
|
+
LockfileModel.writeToFile()
|
89
90
|
end
|
90
91
|
|
91
92
|
def self.lockfile_missing_pods(pods, lockfile)
|
@@ -135,10 +136,16 @@ module LgPodPlugin
|
|
135
136
|
begin
|
136
137
|
verify_lockfile_exists!(lockfile)
|
137
138
|
verify_pods_are_installed!(pods, lockfile)
|
138
|
-
|
139
|
-
|
139
|
+
internal_data = lockfile.send(:internal_data)
|
140
|
+
flag = internal_data["LOCKFILE TYPE"]
|
141
|
+
if flag != nil
|
142
|
+
if pods.empty?
|
143
|
+
installer.update = true
|
144
|
+
else
|
145
|
+
installer.update = { :pods => pods }
|
146
|
+
end
|
140
147
|
else
|
141
|
-
installer.update =
|
148
|
+
installer.update = false
|
142
149
|
end
|
143
150
|
rescue
|
144
151
|
installer.update = false
|
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.5.
|
4
|
+
version: 1.1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dongzb01
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|