maremma 3.1.3 → 3.1.4

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: 97be2121188ef001ab7e252568ee735f5877c9aa
4
- data.tar.gz: 0375ea55201d40d15db15cb1bf819887ae623861
3
+ metadata.gz: d4a9438502dba3a32ffd177d7ba9fdbafa27fde6
4
+ data.tar.gz: 94b281671a356ea42cb779e34104d1914670add8
5
5
  SHA512:
6
- metadata.gz: 080b4ac17fe203b950df13ec8fdc1721230bfdb043731a85b620aa82c13b3852a87629559cab1d27b4112c37a53c6f2e7b5bd6f816a00a91c7b17adb06862583
7
- data.tar.gz: 8fa117ad9f5e9fcfdb3b852635bddb305f68cb9078bc113f4411e000419442464ce83ee241fab331c32e623a75592f760c655400c2f0797cfdbd33e8ccb69a97
6
+ metadata.gz: 53068a29af57572a112def2d4043c02a7a68736b133df957fb97d6ddd78f911e2c0d4ef745528ec49ab1f9ec3f79865fb6cc0642a83197641e4118efd85cef95
7
+ data.tar.gz: 05ee07d967914d69b81e6ca053db7b9713ff486ed011d7e3c3784f7b6793e8f48dd0879e658bf8952e697488621e8918ba7f3ea06ef509ac94a884cd97e1d0ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maremma (3.1.3)
4
+ maremma (3.1.4)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  addressable (>= 2.3.6)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -96,4 +96,4 @@ DEPENDENCIES
96
96
  webmock (~> 1.22, >= 1.22.3)
97
97
 
98
98
  BUNDLED WITH
99
- 1.12.5
99
+ 1.14.3
data/lib/maremma.rb CHANGED
@@ -35,7 +35,8 @@ module Maremma
35
35
  end
36
36
  OpenStruct.new(body: parse_success_response(response.body, options),
37
37
  headers: response.headers,
38
- status: response.status)
38
+ status: response.status,
39
+ url: response.env[:url].to_s)
39
40
  rescue *NETWORKABLE_EXCEPTIONS => error
40
41
  error_response = rescue_faraday_error(error)
41
42
  OpenStruct.new(body: error_response,
@@ -57,7 +58,8 @@ module Maremma
57
58
  end
58
59
  OpenStruct.new(body: parse_success_response(response.body, options),
59
60
  headers: response.headers,
60
- status: response.status)
61
+ status: response.status,
62
+ url: response.env[:url].to_s)
61
63
  rescue *NETWORKABLE_EXCEPTIONS => error
62
64
  error_response = rescue_faraday_error(error)
63
65
  OpenStruct.new(body: error_response,
@@ -78,7 +80,8 @@ module Maremma
78
80
 
79
81
  OpenStruct.new(body: parse_success_response(response.body, options),
80
82
  headers: response.headers,
81
- status: response.status)
83
+ status: response.status,
84
+ url: response.env[:url].to_s)
82
85
  rescue *NETWORKABLE_EXCEPTIONS => error
83
86
  error_response = rescue_faraday_error(error)
84
87
  OpenStruct.new(body: error_response,
@@ -104,7 +107,8 @@ module Maremma
104
107
  end
105
108
  OpenStruct.new(body: parse_success_response(response.body, options),
106
109
  headers: response.headers,
107
- status: response.status)
110
+ status: response.status,
111
+ url: response.env[:url].to_s)
108
112
  rescue *NETWORKABLE_EXCEPTIONS => error
109
113
  error_response = rescue_faraday_error(error)
110
114
  OpenStruct.new(body: error_response,
@@ -127,7 +131,8 @@ module Maremma
127
131
  status: response.status)
128
132
  end
129
133
  OpenStruct.new(headers: response.headers,
130
- status: response.status)
134
+ status: response.status,
135
+ url: response.env[:url].to_s)
131
136
  rescue *NETWORKABLE_EXCEPTIONS => error
132
137
  error_response = rescue_faraday_error(error)
133
138
  OpenStruct.new(body: error_response,
@@ -1,3 +1,3 @@
1
1
  module Maremma
2
- VERSION = "3.1.3"
2
+ VERSION = "3.1.4"
3
3
  end
data/spec/maremma_spec.rb CHANGED
@@ -356,6 +356,7 @@ describe Maremma do
356
356
  stub_request(:get, redirect_url).to_return(status: 200, body: "Test")
357
357
  response = subject.get(url)
358
358
  expect(response.body).to eq("data"=>"Test")
359
+ expect(response.url).to eq("http://www.example.org/redirect")
359
360
  end
360
361
 
361
362
  it "redirect four times" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maremma
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday