cocoapods-tdfire-binary 1.4.20 → 1.4.21
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb413f21f9b677cd8f724fff1878a23b6b30bfa
|
4
|
+
data.tar.gz: 36329d7f3358ade330e0d5591bbfb33fee462c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 366df69fa361229df1cff4497abb2c919fa925988afca1666d279523aa6daa206acdefc89347019a5e8974f556bc5e0f728b07c62b7cb862d17e38163b7efd1a
|
7
|
+
data.tar.gz: 67acc292ea8e78d58d4da92f2ec1aeb812f1ab94ddfda78fe92771bfb3fc27ec25f94114894d3f68413285088da2946520f418c84ab53db915282dbb7b0031ab
|
data/Gemfile.lock
CHANGED
@@ -68,7 +68,8 @@ module Pod
|
|
68
68
|
pod = JSON.parse(json_string, object_class: OpenStruct)
|
69
69
|
rescue JSON::ParserError => err
|
70
70
|
pod = OpenStruct.new
|
71
|
-
|
71
|
+
# 这里查询失败,后面 shell 就不会去下载了,也就不会抛错
|
72
|
+
UI.puts "获取 #{s.root.name} 二进制信息失败, 服务器返回 #{json_string}".red
|
72
73
|
end
|
73
74
|
versions = pod.versions || []
|
74
75
|
versions.include?(s.version.to_s)
|
@@ -23,14 +23,17 @@ module Pod
|
|
23
23
|
|
24
24
|
def run
|
25
25
|
result = Pod::Tdfire::BinaryUrlManager.list_binary
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
begin
|
27
|
+
pods = JSON.parse(result) unless result.nil?
|
28
|
+
pods ||= []
|
29
|
+
pods.sort.each do |pod, versions|
|
30
|
+
UI.puts " #{pod + " " + versions.last}\n"
|
31
|
+
end
|
32
|
+
UI.puts "\n#{pods.keys.count} pods were found"
|
33
|
+
rescue JSON::ParserError => err
|
34
|
+
UI.puts "查看二进制信息失败, 服务器返回 #{result}".red
|
31
35
|
end
|
32
36
|
|
33
|
-
UI.puts "\n#{pods.keys.count} pods were found"
|
34
37
|
end
|
35
38
|
end
|
36
39
|
end
|
@@ -29,16 +29,20 @@ module Pod
|
|
29
29
|
|
30
30
|
def run
|
31
31
|
result = Pod::Tdfire::BinaryUrlManager.search_binary(@name)
|
32
|
-
|
33
|
-
|
32
|
+
begin
|
33
|
+
pod = JSON.parse(result) unless result.nil?
|
34
|
+
pod ||= {'' => []}
|
34
35
|
|
35
|
-
|
36
|
-
|
36
|
+
name = pod['name'] || @name
|
37
|
+
versions = pod['versions'] || []
|
37
38
|
|
38
|
-
|
39
|
+
title = "-> #{name} (#{versions.last})".green
|
39
40
|
|
40
|
-
|
41
|
-
|
41
|
+
Pod::UI::title(title, '', 1) do
|
42
|
+
Pod::UI::labeled('Versions', versions.join(', '))
|
43
|
+
end
|
44
|
+
rescue JSON::ParserError => err
|
45
|
+
UI.puts "查看二进制信息失败, 服务器返回 #{result}".red
|
42
46
|
end
|
43
47
|
end
|
44
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-tdfire-binary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tripleCC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|