api-model 2.2.0 → 2.2.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/api-model.gemspec +1 -1
- data/lib/api_model/response.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c654a681f60c9b18571793a4c5602c384e37d560
|
4
|
+
data.tar.gz: acf3fe8a587beaef0d8f1467217e5ec7b1da2eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8f20cdbe624ba6d1157ca61d4ca272aebf643e31a6400c7e139afc991efc863dae88af9e80cd927f4f71f330d4403c40dd27116ee1f6e313b7e817a59525c4
|
7
|
+
data.tar.gz: 3a846d48c91a3252e3b7de09f7600113d8dccbec866f3c4a08fe01acd8d64d2b331a41dec6e1b54a3bd962a0ba561be8ad30cf494034cd0b11becc0223fb49e6
|
data/Gemfile.lock
CHANGED
data/api-model.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "api-model"
|
5
|
-
s.version = "2.2.
|
5
|
+
s.version = "2.2.1"
|
6
6
|
s.authors = ["Damien Timewell", "Erik Rothoff Andersson"]
|
7
7
|
s.email = ["mail@damientimewell.com", "erik.rothoff@gmail.com"]
|
8
8
|
s.licenses = ['MIT']
|
data/lib/api_model/response.rb
CHANGED
@@ -50,13 +50,14 @@ module ApiModel
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def response_cookies
|
53
|
+
return @cookies if @cookies.present?
|
53
54
|
jar = HTTP::CookieJar.new
|
54
55
|
|
55
56
|
http_response.api_call.headers_hash["Set-Cookie"].split(", ").each do |cookie|
|
56
57
|
jar.parse cookie, http_response.api_call.request.base_url
|
57
58
|
end
|
58
59
|
|
59
|
-
jar.cookies
|
60
|
+
@cookies = jar.cookies
|
60
61
|
end
|
61
62
|
|
62
63
|
# Define common methods which should never be called on this abstract class, and should always be
|