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: bdca923cac22dd18ce66c6a8b11a1364568bde21
4
- data.tar.gz: 5f93452b62c14cce69fd576e0dca62835a132d87
3
+ metadata.gz: feb413f21f9b677cd8f724fff1878a23b6b30bfa
4
+ data.tar.gz: 36329d7f3358ade330e0d5591bbfb33fee462c79
5
5
  SHA512:
6
- metadata.gz: '0397ffd124fb46c004bec4196f165ead0585bc091dcddff200054cb5ab6e8371fdf9698a9aa088631ec5983bed51b510d585945f501e2fafefd8f25f02c9bc4a'
7
- data.tar.gz: 3a5ceb8e088ba1362373f217a088ca115a27221f25c57816377c4dac351a5ca2f70699bc4a7a12264545ecc3b54683fffdbd83f192adcf9c2624dc096db51fb7
6
+ metadata.gz: 366df69fa361229df1cff4497abb2c919fa925988afca1666d279523aa6daa206acdefc89347019a5e8974f556bc5e0f728b07c62b7cb862d17e38163b7efd1a
7
+ data.tar.gz: 67acc292ea8e78d58d4da92f2ec1aeb812f1ab94ddfda78fe92771bfb3fc27ec25f94114894d3f68413285088da2946520f418c84ab53db915282dbb7b0031ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-tdfire-binary (1.3.17)
4
+ cocoapods-tdfire-binary (1.4.21)
5
5
  cocoapods (~> 1.2)
6
6
  cocoapods-packager (~> 1.5.0)
7
7
 
@@ -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
- UI.message "获取 #{s.root.name} 二进制信息失败, 具体信息 #{err}".red
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
- pods = JSON.parse(result) unless result.nil?
27
- pods ||= []
28
-
29
- pods.sort.each do |pod, versions|
30
- UI.puts " #{pod + " " + versions.last}\n"
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
- pod = JSON.parse(result) unless result.nil?
33
- pod ||= {'' => []}
32
+ begin
33
+ pod = JSON.parse(result) unless result.nil?
34
+ pod ||= {'' => []}
34
35
 
35
- name = pod['name'] || @name
36
- versions = pod['versions'] || []
36
+ name = pod['name'] || @name
37
+ versions = pod['versions'] || []
37
38
 
38
- title = "-> #{name} (#{versions.last})".green
39
+ title = "-> #{name} (#{versions.last})".green
39
40
 
40
- Pod::UI::title(title, '', 1) do
41
- Pod::UI::labeled('Versions', versions.join(', '))
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfireBinary
2
- VERSION = "1.4.20"
2
+ VERSION = "1.4.21"
3
3
  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.20
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-06 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler