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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/leisureking/api.rb +4 -2
- data/lib/leisureking/config.rb +1 -1
- data/lib/leisureking/version.rb +1 -1
- 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: f354edafbc77108b4fd108e6ea5e24b26e3abfd0bb03de12e2c4c9b16375e5d3
|
4
|
+
data.tar.gz: 3a36bd0006c9128ca12b574d8e1d6c1ddedbb14d925c31d820357ab7b677de5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97ccdea074f8cce4b9f71e0551a7bb9d0c2eeeaa6bfcf4506aef42b4e6f90f15dcfd82330a04960eab048a91499183a85241e2eef9656e1564381a8c4fc90a5f
|
7
|
+
data.tar.gz: a8c1d362fff4cc0f89034b91322fed10b4afa1b9963c4b849e02166b8f86f68e1a5cb226d453f84175069d6e62375b949eea450f49b8e854a3c91c2302d7f650
|
data/Gemfile.lock
CHANGED
data/lib/leisureking/api.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/leisureking/config.rb
CHANGED
data/lib/leisureking/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|