http_utilities 1.2.6.5 → 1.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7098ab59c66af8e70c2cf0f229fdb93d83750f12
4
- data.tar.gz: 70f746d614bc0f88f30aba9f6c7aebfea69a1c66
3
+ metadata.gz: 69cfa03dfff20fef82cbc42f61067928218f15a9
4
+ data.tar.gz: ba17ef24187f0717369ef2a869b6db704353662f
5
5
  SHA512:
6
- metadata.gz: fb0cd53269182cc43b9e33c466ffa8b5433e3cc6114cbedd200b2646acd15780e334ecc5b74ebb341749673053155be2c043cf96ce2972e9bd1207a342d46d29
7
- data.tar.gz: 51476cc914528b81b40a68db2fa88858fb568ce482ebc87ac3db0a0969eba4b8222f2c5f4ff357b3bf24427c8e50aed3887a97f82aae9a61aace157b4815beb2
6
+ metadata.gz: d3b527cdd4e5ff966cc389f641d0a1a98e0c7da4ada78be093d8cc139556538d9895dc3afdeb5367d405ecc8f4b36bc560c9c8165fe2ed565b2019e5115e9229
7
+ data.tar.gz: ed443df3e2b11212ad0e2e28172165db10146037bf6cbaa66b12e25504a0a013aaae10d95e9cbebd76a4c8c5a01178101c2dfd7660c42a702f806c2ee83214ba
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = "http_utilities"
6
- s.version = "1.2.6.5"
6
+ s.version = "1.2.7"
7
7
 
8
8
  s.authors = ["Sebastian Johnsson"]
9
9
  s.description = "Wrapper for Faraday with additional functionality"
@@ -3,9 +3,10 @@ module HttpUtilities
3
3
  class Response
4
4
  include HttpUtilities::Http::Logger
5
5
 
6
- attr_accessor :body, :parsed_body, :page, :format, :request, :force_encoding
6
+ attr_accessor :status, :body, :parsed_body, :page, :format, :request, :force_encoding
7
7
 
8
8
  def initialize(response: nil, request: nil, options: {})
9
+ self.status = (response && response.status) ? response.status : nil
9
10
  self.body = (response && response.body) ? response.body : nil
10
11
  self.request = request
11
12
 
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module HttpUtilities
3
- VERSION = "1.2.6.5"
3
+ VERSION = "1.2.7"
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6.5
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-08 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday