rest-client 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rest-client might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
data/history.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.4.2
2
+
3
+ - fixed RestClient.add_before_execution_proc (patch provided by Nicholas Wieland)
4
+ - fixed error when an exception is raised without a response (patch provided by Caleb Land)
5
+
1
6
  # 1.4.1
2
7
 
3
8
  - fixed parameters managment when using hash
@@ -64,7 +64,7 @@ module RestClient
64
64
  @response = response
65
65
 
66
66
  # compatibility: this make the exception behave like a Net::HTTPResponse
67
- response.extend ResponseForException
67
+ response.extend ResponseForException if response
68
68
  end
69
69
 
70
70
  def http_code
@@ -141,8 +141,8 @@ module RestClient
141
141
  net.read_timeout = @timeout if @timeout
142
142
  net.open_timeout = @open_timeout if @open_timeout
143
143
 
144
- RestClient.before_execution_procs.each do |block|
145
- block.call(req, args)
144
+ RestClient.before_execution_procs.each do |before_proc|
145
+ before_proc.call(req, args)
146
146
  end
147
147
 
148
148
  log_request
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 1
9
- version: 1.4.1
8
+ - 2
9
+ version: 1.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Wiggins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-03-05 00:00:00 +01:00
18
+ date: 2010-03-13 00:00:00 +01:00
19
19
  default_executable: restclient
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency