dummy_log_generator 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/lib/dummy_log_generator/generator.rb +3 -3
- data/lib/dummy_log_generator/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: 2790f8f792dd66cc59f20e2498701bd6596fab29
|
4
|
+
data.tar.gz: cb3d3c3b3871a7d00f1a95f1607da0af90a177cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32585a97488c49e39877f7a58ac17fae49381905008a0560903493a72f247396856661bbcf832a28c04ce0e68627081378962ef2775ca8a1f4c8de97d724653e
|
7
|
+
data.tar.gz: 059d28611cc2e063e547085775019bcc5cbb0ed189fb4c551938332cf0b7173ba02db0522172fce5610d1f91cabcbe03f1510c0b478ac2a0bfd74556e998e490
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -146,7 +146,7 @@ module DummyLogGenerator
|
|
146
146
|
|
147
147
|
def datetime(format: "%Y-%m-%d %H:%M:%S.%3N", random: false, value: nil)
|
148
148
|
if value
|
149
|
-
Proc.new { value.
|
149
|
+
Proc.new { value.strftime(format) }
|
150
150
|
elsif random
|
151
151
|
Proc.new {
|
152
152
|
y = rand(1970..2037);
|
@@ -156,10 +156,10 @@ module DummyLogGenerator
|
|
156
156
|
min = rand(0..59);
|
157
157
|
s = rand(0..59);
|
158
158
|
usec = rand(0..999999);
|
159
|
-
Time.local(y, m, d, h, min, s, usec)
|
159
|
+
Time.local(y, m, d, h, min, s, usec).strftime(format)
|
160
160
|
}
|
161
161
|
else
|
162
|
-
Proc.new { Time.now }
|
162
|
+
Proc.new { Time.now.strftime(format) }
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dummy_log_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sonots
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|