cocoapods-soul-component-plugin 0.0.23 → 0.0.24

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: 597ad6367a29c757573150c23a60335a6129f9b95fec90188b85e53cb8749411
4
- data.tar.gz: 8ce3b18b3d10fb49f995795eba84d4b491993776ae1ae7d02b4b0914e9f6a5fd
3
+ metadata.gz: 16202b06a32ecde0021d9d5f79f09c22db0919e014a657311f015de3b4375603
4
+ data.tar.gz: d6fce98e9929402afd92586625de4b76121c0310f90fca98081547b1c5b489ff
5
5
  SHA512:
6
- metadata.gz: 9af5affec61d0e30db9815e4ed5796154784253d9d93d8fe9d42ceccfa792f3f042d1010c5ab9379a53f93fabf5ebaa54451013144efb74fbec19cb17d341562
7
- data.tar.gz: 5a6fbdbd2f06f9030e0c6e0e8815dec642bf2372d1e29548020c5153555837211ba645cdafd7703dc14e7f52d81d73a03977ca6374bf176f95408e402f592972
6
+ metadata.gz: 8032bcd3f05babec3cdce060b5a6b2cea46b4493b5d0180217c9dc8733c780b59bdd1a38cc94069fab974361caff7aa23b23b584fbb5dbeb2aac948dbef4586a
7
+ data.tar.gz: c2e741e1f8deb86642a472e672cd7051aac71042cd8277414b08b78adda2095537c572dec1f0b807540d2ae8681b7f5374512c5f36463e8d0d05a1de3a9dc99b
@@ -215,7 +215,18 @@ module CocoapodsSoulComponentPlugin
215
215
  each.path = target_path
216
216
 
217
217
  if File.exist?(target_path) == false
218
- options = { git: each.git, commit: each.commit, tag: each.version, branch: each.branch }
218
+ # 使用优先顺序 commit>branch>tag
219
+ c = each.commit
220
+ b = each.branch
221
+ v = each.version
222
+ if (c != nil)
223
+ v = nil
224
+ b = nil
225
+ end
226
+ if (b != nil)
227
+ v = nil
228
+ end
229
+ options = { git: each.git, commit: c, tag: v, branch: b }
219
230
  # 这行代码会自动清空branch并且设置commit
220
231
  # options = Pod::Downloader.preprocess_options(options)
221
232
  downloader = Pod::Downloader.for_target(target_path, options)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module CocoapodsSoulComponentPlugin
3
- VERSION = '0.0.23'
3
+ VERSION = '0.0.24'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-soul-component-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - fang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-06 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler