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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 763e3b1f88736bd01458802295b72b701a55b6f5
4
- data.tar.gz: 7a4d73d333d054750f71f99ba5ee0692a5deac3d
3
+ metadata.gz: 2790f8f792dd66cc59f20e2498701bd6596fab29
4
+ data.tar.gz: cb3d3c3b3871a7d00f1a95f1607da0af90a177cf
5
5
  SHA512:
6
- metadata.gz: 21337c2b2f2b18d9d981d66cf1b0b8125dfaadee0860376b546e46fd9a3f5fbc84747b8176318429b934d8cc157fc54a270e335f03eee7a66cf1e65daf29ae5e
7
- data.tar.gz: 3de501d065779d73c4253ee831f38f98198eb22aefb518421bc09efaafc35063655bc232becda1eca80f4666035615623be94d9bc67735b5441c26a0a477f568
6
+ metadata.gz: 32585a97488c49e39877f7a58ac17fae49381905008a0560903493a72f247396856661bbcf832a28c04ce0e68627081378962ef2775ca8a1f4c8de97d724653e
7
+ data.tar.gz: 059d28611cc2e063e547085775019bcc5cbb0ed189fb4c551938332cf0b7173ba02db0522172fce5610d1f91cabcbe03f1510c0b478ac2a0bfd74556e998e490
@@ -1,3 +1,9 @@
1
+ ### 0.2.3 (2014/01/22)
2
+
3
+ Fixes:
4
+
5
+ * Fix datetime type format (thanks xcezx)
6
+
1
7
  ### 0.2.2 (2014/01/15)
2
8
 
3
9
  Enhancement:
data/README.md CHANGED
@@ -261,6 +261,7 @@ There is a [fluent-plugin-dummydata-producer](https://github.com/tagomoris/fluen
261
261
  ## ToDO
262
262
 
263
263
  1. write tests
264
+ 2. Add an option to send data to fluentd directly
264
265
 
265
266
  ## Contributing
266
267
 
@@ -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.sprintf(format) }
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
 
@@ -1,3 +1,3 @@
1
1
  module DummyLogGenerator
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor