exprc 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/exprc +3 -3
- data/exprc.gemspec +1 -1
- metadata +1 -1
data/bin/exprc
CHANGED
@@ -45,7 +45,7 @@ ARGV.options do |o|
|
|
45
45
|
|
46
46
|
case action
|
47
47
|
when "version"
|
48
|
-
puts("0.0.
|
48
|
+
puts("0.0.4")
|
49
49
|
when "list"
|
50
50
|
begin
|
51
51
|
names = JSON.parse(RestClient.get("#{exprd_api_url}/metrics"))
|
@@ -84,7 +84,7 @@ ARGV.options do |o|
|
|
84
84
|
"type" => type,
|
85
85
|
"window" => window,
|
86
86
|
"delay" => delay,
|
87
|
-
"predicate" => JSON.parse(predicate),
|
87
|
+
"predicate" => (predicate && JSON.parse(predicate)),
|
88
88
|
"value" => value,
|
89
89
|
"key" => key,
|
90
90
|
"divisor" => divisor,
|
@@ -108,7 +108,7 @@ ARGV.options do |o|
|
|
108
108
|
"type" => type,
|
109
109
|
"window" => window,
|
110
110
|
"delay" => delay,
|
111
|
-
"predicate" => JSON.parse(predicate),
|
111
|
+
"predicate" => (predicate && JSON.parse(predicate)),
|
112
112
|
"value" => value,
|
113
113
|
"key" => key,
|
114
114
|
"divisor" => divisor,
|
data/exprc.gemspec
CHANGED