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 +4 -4
- data/lib/actir/config.rb +7 -3
- data/lib/actir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bee56605ce4434f097728d26c6dde7b27a53710
|
4
|
+
data.tar.gz: 288b65f1fbb5fc2fbf1dcabf632be101073154e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
149
|
-
|
150
|
-
|
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
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.
|
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.
|
171
|
+
rubygems_version: 2.0.14
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Application Concurrence Test in Ruby.
|