http-request 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/http-request.rb CHANGED
@@ -25,7 +25,7 @@ module HttpRequest
25
25
  :max_redirects => 3,
26
26
  :keep_alive => true
27
27
  }
28
- @config.tap {|config| config.merge(options) }
28
+ @config.tap { @config.merge!(options) if !options.empty? }
29
29
  end
30
30
 
31
31
  # Short-hand methods, auto-create a client object
@@ -12,5 +12,9 @@ module HttpRequest
12
12
  header.each {|k,v| header[k] = v.first if v.is_a?(Array) && v.length == 1 }
13
13
  end
14
14
  end
15
+
16
+ def status_message
17
+ "#{status} #{raw.message}"
18
+ end
15
19
  end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module HttpRequest
2
- VERSION = '1.1.8'
2
+ VERSION = '1.1.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-17 00:00:00.000000000 Z
12
+ date: 2012-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: 4098152367455332880
89
+ hash: 374309681473749968
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  none: false
92
92
  requirements: