dummer 0.4.0 → 0.4.1

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
- SHA1:
3
- metadata.gz: 36f913a41901d9441ff565d14ef17c5c122d8a3f
4
- data.tar.gz: 50a3dc5517b2c40095f5e36da51ef1ad8ae83530
2
+ SHA256:
3
+ metadata.gz: 25f03555f6f64f5d58b534ec7f5c5720197492aa510da6a87605278c53cc9943
4
+ data.tar.gz: da74b423d01d007747f2c3bc34803da43fddf22f96d92f48cd9bc308eaaaab53
5
5
  SHA512:
6
- metadata.gz: 052bc0589e628b86cd5dbf00a895948a39c9b9cb1dce20c2e9957dec65ceb9d6825c9d01d12573162cf9a8697fc7d0e312ceaa39ed1594bd24006a4082bc3e90
7
- data.tar.gz: 0164d36f4d12507bf955248dc63941ce518446d4dd19239494cf206159186c6174836aa2ef4b24ddf1a3eb0099a95b96332d59b044fac110d2fce51c0f6c6072
6
+ metadata.gz: a9aa981206c29924050bfe39bdbeed82d9de092e3deed64b76fa2007de808ac4e9010796e97c7f176b029b7b78fcc9460498f4b7e0b44f5571d7ff4c26cdb0d0
7
+ data.tar.gz: ee89bbd84d6e52174dff8b876974aa827dddf54d364c2d49ecef915f34d0898fb8c1a4af2d43d55efab450ebf34f8493593b7ec7879f84a381ed9b22a7670261
@@ -1,3 +1,9 @@
1
+ ### 0.4.1 (2019/11/13)
2
+
3
+ Fixes:
4
+
5
+ * Support running without Bundler (thanks to kou)
6
+
1
7
  ### 0.4.0 (2015/08/08)
2
8
 
3
9
  Enhancements:
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Dummer
2
2
 
3
- Dummer is a set of tools to generate dummy log data for Fluentd benchmark.
3
+ Dummer is a set of tools to generate dummy log data. I made this for Fluentd benchmark.
4
4
 
5
5
  This gem includes three executable commands
6
6
 
@@ -84,7 +84,7 @@ configure 'sample' do
84
84
  host "localhost" # define `host` and `port` instead of `output`
85
85
  port 24224
86
86
  rate 500
87
- tag type: string, any: %w[raw.syslog raw.message raw.nginx] # configure tag
87
+ tag type: :string, any: %w[raw.syslog raw.message raw.nginx] # configure tag
88
88
  field :id, type: :integer, countup: true, format: "%04d"
89
89
  field :level, type: :string, any: %w[DEBUG INFO WARN ERROR]
90
90
  field :method, type: :string, any: %w[GET POST PUT]
@@ -251,7 +251,7 @@ You can specify following data types to your `tag` and `field` parameters:
251
251
 
252
252
  ## dummer\_simple
253
253
 
254
- I created a simple version of `dummer` since it can not achieve the maximum system I/O throughputs because of its rich features.
254
+ I created a simple version of `dummer` since `dummer` could not achieve the maximum system I/O throughputs because of its rich features.
255
255
  This simple version, `dummer_simple` could achieve the system I/O limit in my environment.
256
256
 
257
257
  Sorry, but this simple script cannot post data to fluentd process, supports only writing to a file.
data/bin/dummer CHANGED
@@ -1,16 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'yohoushi' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
2
 
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load File.expand_path("../../lib/dummer/cli.rb", __FILE__)
3
+ require_relative "../lib/dummer/cli"
@@ -10,11 +10,6 @@ module Dummer
10
10
  def self.record_proc(message)
11
11
  raise NotImplementedError
12
12
  end
13
-
14
- # fluent-logger
15
- def self.tag_proc(tag_opts)
16
- FieldMode.field_procs({"tag" => tag_opts})["tag"]
17
- end
18
13
  end
19
14
  end
20
15
  end
@@ -1,6 +1,7 @@
1
1
  module Dummer
2
2
  class Generator
3
3
  class FieldMode < AbstractMode
4
+ # file
4
5
  def self.message_proc(fields, labeled, delimiter, label_delimiter)
5
6
  format_proc = format_proc(labeled, delimiter, label_delimiter)
6
7
  record_proc = record_proc(fields)
@@ -11,6 +12,7 @@ module Dummer
11
12
  }
12
13
  end
13
14
 
15
+ # fluent-logger
14
16
  def self.record_proc(fields)
15
17
  field_procs = field_procs(fields)
16
18
 
@@ -27,6 +29,7 @@ module Dummer
27
29
  }
28
30
  end
29
31
 
32
+ # fluent-logger
30
33
  def self.tag_proc(tag_opts)
31
34
  proc = field_procs({"tag" => tag_opts})["tag"]
32
35
  prev = -1
@@ -1,3 +1,3 @@
1
1
  module Dummer
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sonots
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -186,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.2.2
189
+ rubygems_version: 3.0.3
191
190
  signing_key:
192
191
  specification_version: 4
193
192
  summary: Generates dummy log data for Fluentd benchmark