callr 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/callr.rb +5 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5398d8f6a0ed2b5c6901e0db2f2bab33e14d2d95
|
4
|
+
data.tar.gz: 6ef2ae702f7a37c9c94872d11a939daa1ffbea2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70562f9bee8ade7fa77a1022e0390996dbf3b70dec4fd850af26f21a90b50f723cdda42b12ef6007eb6e8763e4e9cef79af525d35e94a2696efc308cca735e03
|
7
|
+
data.tar.gz: 99642a6fdc67ceb99fdf2a3f5752d8d9a23a108c9222cfa78d92e0bd6fc353023d40c2e9f4a71c1b32f3e07e03f8a4a94d616ee5c952ee05bb7e3dccc12fd32a
|
data/lib/callr.rb
CHANGED
@@ -6,6 +6,8 @@ require 'net/https'
|
|
6
6
|
require 'uri'
|
7
7
|
require 'json'
|
8
8
|
|
9
|
+
SDK_VERSION = "1.1.1"
|
10
|
+
|
9
11
|
module CALLR
|
10
12
|
class Api
|
11
13
|
@login = nil
|
@@ -16,7 +18,7 @@ module CALLR
|
|
16
18
|
"Content-Type" => "application/json-rpc; charset=utf-8"
|
17
19
|
}
|
18
20
|
|
19
|
-
API_URL = "https://api.
|
21
|
+
API_URL = "https://api.callr.com/json-rpc/v1.1/"
|
20
22
|
|
21
23
|
###
|
22
24
|
# Initialization
|
@@ -71,6 +73,7 @@ module CALLR
|
|
71
73
|
|
72
74
|
req = Net::HTTP::Post.new(uri.request_uri, @headers)
|
73
75
|
req.basic_auth(@login, @password)
|
76
|
+
req.add_field('User-Agent', "sdk=RUBY; sdk-version=#{SDK_VERSION}; lang-version=#{RUBY_VERSION}; platform=#{RUBY_PLATFORM}")
|
74
77
|
|
75
78
|
begin
|
76
79
|
res = http.request(req, json)
|
@@ -152,4 +155,4 @@ module CALLR
|
|
152
155
|
end
|
153
156
|
|
154
157
|
class CallrLocalException < CallrException; end
|
155
|
-
end
|
158
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: callr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Michael
|
7
|
+
- Michael JACQUIN
|
8
|
+
- Vincent MERCIER
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
@@ -51,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
52
|
version: '0'
|
52
53
|
requirements: []
|
53
54
|
rubyforge_project:
|
54
|
-
rubygems_version: 2.0.14
|
55
|
+
rubygems_version: 2.0.14.1
|
55
56
|
signing_key:
|
56
57
|
specification_version: 4
|
57
58
|
summary: CALLR SDK
|