mq-tail 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/mqtail +3 -3
- data/config/mqtail.json +2 -2
- data/mq-tail.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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
|
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
|
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('
|
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
data/mq-tail.gemspec
CHANGED