authentise 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aef31bbee80882d5a0fb9cc9f8886618a6a1392
4
- data.tar.gz: 5ab1be6cb10ae50d499c3b36c016625a78933042
3
+ metadata.gz: 3b6afe61dda050f1f2f3c824094a955283fd65cb
4
+ data.tar.gz: e74ca3c9eb0e435355fb56ca74a251d5049b5044
5
5
  SHA512:
6
- metadata.gz: 76767cfbb943f34a0c6adff9360a520cc2038dddb4f2a245837735c32b3875a72f016be95dd4f1464d85a6e8b6a04f2f8a4fc16664f23f98b362b13e9717b263
7
- data.tar.gz: b00686d2645056043d11342547711b2de495d0e96f658de7b4d4d7d30a36091abcda194caddbce63e0f34995f7d8f6301a6aa4a258297b10a83e8f1c24cf2b73
6
+ metadata.gz: 1b987be80ec91669d0ee14907b4a0e6d0ce1c8b8ca42abd1238103ce7d57d3b026fcd526a8314ef9e0be39b5e32000387a9ea43a5f13169f259794e4a5c40dd3
7
+ data.tar.gz: 1bc534d3a936961dd3a245ea647d8767091b9cda000d27ebe6227cd019db29d34d18f2dd44bacb4fbd33c288bef9d1c86929a850f271a776b625c7481fcc7bf0
@@ -20,6 +20,7 @@ module Authentise
20
20
  print_value_currency: print_value_currency,
21
21
  partner_job_id: partner_job_id,
22
22
  }.to_json
23
+
23
24
  RestClient.post(url, body, rest_client_options) do |response, _, _|
24
25
  if response.code == 201
25
26
  { url: response.headers[:x_token_location] }
@@ -29,8 +30,6 @@ module Authentise
29
30
  end
30
31
  end
31
32
 
32
- private
33
-
34
33
  def rest_client_options
35
34
  {
36
35
  content_type: :json,
@@ -20,6 +20,7 @@ module Authentise
20
20
  def create_user(params)
21
21
  url = "https://users.authentise.com/users/"
22
22
  options = {
23
+ content_type: :json,
23
24
  accept: :json,
24
25
  open_timeout: 2,
25
26
  timeout: 2,
@@ -48,6 +49,7 @@ module Authentise
48
49
  def create_session(params)
49
50
  url = "https://users.authentise.com/sessions/"
50
51
  options = {
52
+ content_type: :json,
51
53
  accept: :json,
52
54
  open_timeout: 2,
53
55
  timeout: 2,
@@ -1,3 +1,3 @@
1
1
  module Authentise
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert