cocoapods-nexus 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3f325f88514ae0f04c4e3fe1ea6e23240792edbac855df608a902145d1042d9
4
- data.tar.gz: 66950bc011692d2d3d3ed84323c0a18fa2a244c281bf7f8a4c9c7f062ae79f38
3
+ metadata.gz: 8330342a1bfb924159fd14f64c815a82244bb3d127ea04fca63c221cbc48c06b
4
+ data.tar.gz: 83dadc37dd09a79bcc5fa428dec201b5626949eba412dbbf4c62fefc18c53d8c
5
5
  SHA512:
6
- metadata.gz: c810916e50f3719c16d7c6809caff1d993e56346aaabdc3de1cf716a84c9cf13e182ba16466fb8d7e7cd5d0c29ebf453725289af6c653c5112ac314a3f80d6b1
7
- data.tar.gz: 75c7f789be6a2b446ac153dbbe364f3dc5527eb752043bbdf18bd1b3fccdac41191d4d6f9d2349e9acf574b1baff4139bd64e01e82af33c750a6ffe07fbbe932
6
+ metadata.gz: c9ebc809664b18f2a02d5d05df55933e5e5e0d8056ef4efd5bc442549a1b3cc981de187df08c6a7654feaea3b15527249c9c959b27c6e9dd32e088743201fec6
7
+ data.tar.gz: ac82c558f92e9faf3797f0b70c156113816061423936f90d47004b9d77ef761d5adb9ddd2828e77d18aa69867768a8b21d8b7209660f5362ac27adfbb2337c31
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'cocoapods-nexus'
7
- spec.version = "0.0.4"
7
+ spec.version = "0.0.5"
8
8
  spec.authors = ['mrdaios']
9
9
  spec.email = ['mrdaios@gmail.com']
10
10
  spec.description = 'a cocoapods plugin for nexus.'
@@ -5,7 +5,7 @@ module Pod
5
5
  class Command
6
6
  class Nexus
7
7
  class List < Nexus
8
- self.summary = 'Add a nexus repo.'
8
+ self.summary = 'List a nexus repo.'
9
9
 
10
10
  self.description = <<-DESC
11
11
  添加一个nexus的repo
@@ -39,7 +39,7 @@ module Pod
39
39
  # 暂时这样处理
40
40
  spec_version = query.requirement.requirements.last.last.to_s
41
41
  artifacte = nexus_find_artifacte(spec_name: query.root_name, spec_version: spec_version)
42
- if artifacte
42
+ unless artifacte.empty?
43
43
  download_url = parse_artifacte_asset_url(artifacte, 'podspec')
44
44
  if download_url
45
45
  target_path = "#{@repo}/#{query.root_name}/#{spec_version}"
@@ -92,7 +92,9 @@ module Pod
92
92
 
93
93
  def nexus_find_artifacte(spec_name:, spec_version:)
94
94
  artifactes = nexus_api.search_maven_component(artifact_id: spec_name)
95
- artifacte = artifactes.select { |artifacte| artifacte['version'].start_with?(spec_version) }.sort_by { |artifacte| Versionomy.parse(artifacte['version'])}.last
95
+ # artifacte = artifactes.select { |artifacte| artifacte['version'].start_with?(spec_version) }.sort_by { |artifacte| Versionomy.parse(artifacte['version'])}.last
96
+ # 暂时只支持查询指定版本
97
+ artifacte = artifactes.select { |artifacte| artifacte['version'] == spec_version }.last
96
98
  artifacte
97
99
  end
98
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-nexus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrdaios
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-05 00:00:00.000000000 Z
11
+ date: 2020-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods