exprc 0.0.7 → 0.0.8

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
@@ -14,25 +14,25 @@ ARGV.options do |o|
14
14
  name = nil
15
15
  type = nil
16
16
  window = nil
17
- frequency = nil
18
17
  predicate = nil
19
18
  predicate2 = nil
20
19
  value = nil
21
20
  key = nil
22
21
  divisor = nil
23
22
  percentile = nil
23
+ frequency = nil
24
24
 
25
25
  o.banner = "usage: exprc list|show|explain|test|create|destroy|version [options]"
26
26
  o.on("-n", "--name n", String, "name of metric") { |n| name = n }
27
27
  o.on("-t", "--type t", String, "type of metric") { |t| type = t }
28
28
  o.on("-w", "--window w", Integer, "window of metric in seconds") { |w| window = w }
29
- o.on("-f", "--frequency f", Integer, "frequency of metric emits in seconds") { |f| frequency = f }
30
29
  o.on("-p", "--predicate p", String, "predicate data in json") { |p| predicate = p }
31
30
  o.on("-r", "--predicate2 r", String, "second predicate data in json") { |r| predicate2 = r }
32
31
  o.on("-v", "--value v", String, "value key") { |v| value = v }
33
32
  o.on("-k", "--key k", String, "partitioning key") { |k| key = k }
34
33
  o.on("-i", "--divisor i", Float, "metric divisor") { |i| divisor = i }
35
34
  o.on("-l", "--percentile l", Integer, "percentile value") { |l| percentile = l }
35
+ o.on("-f", "--frequency f", Integer, "frequency of metric emits in seconds (default: 3)") { |f| frequency = f }
36
36
  o.on("-h", "--help", "display this help") { abort(o.to_s) }
37
37
  o.parse!
38
38
  action = ARGV.shift
@@ -58,7 +58,7 @@ ARGV.options do |o|
58
58
  begin
59
59
  case action
60
60
  when "version"
61
- puts("0.0.7")
61
+ puts("0.0.8")
62
62
  when "list"
63
63
  names = JSON.parse(RestClient.get("#{exprd_api_url}/metrics"))
64
64
  names.each do |name|
@@ -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.7"
12
+ gem.version = "0.0.8"
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.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: