excon 0.16.7 → 0.16.8

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 CHANGED
@@ -4,13 +4,13 @@ gemspec
4
4
 
5
5
  gem 'jruby-openssl', :platform => :jruby
6
6
 
7
- group :benchmark do
8
- gem 'em-http-request'
9
- gem 'httparty'
10
- gem 'rest-client'
11
- gem 'tach'
12
- gem 'typhoeus'
13
- gem 'sinatra'
14
- gem 'streamly_ffi'
15
- gem 'curb'
16
- end
7
+ # group :benchmark do
8
+ # gem 'em-http-request'
9
+ # gem 'httparty'
10
+ # gem 'rest-client'
11
+ # gem 'tach'
12
+ # gem 'typhoeus'
13
+ # gem 'sinatra'
14
+ # gem 'streamly_ffi'
15
+ # gem 'curb'
16
+ # end
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ excon (0.16.8)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ activesupport (3.2.6)
10
+ i18n (~> 0.6)
11
+ multi_json (~> 1.0)
12
+ bouncy-castle-java (1.5.0146.1)
13
+ chronic (0.6.7)
14
+ delorean (2.0.0)
15
+ chronic
16
+ eventmachine (1.0.0)
17
+ formatador (0.2.3)
18
+ i18n (0.6.0)
19
+ jruby-openssl (0.7.7)
20
+ bouncy-castle-java (>= 1.5.0146.1)
21
+ json (1.7.3)
22
+ json (1.7.3-java)
23
+ multi_json (1.3.6)
24
+ open4 (1.3.0)
25
+ rack (1.4.1)
26
+ rack-protection (1.2.0)
27
+ rack
28
+ rake (0.9.2.2)
29
+ rdoc (3.12)
30
+ json (~> 1.4)
31
+ shindo (0.3.4)
32
+ formatador (>= 0.1.1)
33
+ sinatra (1.3.2)
34
+ rack (~> 1.3, >= 1.3.6)
35
+ rack-protection (~> 1.2)
36
+ tilt (~> 1.3, >= 1.3.3)
37
+ tilt (1.3.3)
38
+
39
+ PLATFORMS
40
+ java
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ activesupport
45
+ delorean
46
+ eventmachine
47
+ excon!
48
+ jruby-openssl
49
+ open4
50
+ rake
51
+ rdoc
52
+ shindo
53
+ sinatra
data/README.md CHANGED
@@ -66,7 +66,7 @@ Excon can also expect one or more HTTP status code in response, raising an excep
66
66
 
67
67
  If you need to accept as response one or more HTTP status codes you can declare them in an array:
68
68
 
69
- connection.request(expects => [200, 201], :method => :get, :path => path, :query => {})
69
+ connection.request(:expects => [200, 201], :method => :get, :path => path, :query => {})
70
70
 
71
71
  Chunked Requests
72
72
  ----------------
@@ -1,3 +1,11 @@
1
+ 0.16.8 11/12/2012
2
+ =================
3
+
4
+ set file body pos to 0 at beginning of request
5
+ add eventmachine to dev dependencies for bad server tests
6
+ comment out benchmark deps for now
7
+ fix typo in readme
8
+
1
9
  0.16.7 10/17/2012
2
10
  =================
3
11
 
@@ -13,8 +13,8 @@ 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.16.7'
17
- s.date = '2012-10-17'
16
+ s.version = '0.16.8'
17
+ s.date = '2012-11-12'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -55,6 +55,7 @@ Gem::Specification.new do |s|
55
55
  # s.add_development_dependency('DEVDEPNAME', [">= 1.1.0", "< 2.0.0"])
56
56
  s.add_development_dependency('activesupport')
57
57
  s.add_development_dependency('delorean')
58
+ s.add_development_dependency('eventmachine')
58
59
  s.add_development_dependency('open4')
59
60
  s.add_development_dependency('rake')
60
61
  s.add_development_dependency('rdoc')
@@ -67,6 +68,7 @@ Gem::Specification.new do |s|
67
68
  # = MANIFEST =
68
69
  s.files = %w[
69
70
  Gemfile
71
+ Gemfile.lock
70
72
  README.md
71
73
  Rakefile
72
74
  benchmarks/class_vs_lambda.rb
@@ -108,9 +108,6 @@ module Excon
108
108
  retries_remaining ||= params[:retry_limit]
109
109
  retries_remaining -= 1
110
110
  if retries_remaining > 0
111
- if params[:body].respond_to?(:pos=)
112
- params[:body].pos = 0
113
- end
114
111
  retry
115
112
  else
116
113
  if params.has_key?(:instrumentor)
@@ -265,6 +262,9 @@ module Excon
265
262
  if params[:body].respond_to?(:binmode)
266
263
  params[:body].binmode
267
264
  end
265
+ if params[:body].respond_to?(:pos=)
266
+ params[:body].pos = 0
267
+ end
268
268
  while chunk = params[:body].read(params[:chunk_size])
269
269
  socket.write(chunk)
270
270
  end
@@ -29,7 +29,7 @@ module Excon
29
29
 
30
30
  REDACTED = 'REDACTED'
31
31
 
32
- VERSION = '0.16.7'
32
+ VERSION = '0.16.8'
33
33
 
34
34
  unless ::IO.const_defined?(:WaitReadable)
35
35
  class ::IO
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.16.7
4
+ version: 0.16.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-17 00:00:00.000000000 Z
14
+ date: 2012-11-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -45,6 +45,22 @@ dependencies:
45
45
  - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: eventmachine
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
48
64
  - !ruby/object:Gem::Dependency
49
65
  name: open4
50
66
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +149,7 @@ extra_rdoc_files:
133
149
  - README.md
134
150
  files:
135
151
  - Gemfile
152
+ - Gemfile.lock
136
153
  - README.md
137
154
  - Rakefile
138
155
  - benchmarks/class_vs_lambda.rb
@@ -205,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
222
  version: '0'
206
223
  segments:
207
224
  - 0
208
- hash: 1479785423322445390
225
+ hash: -2891394253994794390
209
226
  required_rubygems_version: !ruby/object:Gem::Requirement
210
227
  none: false
211
228
  requirements: