tessitura_rest 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/login.rb +6 -0
- 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: 21e59b420a3c2259ad858f79c7224a4309892fdc63e23599c7f5f7d0b376629a
|
4
|
+
data.tar.gz: c8d812b49493cccca8d46a2178b5467baa45f9a20da7de043bd026b8ce656bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11c63f54d3a47b1ef68796c13e658413f36287ac3434b404ec7a4ddabb76c16b27b2d4c93b562b640873bad0d8bebc2e87cb7afdacb77b3d9a030ec0833aa746
|
7
|
+
data.tar.gz: ec9f8cedbabb6066a67ce0e11307706932c8cf9a95b8739a229cdfd95c184d733541f3de2258a6808cc4dad24e532b4acc0ae1ad62fd8282519c7a51f5e4dbf7
|
data/README.md
CHANGED
@@ -43,8 +43,8 @@ followed by the method and arguments you would like to use.
|
|
43
43
|
3. Create a .env file and set these values:
|
44
44
|
|
45
45
|
* TESSITURA_URL # the url to your Test/Staging TessituraRest REST instance
|
46
|
-
*
|
47
|
-
*
|
46
|
+
* TESSITURA_USERNAME # the username to authenticate to your TessituraRest REST instance
|
47
|
+
* TESSITURA_PASSWORD # the password to authenticate to your TessituraRest REST instance
|
48
48
|
* WEB_CART_TEXT # the ID to the pricing rule you have setup for Cart
|
49
49
|
* ORDER_CONFIRM_TEXT # the ID to the pricing rule you have setup for Order Confirmations
|
50
50
|
* SESSION_KEY # an existing session key in your TessituraRest instance
|
@@ -46,4 +46,10 @@ module Login
|
|
46
46
|
post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login/Token"), options)
|
47
47
|
post['IsLoggedIn']
|
48
48
|
end
|
49
|
+
|
50
|
+
def logout(session_key, options={})
|
51
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
52
|
+
options.merge!(:body => {}, :headers => {'Content-Type' => 'application/json'})
|
53
|
+
self.class.post(base_api_endpoint("/Web/Session/#{session_key}/Logout"), options)
|
54
|
+
end
|
49
55
|
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.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|