transport 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper"))
2
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "transport", "unexpected_status_code_error"))
3
+
4
+ describe Transport::UnexpectedStatusCodeError do
5
+
6
+ before :each do
7
+ @unexpected_status_code_error = Transport::UnexpectedStatusCodeError.new 205, "test"
8
+ end
9
+
10
+ describe "to_s" do
11
+
12
+ it "should return the correct message" do
13
+ @unexpected_status_code_error.to_s.should == "Transport::UnexpectedStatusCodeError received status code 205 [test]"
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+ gem 'rspec', '>= 2'
3
+ require 'rspec'
4
+
5
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "transport"))
6
+
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: transport
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - "Philipp Br\xC3\xBCll"
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-29 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ version: "2"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: reek
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 2
44
+ version: "1.2"
45
+ type: :development
46
+ version_requirements: *id002
47
+ description: Provide a single command interface to perform http/json requests. A spec helper to perform request against a fake server is also included.
48
+ email: b.phifty@gmail.com
49
+ executables: []
50
+
51
+ extensions: []
52
+
53
+ extra_rdoc_files:
54
+ - README.rdoc
55
+ files:
56
+ - README.rdoc
57
+ - LICENSE
58
+ - Rakefile
59
+ - lib/transport.rb
60
+ - lib/transport/unexpected_status_code_error.rb
61
+ - lib/transport/common/request_builder.rb
62
+ - lib/transport/http.rb
63
+ - lib/transport/common.rb
64
+ - lib/transport/json/request_builder.rb
65
+ - lib/transport/json/response_parser.rb
66
+ - lib/transport/http/request_builder.rb
67
+ - lib/transport/http/formatter.rb
68
+ - lib/transport/http/request_builder/parameter_serializer.rb
69
+ - lib/transport/spec/faker.rb
70
+ - lib/transport/spec.rb
71
+ - lib/transport/json.rb
72
+ - spec/lib/transport/common/request_builder_spec.rb
73
+ - spec/lib/transport/common_spec.rb
74
+ - spec/lib/transport/http_spec.rb
75
+ - spec/lib/transport/json/response_parser_spec.rb
76
+ - spec/lib/transport/json/request_builder_spec.rb
77
+ - spec/lib/transport/unexpected_status_code_error_spec.rb
78
+ - spec/lib/transport/http/request_builder_spec.rb
79
+ - spec/lib/transport/http/request_builder/parameter_serializer_spec.rb
80
+ - spec/lib/transport/http/formatter_spec.rb
81
+ - spec/lib/transport/spec/faker_spec.rb
82
+ - spec/lib/transport/json_spec.rb
83
+ - spec/spec_helper.rb
84
+ - spec/acceptance/http_spec.rb
85
+ - spec/acceptance/json_spec.rb
86
+ has_rdoc: true
87
+ homepage: http://github.com/phifty/transport
88
+ licenses: []
89
+
90
+ post_install_message:
91
+ rdoc_options: []
92
+
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ segments:
101
+ - 1
102
+ - 8
103
+ - 7
104
+ version: 1.8.7
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ requirements:
114
+ - The 'json' gem if ruby version 1.8.x is used.
115
+ rubyforge_project: transport
116
+ rubygems_version: 1.3.7
117
+ signing_key:
118
+ specification_version: 3
119
+ summary: A HTTP/JSON transport layer.
120
+ test_files:
121
+ - spec/lib/transport/common/request_builder_spec.rb
122
+ - spec/lib/transport/common_spec.rb
123
+ - spec/lib/transport/http_spec.rb
124
+ - spec/lib/transport/json/response_parser_spec.rb
125
+ - spec/lib/transport/json/request_builder_spec.rb
126
+ - spec/lib/transport/unexpected_status_code_error_spec.rb
127
+ - spec/lib/transport/http/request_builder_spec.rb
128
+ - spec/lib/transport/http/request_builder/parameter_serializer_spec.rb
129
+ - spec/lib/transport/http/formatter_spec.rb
130
+ - spec/lib/transport/spec/faker_spec.rb
131
+ - spec/lib/transport/json_spec.rb
132
+ - spec/acceptance/http_spec.rb
133
+ - spec/acceptance/json_spec.rb