excon 0.0.1 → 0.0.2

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.

Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/excon.gemspec +52 -0
  3. data/lib/excon/connection.rb +1 -1
  4. metadata +2 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1,52 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{excon}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Wesley Beary"]
12
+ s.date = %q{2009-10-31}
13
+ s.description = %q{speed, persistence, http(s)}
14
+ s.email = %q{wbeary@engineyard.com}
15
+ s.extra_rdoc_files = [
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitignore",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "benchmarks/excon_vs.rb",
25
+ "benchmarks/headers_split_vs_match.rb",
26
+ "benchmarks/strip_newline.rb",
27
+ "excon.gemspec",
28
+ "lib/excon.rb",
29
+ "lib/excon/connection.rb",
30
+ "lib/excon/errors.rb",
31
+ "lib/excon/response.rb",
32
+ "test/test.rb"
33
+ ]
34
+ s.homepage = %q{http://github.com/geemus/excon}
35
+ s.rdoc_options = ["--charset=UTF-8"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = %q{1.3.5}
38
+ s.summary = %q{EXtended http(s) CONnections}
39
+ s.test_files = [
40
+ "test/test.rb"
41
+ ]
42
+
43
+ if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
+ else
49
+ end
50
+ else
51
+ end
52
+ end
@@ -53,7 +53,7 @@ module Excon
53
53
  end
54
54
 
55
55
  unless params[:method] == 'HEAD'
56
- unless params[:block]
56
+ unless params[:block] || ![*params[:expects]].compact.include?(response.status)
57
57
  response.body = ''
58
58
  params[:block] = lambda { |chunk| response.body << chunk }
59
59
  end
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary
@@ -30,6 +30,7 @@ files:
30
30
  - benchmarks/excon_vs.rb
31
31
  - benchmarks/headers_split_vs_match.rb
32
32
  - benchmarks/strip_newline.rb
33
+ - excon.gemspec
33
34
  - lib/excon.rb
34
35
  - lib/excon/connection.rb
35
36
  - lib/excon/errors.rb