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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06c7cc2251d276257a1980b96926d02f2458a343842851f67a8d896f79cd5bfb
4
- data.tar.gz: c5076d27c153ead658379ad7b87d30848bd58bf4899be22401480bf4ba6070eb
3
+ metadata.gz: d4b2438225d821830e73b627a95e93e57808394c2906e2135fdd6da908fabc08
4
+ data.tar.gz: 46bf85bb9c62f48da5a0246ae9b596d7b41641d07a357a5c7d167dbac7756caf
5
5
  SHA512:
6
- metadata.gz: da0898ab130ac5b4693c511d1ac55bc90abf2d99f0f7a27c851b0db609f66b7a56f7be17b0460927c945dd8c7cfe8bd1c0fc89242aaa0d084cceb637ccdf5bae
7
- data.tar.gz: 816604666f9b22f563acdc3a23adc5048918c18e424c903b57bb52fa204f8bf3cdd0e66cbb3bc2f5d392b4ed61485976ebe2ae774358576f933d2da43da5d5fb
6
+ metadata.gz: b710d701646017ecf1f8484cb8ec62a073a810562be94f6f226962c64475f04ae40d4466b00380532555ae2929057a5ecfae4e61e25e7885fe81e048f01ef025
7
+ data.tar.gz: 136b1529754599f695ac43068bce8bb4cb5dcba14438a3bae6f02b0ee8d79656efc844768b2e8d3222f309c109686d16f46a6b951a3ff2740df15872ecce7325
@@ -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 = { 'Content-Type': 'application/json',
42
- 'Accept': 'application/json' }
41
+ @headers = { 'Accept': 'application/json' }
43
42
  end
44
43
 
45
44
  def base_api_endpoint(end_point)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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
- 'IpAddress': ip,
13
- 'Organization': 'Tessitura Web'
12
+ 'IpAddress': ip,
13
+ 'Organization': org
14
14
  }
15
- options.merge!(basic_auth: @auth, headers: @headers)
16
- options.merge!(:body => parameters)
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler