tessitura_rest 0.4.1 → 0.4.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.
- checksums.yaml +4 -4
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/session.rb +7 -7
- 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: c0de9ad860527a1041dca69c4956b1c9cbb14cc16d71775f8187d6addec96982
|
|
4
|
+
data.tar.gz: 6143a2856a8585592f6c99e6606282682040e9927398ad1bc8f88750420e6018
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9df9154e90ceea82b877f9f277601a51423391a3a20db1b4ed9494cb4bf736d903e359344767ceb7d5550fce0a4ff8443047b001f8b8486dd2f6ca0e66df6e0c
|
|
7
|
+
data.tar.gz: 3ce84bb40c58866a06eac1482ee850b225f042a5f9151d7a95c82f2afec891cce182e248e7ab53d41eca2969aa1c7227c4ae8f70a64b462c0d7aa756bd250496
|
|
@@ -6,14 +6,14 @@ module Session
|
|
|
6
6
|
JSON.parse(response.body)
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
def create_session(ip,
|
|
9
|
+
def create_session(ip, options={})
|
|
10
10
|
parameters =
|
|
11
11
|
{
|
|
12
12
|
'IpAddress': ip,
|
|
13
|
-
'Organization':
|
|
13
|
+
'Organization': 'Tessitura Web'
|
|
14
14
|
}
|
|
15
|
-
options.merge!(basic_auth: @auth, headers: @headers
|
|
16
|
-
|
|
15
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
|
16
|
+
options.merge!(body: parameters)
|
|
17
17
|
response = self.class.post(base_api_endpoint('Web/Session'), options)
|
|
18
18
|
JSON.parse(response.body)
|
|
19
19
|
end
|
|
@@ -27,7 +27,7 @@ module Session
|
|
|
27
27
|
def set_expiration(key, expiration, options={})
|
|
28
28
|
parameters =
|
|
29
29
|
{
|
|
30
|
-
|
|
30
|
+
'Expiration': expiration
|
|
31
31
|
}
|
|
32
32
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
33
33
|
options.merge!(:body => parameters)
|
|
@@ -43,7 +43,7 @@ module Session
|
|
|
43
43
|
def get_promotion(key, code, options={})
|
|
44
44
|
parameters =
|
|
45
45
|
{
|
|
46
|
-
|
|
46
|
+
'PromoCode': code
|
|
47
47
|
}
|
|
48
48
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
49
49
|
options.merge!(:body => parameters)
|
|
@@ -54,7 +54,7 @@ module Session
|
|
|
54
54
|
def get_promotion_code(key, code, options={})
|
|
55
55
|
parameters =
|
|
56
56
|
{
|
|
57
|
-
|
|
57
|
+
'PromoCodeString': code
|
|
58
58
|
}
|
|
59
59
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
60
60
|
options.merge!(:body => parameters)
|
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.2
|
|
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-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|