sirportly 1.0.1 → 1.0.2
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.
- data/lib/sirportly/request.rb +1 -0
- data/lib/sirportly.rb +2 -2
- metadata +2 -2
data/lib/sirportly/request.rb
CHANGED
@@ -26,6 +26,7 @@ module Sirportly
|
|
26
26
|
def make
|
27
27
|
uri = URI.parse([Sirportly.domain, "api/v1", @path].join('/'))
|
28
28
|
http_request = http_class.new(uri.request_uri)
|
29
|
+
http_request.initialize_http_header({"User-Agent" => "SirportlyRubyClient/#{Sirportly.version}"})
|
29
30
|
http_request.add_field("X-Auth-Token", Sirportly.token)
|
30
31
|
http_request.add_field("X-Auth-Secret", Sirportly.secret)
|
31
32
|
http_request.set_form_data(@data)
|
data/lib/sirportly.rb
CHANGED
@@ -12,7 +12,7 @@ module Sirportly
|
|
12
12
|
|
13
13
|
## Returns the current version number for the Sirportly API client.
|
14
14
|
def version
|
15
|
-
"1.0.
|
15
|
+
"1.0.2"
|
16
16
|
end
|
17
17
|
|
18
18
|
## Stores authentication details
|
@@ -24,7 +24,7 @@ module Sirportly
|
|
24
24
|
|
25
25
|
## Returns the domain which should be used to query the API
|
26
26
|
def domain
|
27
|
-
@domain ||= 'https://
|
27
|
+
@domain ||= 'https://api.sirportly.com'
|
28
28
|
end
|
29
29
|
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sirportly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-03 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: adam@atechmedia.com
|