exprc 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/exprc +3 -3
  2. data/exprc.gemspec +1 -1
  3. 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.3")
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
@@ -9,5 +9,5 @@ Gem::Specification.new do |gem|
9
9
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
10
10
  gem.name = "exprc"
11
11
  gem.require_paths = ["lib"]
12
- gem.version = "0.0.3"
12
+ gem.version = "0.0.4"
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exprc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: