excon 0.18.2 → 0.18.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of excon might be problematic. Click here for more details.
- data/Gemfile.lock +1 -1
- data/changelog.txt +5 -0
- data/excon.gemspec +1 -1
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/response.rb +27 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
data/excon.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.18.
|
16
|
+
s.version = '0.18.3'
|
17
17
|
s.date = '2013-02-21'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/response.rb
CHANGED
@@ -1,7 +1,33 @@
|
|
1
1
|
module Excon
|
2
2
|
class Response
|
3
3
|
|
4
|
-
attr_accessor :
|
4
|
+
attr_accessor :data
|
5
|
+
|
6
|
+
# backwards compatability reader/writers
|
7
|
+
def body=(new_body)
|
8
|
+
@data[:body] = new_body
|
9
|
+
end
|
10
|
+
def body
|
11
|
+
@data[:body]
|
12
|
+
end
|
13
|
+
def headers=(new_headers)
|
14
|
+
@data[:headers] = new_headers
|
15
|
+
end
|
16
|
+
def headers
|
17
|
+
@data[:headers]
|
18
|
+
end
|
19
|
+
def status=(new_status)
|
20
|
+
@data[:status] = new_status
|
21
|
+
end
|
22
|
+
def status
|
23
|
+
@data[:status]
|
24
|
+
end
|
25
|
+
def remote_ip=(new_remote_ip)
|
26
|
+
@data[:remote_ip] = new_remote_ip
|
27
|
+
end
|
28
|
+
def remote_ip
|
29
|
+
@data[:remote_ip]
|
30
|
+
end
|
5
31
|
|
6
32
|
def initialize(params={})
|
7
33
|
@data = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash: -
|
232
|
+
hash: -3136841704354789367
|
233
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
234
|
none: false
|
235
235
|
requirements:
|