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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb37abf1bb056dd4421e68b12bfa0909266bd290
4
- data.tar.gz: e06362f40936397d553276c6ebec1e99227da654
3
+ metadata.gz: b2d9749a7ca5b3de907847ce8b2e51137ab9b84f
4
+ data.tar.gz: 81fce379eb920807337b6afd4149a56857e75e60
5
5
  SHA512:
6
- metadata.gz: ddc82e3358b30155e15bee11ab31b78a7d43fe94bce3da9666e936087228a037b36f58d0cc82efe86d436f18c8dd0dbde4c47631b82126c388660516282fbb17
7
- data.tar.gz: 4964bb636bd6ef35954254f6ac92344beaa189e9becf5a297510eb4be8eb52e3272738b65b4de71ddadfd11cbfcfd8a0dcc91572c43a6e95c6a136943c5c42a1
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'].to_i or -1
299
+ $arb_retry_count = opts[:'retry-count']
299
300
 
300
301
  global_puts '参数解析完毕,连接服务器……'
301
302
 
@@ -1,7 +1,7 @@
1
1
  module Arb
2
2
  module Xmu
3
3
  module Course
4
- VERSION = '2.5.2'
4
+ VERSION = '2.5.4'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arb-xmu-course
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - arybin