leisureking 0.1.3 → 0.1.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: 499f618e750d46d238e01fa0c21a0bd85d53b463d93c14c837c3e529422c8ee0
4
- data.tar.gz: ba477bf14b46fa1b3f9e6c164a3bb82a17f4f0a688b03f8d069ce1b78993d3af
3
+ metadata.gz: f354edafbc77108b4fd108e6ea5e24b26e3abfd0bb03de12e2c4c9b16375e5d3
4
+ data.tar.gz: 3a36bd0006c9128ca12b574d8e1d6c1ddedbb14d925c31d820357ab7b677de5b
5
5
  SHA512:
6
- metadata.gz: 190eddb9a556151c5c3c5852dfa0882d6e27864b0d7d75823414931b6cf2a49307dba95c5a352c4ef0d7d9787029e3f0c81bc20266de401e1a5762540f2ed4e2
7
- data.tar.gz: 1fe3cb21fe62f02222e7b100df978ce914d10df39abee714d5ef0247b711c7cac6ea09f71d734fef9b0fd218a675f258859f5089ce20a5aed42d160a9c9a10bc
6
+ metadata.gz: 97ccdea074f8cce4b9f71e0551a7bb9d0c2eeeaa6bfcf4506aef42b4e6f90f15dcfd82330a04960eab048a91499183a85241e2eef9656e1564381a8c4fc90a5f
7
+ data.tar.gz: a8c1d362fff4cc0f89034b91322fed10b4afa1b9963c4b849e02166b8f86f68e1a5cb226d453f84175069d6e62375b949eea450f49b8e854a3c91c2302d7f650
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- leisureking (0.1.0)
4
+ leisureking (0.1.4)
5
5
  jwt
6
6
  rest-client
7
7
 
@@ -30,7 +30,7 @@ module LeisureKing::API
30
30
  end
31
31
 
32
32
  begin
33
- result = RestClient.post(url, body, headers) do |response, request, res, &block|
33
+ result = RestClient.post(url, body.to_json, headers) do |response, request, res, &block|
34
34
  if [301, 302, 307].include? response.code
35
35
  redirected_url = response.headers[:location]
36
36
  if LeisureKing::Config.verbose
@@ -40,7 +40,9 @@ module LeisureKing::API
40
40
  end
41
41
  RestClient.post(redirected_url, body.to_json, headers)
42
42
  else
43
- response.return!(request, res, &block)
43
+ # puts "Response: #{response}"
44
+ # response.return!(request, res, &block)
45
+ response.return!
44
46
  end
45
47
  end
46
48
  rescue RestClient::Unauthorized, RestClient::Forbidden => err
@@ -20,7 +20,7 @@ module ::LeisureKing::Config
20
20
  @defaults = {
21
21
  :@api_key => nil,
22
22
  :@api_secret => nil,
23
- :@verbose => false,
23
+ :@verbose => true,
24
24
  :@environment => :test,
25
25
  :@api_base_url => 'https://api.leisureking.eu',
26
26
  :@client_email => '',
@@ -1,3 +1,3 @@
1
1
  module LeisureKing
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leisureking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henk Meijer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client