lumbersexual 0.3.15 → 0.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/exe/lumbersexual +1 -1
- data/lib/lumbersexual/plugin/latency.rb +5 -1
- data/lib/lumbersexual/version.rb +1 -1
- data/lumbersexual.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Njc5MWQyZGQwN2FlZjUwNWQ1NWVhMjY5NmRhYzdhMzFhMTBlZWNjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGQ1NGNkOTIxOTQ4YjhlZDMzNWY4OTE1NjhjNGIyY2U5NzU4MDA5Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE1MTlkMmZkMzk4YjZmYTI4NWQ2YjI3ZTI2NjM4N2JkYWI5NmFjYmFmZjMw
|
10
|
+
ZTk5YTIyODUzNDFiNDdmOGVlMjU5ZjdlN2EwZGY5MWFjOWI2OTQ2OTYxMzAy
|
11
|
+
NWM4ZmE4OTExNTBiNzYxYjgwMTdhNTUyOGFmZDU5ZTQ0OTc0OGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmMwMWQ2NDFkYjQxNWExNDBmMDBmZGNhMzhhMzJjZmI2ZGM2YTIxMGQ0OGRk
|
14
|
+
ZTVhNGY0NWExNDBjYjc4MmZhMjVhMWNmN2M3NTgxNWRhMDg4ZTE1OTJmZGVm
|
15
|
+
NTNhYWIyZGVlNGFiYTkzN2JjMjMxOGRhZTAyNWM4NzMxN2UwOTk=
|
data/exe/lumbersexual
CHANGED
@@ -19,7 +19,7 @@ options = Slop.parse do |o|
|
|
19
19
|
o.bool '-h', '--help', 'print this message'
|
20
20
|
o.integer '-i', '--interval', 'in latency mode, the interval in seconds to sleep between index queries (default 0.1)', default: 0.1
|
21
21
|
o.bool '-l', '--latency', 'run in latency rather than generation mode (default: no)', default: nil
|
22
|
-
o.bool '-L', '--log', 'in latency mode log elasticsearch output (default: no)', default:
|
22
|
+
o.bool '-L', '--log', 'in latency mode log elasticsearch output (default: no)', default: false
|
23
23
|
o.integer '-M', '--maxwords', 'maximum number of words per message (default: 20)', default: 20
|
24
24
|
o.integer '-m', '--minwords', 'minimum number of words per message (default: 3)', default: 3
|
25
25
|
o.array '-p', '--priorities', 'additional comma-seperated priorities', default: []
|
@@ -18,7 +18,11 @@ module Lumbersexual
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def perform
|
21
|
-
|
21
|
+
if @options[:log]
|
22
|
+
elastic = Elasticsearch::Client.new url: @options[:uri], logger: Logger.new(STDERR), log: @options[:log]
|
23
|
+
else
|
24
|
+
elastic = Elasticsearch::Client.new url: @options[:uri]
|
25
|
+
end
|
22
26
|
|
23
27
|
if @options[:all]
|
24
28
|
index_name = '_all'
|
data/lib/lumbersexual/version.rb
CHANGED
data/lumbersexual.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/sampointer/lumbersexual"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
spec.required_ruby_version = ">=
|
17
|
+
spec.required_ruby_version = ">= 1.9.3"
|
18
18
|
|
19
19
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
20
20
|
# delete this section to allow pushing this gem to any host.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lumbersexual
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pointer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
134
|
requirements:
|
135
135
|
- - ! '>='
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: 1.9.3
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|