kapacitor-ruby 0.0.8 → 0.0.9

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: b4a827c3d35b876031f859fc3f4c63d92f206b52
4
- data.tar.gz: 42a48f344172b64698d2dba66fd904904a70b6ef
3
+ metadata.gz: 8236b9b121f8ffa358cb5aa30a1f33d8cb4909dd
4
+ data.tar.gz: a85f700fd1cc07c3bdcda07715b0938e26d913bd
5
5
  SHA512:
6
- metadata.gz: d2f7791aa7238868888e1324d618409451af8c32f5de39b943e6dbbf6c132472649338c7d366221f6cedd77714dcf56609685e034fb9256267f340c861b97096
7
- data.tar.gz: f20fe970cce5c7d481222b90a66169b55aa8622a3390b24b7970e50f68ee0b9fdb11111e0c2a8d3b17d7daa60978dac87c1dec34ebf33632387962a0f2031491
6
+ metadata.gz: 18d6cc4f3f81810a9f526979f17c9b8f8eb5eeaf0d7b70dd0dbb9aa59235e71ac0a02126aa16e3d03194b71ef708856eea817cfcfa632b00f7e57b6b3c0a1558
7
+ data.tar.gz: a1978cba7d9054490e8af5a16df91b7f2bd8595933696b54db0b116da94816493c1c931f24410e0c94d8226e5ccc1ddcbbffb8fd992e15e24734956252bc5914
@@ -12,8 +12,8 @@ module Kapacitor
12
12
  attr_reader :uri, :http
13
13
 
14
14
  def initialize(opts = {})
15
- raise ArgumentError, "Kapacitor host is required" unless opts['host']
16
- raise ArgumentError, "Kapacitor API version is required" unless opts['version']
15
+ host = opts['host'] || 'localhost'
16
+ version = opts['version'] || 'v1'
17
17
 
18
18
  @uri = URI.parse("http://#{opts['host']}/kapacitor/#{opts['version']}")
19
19
  @http = Net::HTTP.new(@uri.host, @uri.port)
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  module Kapacitor
8
- VERSION = "0.0.8"
8
+ VERSION = "0.0.9"
9
9
 
10
10
  def self.version
11
11
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapacitor-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti