arb-xmu-course 2.5.2 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/arb-xmu-course +3 -2
- data/lib/arb/xmu/course/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d9749a7ca5b3de907847ce8b2e51137ab9b84f
|
4
|
+
data.tar.gz: 81fce379eb920807337b6afd4149a56857e75e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af256a6e2b86a1793897591bace50c8aee2e683dc18f49e0773f3d71dd9a26d9b1e494bb44bb2a0d32219347acda87bf550ac8a00c33714e9b27c9fd9d849184
|
7
|
+
data.tar.gz: 76e683228d86d17d698e4e64ce8ab7f4f24ed6abee8fd1f4c9231eccd2ae9ecdb7d8d7888bbab6a72946cbe696c61c205f0290a3f71289327b58de26af2c3bd7
|
data/bin/arb-xmu-course
CHANGED
@@ -144,6 +144,7 @@ def create_attempt_thread(max_interval, client, course, xxlx, lcid, retry_count,
|
|
144
144
|
opened_thread_count=block.binding.local_variable_get(:opened_thread_count)
|
145
145
|
exit unless opened_thread_count > 0
|
146
146
|
block.binding.local_variable_set :opened_thread_count, opened_thread_count-1
|
147
|
+
rescue Interrupt
|
147
148
|
rescue Exception=>e
|
148
149
|
exit_with_error("未知原因导致程序运行出错,请联系作者。(#{e})")
|
149
150
|
end
|
@@ -268,7 +269,7 @@ begin
|
|
268
269
|
o.bool *%w{-c --clear}, '清除本地账户信息'
|
269
270
|
o.bool *%w{-r --reset}, '重置账户信息'
|
270
271
|
o.string *%w{-l --log},'记录到指定的日志文件'
|
271
|
-
o.integer *%w{-R --retry-count},'超时重连次数,默认无限次'
|
272
|
+
o.integer *%w{-R --retry-count},'超时重连次数,默认无限次',default: -1
|
272
273
|
|
273
274
|
#院选课程 xxlx=4
|
274
275
|
o.bool *%w{-s --school}, '院选选课模式'
|
@@ -295,7 +296,7 @@ end
|
|
295
296
|
#error
|
296
297
|
exit unless opts
|
297
298
|
$arb_logfile = opts[:log]
|
298
|
-
$arb_retry_count = opts[:'retry-count']
|
299
|
+
$arb_retry_count = opts[:'retry-count']
|
299
300
|
|
300
301
|
global_puts '参数解析完毕,连接服务器……'
|
301
302
|
|