grafana-rb 0.16.0 → 0.17.0

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: 70ddf2dd82729cc72261c84cc240faec0b1c5767
4
- data.tar.gz: 75fa610a07f3b3b43d4b96b5a6149d14f779de35
3
+ metadata.gz: 97ee4b71f1093f8df1f8f780a0c18db45843fdd0
4
+ data.tar.gz: ea170777a2eab5af4ccade42826218914ab2f85e
5
5
  SHA512:
6
- metadata.gz: a5a882c1ae0a9c787dc0adbe5b9fca99639f4811bd9ce9a3384889f4b2727794221ddc37064f2d649e1de693b206574a58aa25e5536a4363da24bfe6f54eaacc
7
- data.tar.gz: 6948e993ab8e8c50d97d396968ced26020eee861375a9674288dffccc5fd8620471efd388422daba9ddf10b49a77abe01ebdfffe415dee39bde3322177adf158
6
+ metadata.gz: 3af6932643551fe7019e6afe2dc4378c2bde2de33ecddb9a81d12285428ee509dd8b143a5c141939d4f60686e75546fb127e22e7795b920e0d3730520a89ebc9
7
+ data.tar.gz: bb1e7ab8827c51466afcd74c2e8701e79c74d30f60109793adfe5a034571e058d2cbd0f86585bb577878d3158c3d785390b18f10914393b009dbd49b162c240d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Grafana-rb 0.17.0 (April 13, 2017) ##
2
+
3
+ * Support protocol in `grafana_url`.
4
+
1
5
  ## Grafana-rb 0.16.0 (April 12, 2017) ##
2
6
 
3
7
  * Fix gem on ruby 2.1.5.
@@ -33,8 +33,9 @@ module GrafanaRb
33
33
  end
34
34
 
35
35
  def request(method, path, params = {})
36
- uri = URI("http://" + config["grafana_url"] + path)
36
+ uri = URI(config["grafana_url"] + path)
37
37
  http = Net::HTTP.new(uri.host, uri.port)
38
+ http.use_ssl = uri.scheme == "https"
38
39
  # http.set_debug_output $stderr
39
40
  if method == :get
40
41
  req = Net::HTTP::Get.new(uri)
@@ -78,7 +79,7 @@ module GrafanaRb
78
79
  puts ""
79
80
  puts "---"
80
81
  puts "tool_version: #{GrafanaRb::VERSION}"
81
- puts "grafana_url: monitoring.your-domain.com:3000 # required"
82
+ puts "grafana_url: http://monitoring.your-domain.com:3000 # required"
82
83
  puts "grafana_user: user # 'admin' if missed"
83
84
  puts "grafana_password: secret # 'admin' if missed"
84
85
  puts "require: [main.yml, dash*.yml] # optional, [*.yml] by default"
@@ -1,3 +1,3 @@
1
1
  module GrafanaRb
2
- VERSION = "0.16.0"
2
+ VERSION = "0.17.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grafana-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Vakhov