growthforecast-client 0.82.1 → 0.82.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 148a2f0792e825f45d2fd455208d21eff0fcb406
4
- data.tar.gz: a2edd60c2e63cbcef3052400a2de88511ba81a31
3
+ metadata.gz: 8bfa0e7cb7a91a12649f2b549d6bd5c1e8c0faa5
4
+ data.tar.gz: ca85e924dd369e2c51d1fca90da58eef4ea433f2
5
5
  SHA512:
6
- metadata.gz: 50f2f7bdb5ba1b8e414626162788af7c28cec322a421f79614f4c5ca3a02ecb15991820238df277558ff91ff29f10fe0f7a29c3614887511016609652b03ea64
7
- data.tar.gz: e145c5e28616bf9471403b22adcafd972d733c2469224b386e6f049d9e95438869c0be101aaeec6a717a208834fcb54f4075cfb774f43217b99a562e7bdd9aa4
6
+ metadata.gz: 079df0f839115329544636b9d34b5d8c99f7987a5a557d52ab47168f55839fd4e430b02bea4d57e2ef2c9953b676b605e15d5f42f53633e12b2209949d91b89a
7
+ data.tar.gz: 3207f1fbfd37a30a2f43a35b66edec8b3f3a94dd31d1909af76c1ddd96e338a187c5e33a700cd94c08e02af9c1d233a280a0895741adf2d482cb6320dbd91c1e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.82.2 (2014/03/26)
2
+
3
+ Enhancement:
4
+
5
+ - Add `vrule` command
6
+
1
7
  # 0.82.1 (2014/03/26)
2
8
 
3
9
  Changes:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.82.1
1
+ 0.82.2
@@ -78,6 +78,18 @@ class GrowthForecast::CLI < Thor
78
78
  setup_complex(from_graphs, to_complex, graphs)
79
79
  end
80
80
 
81
+ desc 'vrule <json> <api_url>', 'create a vertical line'
82
+ long_desc <<-LONGDESC
83
+ Create a vertical line
84
+
85
+ ex) growthforecast-client vrule '{"dashes":"2,10"}' http://{hostname}:{port}/vrule/api[/{service_name}[/{section_name}[/{graph_name}]]]
86
+ LONGDESC
87
+ def vrule(json, url)
88
+ base_uri, service_name, section_name, graph_name = split_url(url)
89
+ @client = client(base_uri)
90
+ puts @client.post_vrule(service_name, section_name, graph_name, JSON.parse(json))
91
+ end
92
+
81
93
  no_tasks do
82
94
  def delete_graphs(graphs, graph_names = nil, section_names = nil)
83
95
  graphs.each do |graph|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growthforecast-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.1
4
+ version: 0.82.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo