actir 1.0.3 → 1.0.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: 5668a4b2e06c10f5c22c3c373f9e0dc643f61503
4
- data.tar.gz: 4d7324e5b64a929b6a7a9ee7a35b14733d4f030c
3
+ metadata.gz: 6bee56605ce4434f097728d26c6dde7b27a53710
4
+ data.tar.gz: 288b65f1fbb5fc2fbf1dcabf632be101073154e2
5
5
  SHA512:
6
- metadata.gz: ae691b3c59724f30e051d72ee487956ec14a3dd68735716f823b349e2bf03ed8ea5d62154472dd4db53513d5bc48978840f384160ddf05ec341d133b57f92192
7
- data.tar.gz: 8597c67d810c2074c077490a9c01e241d5364cbc2ab9f814dfd38c9c6e635c4edb9ea0c4aa125a4258575b3137e9e565c31b5e731ffe4a8b17b2ded9feaffe22
6
+ metadata.gz: ff3b96881e93341e5f74528f497eda357b0c715237eee1bdd87256e9cfa52e5b57857c7329a2d2630d0b7c109d09e8bbf6b93ecdb9516559095baddcc5fd715e
7
+ data.tar.gz: 3c2c0f3f8b7b62ab3d84741e824e36afc980bb1149068a6b1adb8ada76d5cf81cd35ca7e2025e76edd0176f203ec09766b27737e6879e53d42ed629c8a8e8912
data/lib/actir/config.rb CHANGED
@@ -145,9 +145,13 @@ module Actir
145
145
  month = $1
146
146
  day = $2
147
147
  #若果是1-9,则在前面加个0
148
- month = "0" + month if month.to_i <= 9 && month.to_i >= 1
149
- day = "0" + day if day.to_i <= 9 && day.to_i >= 1
150
- month + "-" + day
148
+ if month == "" and day == ""
149
+ return ""
150
+ else
151
+ month = "0" + month if month.to_i <= 9 && month.to_i >= 1
152
+ day = "0" + day if day.to_i <= 9 && day.to_i >= 1
153
+ month + "-" + day
154
+ end
151
155
  end
152
156
 
153
157
  # 多进程操作文件时加锁
data/lib/actir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.4.7
171
+ rubygems_version: 2.0.14
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Application Concurrence Test in Ruby.