dummer 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,13 @@
1
+ ### 0.3.5 (2014/04/23)
2
+
3
+ Enhancements:
4
+
5
+ * Add `--log` option to `dummer`
6
+
7
+ Changes:
8
+
9
+ * Dummer log goes to STDOUT rather than STDERR as default
10
+
1
11
  ### 0.3.4 (2014/04/12)
2
12
 
3
13
  Enhancements:
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Dummer
2
2
 
3
- #### NOTE: `dummy_log_generator` was renamed to `dummer`
4
-
5
3
  Dummer is a set of tools to generate dummy log data for Fluentd benchmark.
6
4
 
7
5
  This gem includes three executable commands
@@ -314,7 +312,8 @@ Options:
314
312
 
315
313
  ## Relatives
316
314
 
317
- There is a [fluent-plugin-dummydata-producer](https://github.com/tagomoris/fluent-plugin-dummydata-producer), but I wanted to output dummy data to a log file, and I wanted a standalone tool.
315
+ There is a [fluent-plugin-dummydata-producer](https://github.com/tagomoris/fluent-plugin-dummydata-producer), but I wanted to output dummy data to a log file,
316
+ and I wanted a standalone separated tool to do benchmark.
318
317
 
319
318
  ## Related Articles
320
319
 
@@ -23,6 +23,7 @@ module Dummer
23
23
  # options for serverengine
24
24
  option :daemonize, :aliases => ["-d"], :type => :boolean, :desc => 'Daemonize. Stop with `dummer stop`'
25
25
  option :workers, :aliases => ["-w"], :type => :numeric, :desc => 'Number of parallels'
26
+ option :log, :aliases => ["-l"], :type => :string, :desc => 'Dummer Log File'
26
27
  option :worker_type, :type => :string, :default => 'process'
27
28
  def start
28
29
  @options = @options.dup # avoid frozen
@@ -40,6 +41,7 @@ module Dummer
40
41
  @options[:setting] = dsl.setting
41
42
  # options for serverengine
42
43
  @options[:workers] ||= dsl.setting.workers
44
+ @options[:log] ||= dsl.setting.log
43
45
 
44
46
  opts = @options.symbolize_keys.except(:config)
45
47
  se = ServerEngine.create(nil, Dummer::Worker, opts)
@@ -1,6 +1,6 @@
1
1
  module Dummer
2
2
  class Setting
3
- attr_accessor :rate, :output, :labeled, :label_delimiter, :delimiter, :fields, :workers, :message, :input
3
+ attr_accessor :rate, :output, :labeled, :label_delimiter, :delimiter, :fields, :workers, :message, :input, :log
4
4
  attr_accessor :host, :port, :tag
5
5
 
6
6
  def initialize
@@ -14,6 +14,7 @@ module Dummer
14
14
  @tag = {type: :string, value: "dummer"}
15
15
  @fields = nil
16
16
  @workers = 1
17
+ @log = '-'
17
18
  @message = "time:2013-11-25 00:23:52 +0900\tlevel:ERROR\tmethod:POST\turi:/api/v1/people\treqtime:3.1983877060667103\n"
18
19
  @input = nil
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Dummer
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-11 00:00:00.000000000 Z
12
+ date: 2014-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: 361854449
194
+ hash: -916554641
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  none: false
197
197
  requirements:
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  segments:
202
202
  - 0
203
- hash: 361854449
203
+ hash: -916554641
204
204
  requirements: []
205
205
  rubyforge_project:
206
206
  rubygems_version: 1.8.23