transport 1.0.1 → 1.0.2
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.
- data/README.rdoc +6 -0
- data/spec/acceptance/http_spec.rb +0 -1
- data/spec/acceptance/json_spec.rb +1 -1
- metadata +59 -80
data/README.rdoc
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
A HTTP/JSON transport layer. Provides a single command interface to perform http/json requests. A spec helper to
|
5
5
|
perform request against a fake server is also included.
|
6
6
|
|
7
|
+
{<img src="http://travis-ci.org/phifty/transport.png" />}[http://travis-ci.org/phifty/transport]
|
8
|
+
|
7
9
|
== HTTP requests
|
8
10
|
|
9
11
|
To perform a http request the call of a single command is needed.
|
@@ -107,3 +109,7 @@ defined in the YML file, it will raises a <tt>Transport::Spec::Faker::NoFakeRequ
|
|
107
109
|
== Development
|
108
110
|
|
109
111
|
This project is still under development. Any bug report and contribution is welcome!
|
112
|
+
|
113
|
+
== Support
|
114
|
+
|
115
|
+
Apart from contribution, support via Flattr[http://flattr.com/thing/108998/Transport] is welcome.
|
@@ -3,7 +3,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
|
|
3
3
|
describe "fetching the delicious bookmarks" do
|
4
4
|
|
5
5
|
it "should return some json" do
|
6
|
-
response = Transport::JSON.request :get, "http://feeds.delicious.com/v2/json"
|
6
|
+
response = Transport::JSON.request :get, "http://feeds.delicious.com/v2/json"
|
7
7
|
response.should be_instance_of(Array)
|
8
8
|
end
|
9
9
|
|
metadata
CHANGED
@@ -1,133 +1,112 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: transport
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
7
|
+
authors:
|
8
|
+
- Philipp Brüll
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-10-10 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rspec
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &21806220 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 2
|
30
|
-
version: "2"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2'
|
31
22
|
type: :development
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: reek
|
35
23
|
prerelease: false
|
36
|
-
|
24
|
+
version_requirements: *21806220
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: reek
|
27
|
+
requirement: &21805520 !ruby/object:Gem::Requirement
|
37
28
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 1
|
43
|
-
- 2
|
44
|
-
version: "1.2"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.2'
|
45
33
|
type: :development
|
46
|
-
|
47
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *21805520
|
36
|
+
description: Provide a single command interface to perform http/json requests. A spec
|
37
|
+
helper to perform request against a fake server is also included.
|
48
38
|
email: b.phifty@gmail.com
|
49
39
|
executables: []
|
50
|
-
|
51
40
|
extensions: []
|
52
|
-
|
53
|
-
extra_rdoc_files:
|
41
|
+
extra_rdoc_files:
|
54
42
|
- README.rdoc
|
55
|
-
files:
|
43
|
+
files:
|
56
44
|
- README.rdoc
|
57
45
|
- LICENSE
|
58
46
|
- Rakefile
|
59
47
|
- 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
48
|
- lib/transport/json/request_builder.rb
|
65
49
|
- lib/transport/json/response_parser.rb
|
66
|
-
- lib/transport/
|
50
|
+
- lib/transport/common.rb
|
51
|
+
- lib/transport/http.rb
|
52
|
+
- lib/transport/common/request_builder.rb
|
67
53
|
- lib/transport/http/formatter.rb
|
54
|
+
- lib/transport/http/request_builder.rb
|
68
55
|
- lib/transport/http/request_builder/parameter_serializer.rb
|
69
|
-
- lib/transport/
|
56
|
+
- lib/transport/unexpected_status_code_error.rb
|
70
57
|
- lib/transport/spec.rb
|
58
|
+
- lib/transport/spec/faker.rb
|
71
59
|
- 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
60
|
- spec/lib/transport/unexpected_status_code_error_spec.rb
|
61
|
+
- spec/lib/transport/json/request_builder_spec.rb
|
62
|
+
- spec/lib/transport/json/response_parser_spec.rb
|
63
|
+
- spec/lib/transport/http_spec.rb
|
64
|
+
- spec/lib/transport/common_spec.rb
|
65
|
+
- spec/lib/transport/common/request_builder_spec.rb
|
78
66
|
- spec/lib/transport/http/request_builder_spec.rb
|
79
67
|
- spec/lib/transport/http/request_builder/parameter_serializer_spec.rb
|
80
68
|
- spec/lib/transport/http/formatter_spec.rb
|
81
|
-
- spec/lib/transport/spec/faker_spec.rb
|
82
69
|
- spec/lib/transport/json_spec.rb
|
70
|
+
- spec/lib/transport/spec/faker_spec.rb
|
83
71
|
- spec/spec_helper.rb
|
84
72
|
- spec/acceptance/http_spec.rb
|
85
73
|
- spec/acceptance/json_spec.rb
|
86
|
-
has_rdoc: true
|
87
74
|
homepage: http://github.com/phifty/transport
|
88
75
|
licenses: []
|
89
|
-
|
90
76
|
post_install_message:
|
91
77
|
rdoc_options: []
|
92
|
-
|
93
|
-
require_paths:
|
78
|
+
require_paths:
|
94
79
|
- lib
|
95
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
81
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
segments:
|
101
|
-
- 1
|
102
|
-
- 8
|
103
|
-
- 7
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
104
85
|
version: 1.8.7
|
105
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
87
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
|
112
|
-
version: "0"
|
113
|
-
requirements:
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements:
|
114
93
|
- The 'json' gem if ruby version 1.8.x is used.
|
115
94
|
rubyforge_project: transport
|
116
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.8.10
|
117
96
|
signing_key:
|
118
97
|
specification_version: 3
|
119
98
|
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
|
99
|
+
test_files:
|
126
100
|
- spec/lib/transport/unexpected_status_code_error_spec.rb
|
101
|
+
- spec/lib/transport/json/request_builder_spec.rb
|
102
|
+
- spec/lib/transport/json/response_parser_spec.rb
|
103
|
+
- spec/lib/transport/http_spec.rb
|
104
|
+
- spec/lib/transport/common_spec.rb
|
105
|
+
- spec/lib/transport/common/request_builder_spec.rb
|
127
106
|
- spec/lib/transport/http/request_builder_spec.rb
|
128
107
|
- spec/lib/transport/http/request_builder/parameter_serializer_spec.rb
|
129
108
|
- spec/lib/transport/http/formatter_spec.rb
|
130
|
-
- spec/lib/transport/spec/faker_spec.rb
|
131
109
|
- spec/lib/transport/json_spec.rb
|
110
|
+
- spec/lib/transport/spec/faker_spec.rb
|
132
111
|
- spec/acceptance/http_spec.rb
|
133
112
|
- spec/acceptance/json_spec.rb
|