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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c654a681f60c9b18571793a4c5602c384e37d560
4
- data.tar.gz: acf3fe8a587beaef0d8f1467217e5ec7b1da2eb1
3
+ metadata.gz: 98036ed122ea1f0d6abcc97dcf423ecec853dace
4
+ data.tar.gz: 2251640779097043065e416df0337773784480b8
5
5
  SHA512:
6
- metadata.gz: 2f8f20cdbe624ba6d1157ca61d4ca272aebf643e31a6400c7e139afc991efc863dae88af9e80cd927f4f71f330d4403c40dd27116ee1f6e313b7e817a59525c4
7
- data.tar.gz: 3a846d48c91a3252e3b7de09f7600113d8dccbec866f3c4a08fe01acd8d64d2b331a41dec6e1b54a3bd962a0ba561be8ad30cf494034cd0b11becc0223fb49e6
6
+ metadata.gz: 8de2ab9fd9e1d0ffb7f45b0cdeb5bbc7934e724f800611a9d5cc8355d74272b0e93ef87ad68910b7ccde873f7a1343b4ba4a308960a81e30434e24ed51ce0f05
7
+ data.tar.gz: bc558bd49e817bd369091d4508e4754ef8d426be296af25c78bb729e6b3135543ef13bdd6a7f288b964d242d24a2adcb8a58b05d6bed2b7d4f096031ca9e9760
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api-model (2.2.1)
4
+ api-model (2.2.2)
5
5
  activemodel (~> 4.1)
6
6
  activesupport (~> 4.1)
7
7
  hash-pipe (~> 0.0)
@@ -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.1"
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']
@@ -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"].split(", ").each do |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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Timewell