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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a4c2d321812e6bfcf156a1bb701d9fb8c39fa2c575bb0a6e3272c4346cf9ef2
4
- data.tar.gz: 0bcd6f9e9861fbb172e32abd728f32d766a2f395e17466465360f12f3bad5a08
3
+ metadata.gz: 612ab757a2dda325c65ee1be76b2c36f041e742cbc73137b7600daeb6f8a27a3
4
+ data.tar.gz: e9eb84aa2b66b88c57c4307ecdc8bc94e4441d15bb643342d441bb04c5f57dc1
5
5
  SHA512:
6
- metadata.gz: 0d10240bf1bff5772f97367e479f86375d083854ccd993cd2534358228fe398f9321572d38887230ed1b58fe49576b0c6f251531837ffee4d1ed1bcee4fdb961
7
- data.tar.gz: c83e8e656698ad8f5029f0bff89bd9d6850af8ffb505dc39c3634cadab6a896aeea7ead949a3800b4e0171bbf09ccac6d0c5813ab62596b818a0c0f077a621d1
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.to_path, { :git => git }, podspec, self.request.released_pod) if self.request.single_git
111
- LgPodPlugin::LCache.cache_pod(name, download_params.to_path, self.request.get_cache_key_params,podspec, self.request.released_pod)
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
- Git.init(temp_name)
54
+ unless File.exist?(temp_name)
55
+ FileUtils.mkdir(temp_name)
56
+ end
55
57
  FileUtils.chdir(temp_name)
56
- LgPodPlugin.log_blue "git clone #{self.git}"
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")
@@ -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
- if pods.empty?
139
- installer.update = true
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 = { :pods => pods }
148
+ installer.update = false
142
149
  end
143
150
  rescue
144
151
  installer.update = false
@@ -1,3 +1,3 @@
1
1
  module LgPodPlugin
2
- VERSION = "1.1.5.1"
2
+ VERSION = "1.1.5.3"
3
3
  end
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.1
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: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods