measures 2.0.0 → 2.1.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: fb39435f2dc43dab2b8ed85647f464077e5df90e
4
- data.tar.gz: c91af23e4c666b86a9a5dc0df7e16b6abc5223a8
3
+ metadata.gz: c5613d17e26be7f1170a1bdaaea710266cf98a27
4
+ data.tar.gz: 312c63c5eacaaef4b597f4a6b63e849cd60ff756
5
5
  SHA512:
6
- metadata.gz: 26ba1b0f7d91602a51a5ea372a69abe97a6d3cdf84e666f2280fb85b902db39f94eb8ecc3775c495e5a9653a8f6e1c8b5fde937e0055f0f4e682edeeb2f80616
7
- data.tar.gz: 2f8718cdbd1f9496161148eaab0a6195e14103ec1369e5865995bbdb1c5882479282bec7fc01bdda95edd73a200d221bc2720d1363a72a4f0a4f43804b83d999
6
+ metadata.gz: f884c4aec3d1b21af32a6973e8c361b36fa868b5df0e35a58874f8d82d08cacaadb46386bac99ff42c6a847b737f0a327bd79d9e1c1411db7d64faa624cb5bf4
7
+ data.tar.gz: 84c068db58416c36f03c17db406e1cdc2e2b27ebc1cffcb34634aef24ccb51c7db3d47a13ccb310dc4ec7234f0a76b407c9dba00f298113e2d229da90a8e8404
@@ -5,9 +5,10 @@ require "uri"
5
5
  module Measures
6
6
  module Transport
7
7
  class HTTP
8
- def initialize(host, port)
8
+ def initialize(host, port = 80, url = "/")
9
9
  @host = host
10
10
  @port = port
11
+ @url = url
11
12
  end
12
13
 
13
14
  def send(data)
@@ -18,7 +19,7 @@ module Measures
18
19
  end
19
20
 
20
21
  client.post do |req|
21
- req.url "/"
22
+ req.url @url
22
23
  req.headers["Content-Type"] = "application/json"
23
24
  req.body = data
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Measures
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: measures
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Boeira
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-12 00:00:00.000000000 Z
12
+ date: 2016-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday