telerivet 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/telerivet.rb +4 -2
- 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: e007f7fdf619163a3b1d610beae5e36b69ba9909
|
4
|
+
data.tar.gz: a000f816faa4178b51db9da1ccf3aaec5894a184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 406bc716da9060357f419317d31553f0ae691cfaf1e20e69a09e91d9cf86f86bf2d93fc199c5a92803cef6df3dbc3fa38f89f597ecaec19330c144ffde49eafc
|
7
|
+
data.tar.gz: 301f2207986379871faae42ab3aeb7694cd27b38c36df049dfee1aba597cb9dcdc12fc64a919e0e36a1755b8e51ab0e22e4b473c22df225c6b2b8329b64eb62a
|
data/lib/telerivet.rb
CHANGED
@@ -56,14 +56,16 @@ class API
|
|
56
56
|
end
|
57
57
|
|
58
58
|
cls = get_request_class(method)
|
59
|
-
request = cls.new(uri)
|
59
|
+
request = cls.new(uri.request_uri)
|
60
60
|
|
61
61
|
request['User-Agent'] = "Telerivet Ruby Client/#{@@client_version} Ruby/#{RUBY_VERSION} OS/#{RUBY_PLATFORM}"
|
62
62
|
request.basic_auth(@api_key, "")
|
63
63
|
|
64
64
|
if has_post_data
|
65
65
|
request.set_content_type("application/json")
|
66
|
-
|
66
|
+
if params != nil
|
67
|
+
request.body = JSON.dump(params)
|
68
|
+
end
|
67
69
|
end
|
68
70
|
|
69
71
|
@num_requests += 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telerivet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Young
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby client library for Telerivet REST API
|
14
14
|
email: support@telerivet.com
|