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 +4 -4
- data/lib/luna/binary/benchmark.rb +12 -21
- data/lib/luna/binary/update.rb +7 -2
- data/lib/luna/binary/uploader/version.rb +1 -1
- 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: 116426b3ff192fe626ed285d524284bf5fad7a33c82ce59b3d43c4ce7204c62a
|
4
|
+
data.tar.gz: c07ff3d27936481b281771b1a4aa82dacef88a87384b78f04eb11cb6c8eeeb58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
80
|
+
arr << t
|
86
81
|
i = i + 1
|
87
82
|
end
|
88
83
|
end
|
89
84
|
|
90
85
|
|
91
86
|
def print
|
92
|
-
|
93
|
-
|
94
|
-
|
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
|
-
|
91
|
+
def print_time_arr(time_arr, attention)
|
101
92
|
i = 0
|
102
93
|
sum_time = 0
|
103
|
-
|
94
|
+
time_arr.each { |item|
|
104
95
|
item.print
|
105
96
|
sum_time += item.delta
|
106
97
|
i += 1
|
107
98
|
}
|
108
|
-
puts "
|
99
|
+
puts "#{attention} #{sum_time/i}" if sum_time > 0
|
109
100
|
end
|
110
101
|
end
|
111
102
|
|
data/lib/luna/binary/update.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|