luna-binary-uploader 0.1.23 → 0.1.24

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: 47fe909af5136d22d7c2642abc624ab081c03311aaa8ebad8424f352818bff50
4
- data.tar.gz: 54a0f17c4875ef1077c6f91969cb7b829cf39274058b1a629a57c32cd8aaeae5
3
+ metadata.gz: 116426b3ff192fe626ed285d524284bf5fad7a33c82ce59b3d43c4ce7204c62a
4
+ data.tar.gz: c07ff3d27936481b281771b1a4aa82dacef88a87384b78f04eb11cb6c8eeeb58
5
5
  SHA512:
6
- metadata.gz: 87c4dc963898cc01f4c3b4595e8a9d271455b424734185fdfce0ce60176d2580607c4b1278cdda081227a30e0c41ac2f1390d2d0e8fa4ce70f104127542ac57e
7
- data.tar.gz: cf8f7d9b27934a26dc3b69963829e6b542484f2a9675eee3e59a33574aec53dcbd1c19f5c279d27fa60716ec3b1a3f7b10530ef3ce219772b8b4df25f56bbecf
6
+ metadata.gz: 541c3bcbe9802971456300bff08f6818c0055234f3302132d3d61c2dfb50f40ec227e5b0e74a38b7f4a2b284189239985a995616f402aeb4d3dffb5787306369
7
+ data.tar.gz: 4de07acdddd8808404e866c54a7517de3c3761155f7dbbe9392fba2ec2698372c650bd5d29bcf51f1d56502d1e1ed22400f72e0d4e24a2c838ff2c9d6df3c65c
@@ -60,21 +60,16 @@ module Luna
60
60
  end
61
61
 
62
62
  def run_binary
63
- i = 0
64
63
  Common.instance.command("lbu install")
65
- while i < times
66
- Common.instance.command("xcodebuild clean -quiet -workspace #{workspace} -scheme #{scheme} -configuration Debug")
67
- t = DogTimer.new()
68
- t.start
69
- Common.instance.command("xcodebuild -workspace #{workspace} -scheme #{scheme} -configuration Debug")
70
- t.end
71
- binary_time_arr << t
72
- i = i + 1
73
- end
64
+ run_project(binary_time_arr)
74
65
  end
75
66
 
76
67
  def run_no_binary
77
68
  Common.instance.command("lbu install n")
69
+ run_project(normal_time_arr)
70
+ end
71
+
72
+ def run_project(arr)
78
73
  i = 0
79
74
  while i < times
80
75
  Common.instance.command("xcodebuild clean -quiet -workspace #{workspace} -scheme #{scheme} -configuration Debug")
@@ -82,30 +77,26 @@ module Luna
82
77
  t.start
83
78
  Common.instance.command("xcodebuild -workspace #{workspace} -scheme #{scheme} -configuration Debug")
84
79
  t.end
85
- normal_time_arr << t
80
+ arr << t
86
81
  i = i + 1
87
82
  end
88
83
  end
89
84
 
90
85
 
91
86
  def print
92
- i = 0
93
- sum_time = 0
94
- normal_time_arr.each { |item|
95
- item.print
96
- sum_time += item.delta
97
- i += 1
98
- }
87
+ print_time_arr(normal_time_arr, "normal average time:")
88
+ print_time_arr(binary_time_arr, "binary average time:")
89
+ end
99
90
 
100
- puts "normal average time: #{sum_time/i}" if sum_time > 0
91
+ def print_time_arr(time_arr, attention)
101
92
  i = 0
102
93
  sum_time = 0
103
- binary_time_arr.each { |item|
94
+ time_arr.each { |item|
104
95
  item.print
105
96
  sum_time += item.delta
106
97
  i += 1
107
98
  }
108
- puts "binary average time: #{sum_time/i}" if sum_time > 0
99
+ puts "#{attention} #{sum_time/i}" if sum_time > 0
109
100
  end
110
101
  end
111
102
 
@@ -29,15 +29,20 @@ module Luna
29
29
 
30
30
  end
31
31
  else
32
- failList << "已存在name: #{k}"
32
+ failList << "已存在name: #{k} version #{v} 的framework"
33
33
  end
34
34
  }
35
35
  puts "-=-=-=-=-=-=-=-=framework制作中-=-=-=-=-=-=-=-=-=-=".yellow
36
36
  successList.each { |item|
37
- puts "#{item} 制作中".yellow
37
+ puts "#{item.podspecName} 制作中".yellow
38
38
  item.upload
39
39
  }
40
40
 
41
+ puts "-=-=-=-=-=-=-=-=更新成功名单-=-=-=-=-=-=-=-=-=-=".yellow
42
+ successList.each { |item|
43
+ puts "#{item.podspecName}".yellow
44
+ }
45
+
41
46
  puts "-=-=-=-=-=-=-=-=update 失败名单-=-=-=-=-=-=-=-=-=-=".yellow if failList.length > 0
42
47
  failList.each {|item|
43
48
  puts item.red
@@ -1,7 +1,7 @@
1
1
  module Luna
2
2
  module Binary
3
3
  module Uploader
4
- VERSION = "0.1.23"
4
+ VERSION = "0.1.24"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luna-binary-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - 车德超
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake