cocoapods-nexus 0.0.4 → 0.0.5
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/cocoapods-nexus.gemspec +1 -1
- data/lib/cocoapods-nexus/command/nexus/list.rb +1 -1
- data/lib/cocoapods-nexus/nexus_source.rb +4 -2
- 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: 8330342a1bfb924159fd14f64c815a82244bb3d127ea04fca63c221cbc48c06b
|
|
4
|
+
data.tar.gz: 83dadc37dd09a79bcc5fa428dec201b5626949eba412dbbf4c62fefc18c53d8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9ebc809664b18f2a02d5d05df55933e5e5e0d8056ef4efd5bc442549a1b3cc981de187df08c6a7654feaea3b15527249c9c959b27c6e9dd32e088743201fec6
|
|
7
|
+
data.tar.gz: ac82c558f92e9faf3797f0b70c156113816061423936f90d47004b9d77ef761d5adb9ddd2828e77d18aa69867768a8b21d8b7209660f5362ac27adfbb2337c31
|
data/cocoapods-nexus.gemspec
CHANGED
|
@@ -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.
|
|
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.'
|
|
@@ -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
|
-
|
|
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
|
+
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-
|
|
11
|
+
date: 2020-09-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocoapods
|