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 +4 -4
- data/lib/measures/transport/http.rb +3 -2
- data/lib/measures/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5613d17e26be7f1170a1bdaaea710266cf98a27
|
4
|
+
data.tar.gz: 312c63c5eacaaef4b597f4a6b63e849cd60ff756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/measures/version.rb
CHANGED
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.
|
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
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|