api-model 2.2.0 → 2.2.1

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: d8d62657906fcf3a59d70190108320e85a72688d
4
- data.tar.gz: c1cab41f5a240bcfc5146b088ed61f184bb87367
3
+ metadata.gz: c654a681f60c9b18571793a4c5602c384e37d560
4
+ data.tar.gz: acf3fe8a587beaef0d8f1467217e5ec7b1da2eb1
5
5
  SHA512:
6
- metadata.gz: 7ebe46b16b9585b10ab7becfd72444e3cd4ff4a936e7b1a35bc179b54421b00d9d72dfb60cbb792285a454aa31f7c5e143e2f7309ac25d70765c0bc08fc73b34
7
- data.tar.gz: 33f1b1abf718a509d04e28a1ce13b770697206a670bcdfedad3ca632b6357cf4a646726c869e2bd48a176ff0c381fb31ac0b2402b623477461f0318efdd77a13
6
+ metadata.gz: 2f8f20cdbe624ba6d1157ca61d4ca272aebf643e31a6400c7e139afc991efc863dae88af9e80cd927f4f71f330d4403c40dd27116ee1f6e313b7e817a59525c4
7
+ data.tar.gz: 3a846d48c91a3252e3b7de09f7600113d8dccbec866f3c4a08fe01acd8d64d2b331a41dec6e1b54a3bd962a0ba561be8ad30cf494034cd0b11becc0223fb49e6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api-model (2.2.0)
4
+ api-model (2.2.1)
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.0"
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']
@@ -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
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.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Timewell