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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cbaf72940e9ccd90f84cd887fd200f058f7a92fccdedd4800512d2fe69ebf86
4
- data.tar.gz: b1a57a38160a6e2d423b149eb2c8deb05f64766166af533038808a7a831d44c2
3
+ metadata.gz: 21e59b420a3c2259ad858f79c7224a4309892fdc63e23599c7f5f7d0b376629a
4
+ data.tar.gz: c8d812b49493cccca8d46a2178b5467baa45f9a20da7de043bd026b8ce656bdd
5
5
  SHA512:
6
- metadata.gz: 6a23ec88b30f65cb35fea909d34a27ab9895c779c0b46a167213754e288f38c8ab68f2839e807f90313567c2cd773c4e9aa8dc6b31c66d9c1602fabe349ff591
7
- data.tar.gz: d5508d8c77df4e0fb115af396ed5984468551a71296343632961d873eb9938ed0bded0248cb433b48c946e0c3a2c918a9e0dccb6034e49465dcfb6cf4dc64bf4
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
- * USERNAME # the username to authenticate to your TessituraRest REST instance
47
- * PASSWORD # the password to authenticate to your TessituraRest REST instance
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
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
@@ -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.3
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-07 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler