tessitura_rest 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessitura_rest.rb +1 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/session.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4b2438225d821830e73b627a95e93e57808394c2906e2135fdd6da908fabc08
|
4
|
+
data.tar.gz: 46bf85bb9c62f48da5a0246ae9b596d7b41641d07a357a5c7d167dbac7756caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b710d701646017ecf1f8484cb8ec62a073a810562be94f6f226962c64475f04ae40d4466b00380532555ae2929057a5ecfae4e61e25e7885fe81e048f01ef025
|
7
|
+
data.tar.gz: 136b1529754599f695ac43068bce8bb4cb5dcba14438a3bae6f02b0ee8d79656efc844768b2e8d3222f309c109686d16f46a6b951a3ff2740df15872ecce7325
|
data/lib/tessitura_rest.rb
CHANGED
@@ -38,8 +38,7 @@ class TessituraRest
|
|
38
38
|
def initialize(options={})
|
39
39
|
@auth = { username: ENV['TESSITURA_USERNAME'],
|
40
40
|
password: ENV['TESSITURA_PASSWORD'] }
|
41
|
-
@headers = { '
|
42
|
-
'Accept': 'application/json' }
|
41
|
+
@headers = { 'Accept': 'application/json' }
|
43
42
|
end
|
44
43
|
|
45
44
|
def base_api_endpoint(end_point)
|
@@ -6,14 +6,14 @@ module Session
|
|
6
6
|
JSON.parse(response.body)
|
7
7
|
end
|
8
8
|
|
9
|
-
def create_session(ip, options={})
|
9
|
+
def create_session(ip, org, options={})
|
10
10
|
parameters =
|
11
11
|
{
|
12
|
-
|
13
|
-
|
12
|
+
'IpAddress': ip,
|
13
|
+
'Organization': org
|
14
14
|
}
|
15
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
16
|
-
|
15
|
+
options.merge!(basic_auth: @auth, headers: @headers, body: parameters)
|
16
|
+
binding.pry
|
17
17
|
response = self.class.post(base_api_endpoint('Web/Session'), options)
|
18
18
|
JSON.parse(response.body)
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessitura_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|