mq-tail 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/bin/mqtail CHANGED
@@ -38,7 +38,7 @@ Main {
38
38
  }
39
39
 
40
40
  option('throttle', 't'){
41
- description 'Throttles the number of messages shown per second. Defaults to 1.'
41
+ description 'Throttles the number of messages shown per second. Defaults to 100.'
42
42
  argument :optional
43
43
  cast :int
44
44
  defaults 100
@@ -136,9 +136,9 @@ Main {
136
136
  end
137
137
  end
138
138
 
139
- # Takes a key path (each key seperated by a space), and returns the corresponding value in the hash
139
+ # Takes a key path (each key seperated by a period), and returns the corresponding value in the hash
140
140
  def get_value(path, hash)
141
- path.split(' ').each do |key|
141
+ path.split('.').each do |key|
142
142
  hash = hash[key]
143
143
  end
144
144
  raise if hash.nil?
data/config/mqtail.json CHANGED
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "keys": [
9
9
  "@source",
10
- "@fields appname",
11
- "@fields severity"
10
+ "@fields.appname",
11
+ "@fields.severity"
12
12
  ]
13
13
  }
data/mq-tail.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mq-tail"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lucas Hansen"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mq-tail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: