lg_pod_plugin 1.1.5.1 → 1.1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a4c2d321812e6bfcf156a1bb701d9fb8c39fa2c575bb0a6e3272c4346cf9ef2
4
- data.tar.gz: 0bcd6f9e9861fbb172e32abd728f32d766a2f395e17466465360f12f3bad5a08
3
+ metadata.gz: 28939d9769c3829633eae8e6560123eaa26f0185a06d0705916cd27400e550b5
4
+ data.tar.gz: ba61c2e383b9cb9d56b9a4ff8567d6292a49ac2b7fa44a5953b54416b258530e
5
5
  SHA512:
6
- metadata.gz: 0d10240bf1bff5772f97367e479f86375d083854ccd993cd2534358228fe398f9321572d38887230ed1b58fe49576b0c6f251531837ffee4d1ed1bcee4fdb961
7
- data.tar.gz: c83e8e656698ad8f5029f0bff89bd9d6850af8ffb505dc39c3634cadab6a896aeea7ead949a3800b4e0171bbf09ccac6d0c5813ab62596b818a0c0f077a621d1
6
+ metadata.gz: aee9ac47bf1bcb62fd9dd87d190dfab70354e9836fbe4ca342c1efe42c0093b8fb06111b4542e8a78be391107fdca02a4380b96b83e1711048df8d5e2629ddb2
7
+ data.tar.gz: f1eb565fa4bc16908c78960901666ca03138f153cbd6486ea7453f20f6ef8ffb6f0090d679908d5bee078f584a41dc33c2a3b795f2e44f7f474073851f67f2cf
@@ -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")
@@ -1,3 +1,3 @@
1
1
  module LgPodPlugin
2
- VERSION = "1.1.5.1"
2
+ VERSION = "1.1.5.2"
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.2
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods