api-model 2.2.1 → 2.2.2
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/api-model.gemspec +1 -1
- data/lib/api_model/response.rb +4 -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: 98036ed122ea1f0d6abcc97dcf423ecec853dace
|
4
|
+
data.tar.gz: 2251640779097043065e416df0337773784480b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de2ab9fd9e1d0ffb7f45b0cdeb5bbc7934e724f800611a9d5cc8355d74272b0e93ef87ad68910b7ccde873f7a1343b4ba4a308960a81e30434e24ed51ce0f05
|
7
|
+
data.tar.gz: bc558bd49e817bd369091d4508e4754ef8d426be296af25c78bb729e6b3135543ef13bdd6a7f288b964d242d24a2adcb8a58b05d6bed2b7d4f096031ca9e9760
|
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.2"
|
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
@@ -53,7 +53,10 @@ module ApiModel
|
|
53
53
|
return @cookies if @cookies.present?
|
54
54
|
jar = HTTP::CookieJar.new
|
55
55
|
|
56
|
-
http_response.api_call.headers_hash["Set-Cookie"]
|
56
|
+
set_cookie = http_response.api_call.headers_hash["Set-Cookie"]
|
57
|
+
set_cookie = set_cookie.split(", ") unless set_cookie.is_a?(Array)
|
58
|
+
|
59
|
+
set_cookie.each do |cookie|
|
57
60
|
jar.parse cookie, http_response.api_call.request.base_url
|
58
61
|
end
|
59
62
|
|