dbalatero-typhoeus 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ require File.dirname(__FILE__) + '/../spec_helper'
2
+
3
+ describe Typhoeus::Response do
4
+ describe "initialize" do
5
+ it "should store response_code" do
6
+ Typhoeus::Response.new(:code => 200).code.should == 200
7
+ end
8
+
9
+ it "should store response_headers" do
10
+ Typhoeus::Response.new(:headers => "a header!").headers.should == "a header!"
11
+ end
12
+
13
+ it "should store response_body" do
14
+ Typhoeus::Response.new(:body => "a body!").body.should == "a body!"
15
+ end
16
+
17
+ it "should store request_time" do
18
+ Typhoeus::Response.new(:time => 1.23).time.should == 1.23
19
+ end
20
+
21
+ it "should store requested_url" do
22
+ response = Typhoeus::Response.new(:requested_url => "http://test.com")
23
+ response.requested_url.should == "http://test.com"
24
+ end
25
+
26
+ it "should store requested_http_method" do
27
+ response = Typhoeus::Response.new(:requested_http_method => :delete)
28
+ response.requested_http_method.should == :delete
29
+ end
30
+ end
31
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dbalatero-typhoeus
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.20
5
+ platform: ruby
6
+ authors:
7
+ - Paul Dix
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-07-03 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: paul@pauldix.net
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/typhoeus/extconf.rb
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - ext/typhoeus/extconf.rb
26
+ - ext/typhoeus/typhoeus_easy.h
27
+ - ext/typhoeus/typhoeus_easy.c
28
+ - ext/typhoeus/typhoeus_multi.h
29
+ - ext/typhoeus/typhoeus_multi.c
30
+ - ext/typhoeus/Makefile
31
+ - ext/typhoeus/native.h
32
+ - ext/typhoeus/native.c
33
+ - lib/typhoeus.rb
34
+ - lib/typhoeus/easy.rb
35
+ - lib/typhoeus/multi.rb
36
+ - lib/typhoeus/remote.rb
37
+ - lib/typhoeus/remote_proxy_object.rb
38
+ - lib/typhoeus/filter.rb
39
+ - lib/typhoeus/remote_method.rb
40
+ - lib/typhoeus/response.rb
41
+ - spec/spec.opts
42
+ - spec/spec_helper.rb
43
+ - spec/typhoeus/easy_spec.rb
44
+ - spec/typhoeus/multi_spec.rb
45
+ - spec/typhoeus/remote_spec.rb
46
+ - spec/typhoeus/remote_proxy_object_spec.rb
47
+ - spec/typhoeus/filter_spec.rb
48
+ - spec/typhoeus/remote_method_spec.rb
49
+ - spec/typhoeus/response_spec.rb
50
+ - spec/servers/delay_fixture_server.rb
51
+ - spec/servers/method_server.rb
52
+ has_rdoc: true
53
+ homepage: http://github.com/pauldix/typhoeus
54
+ licenses:
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ - ext
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ requirements: []
74
+
75
+ rubyforge_project:
76
+ rubygems_version: 1.3.5
77
+ signing_key:
78
+ specification_version: 2
79
+ summary: A library for interacting with web services (and building SOAs) at blinding speed.
80
+ test_files: []
81
+