transport 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZGVmYzg4MDY3NWMzNjU4ZDJmYzdjOGZjMDU1YWY3YjdiZWM3NjlkYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NThlMmY5NzZjZjZjZjczNmY4NDU5YTg0MThjYTM1YzEzMzM1ZTFkZA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NjIxM2YzOThkNmE5YjQ1ZDAyOWVjZThlNjEwMzcyNTVmYTFhM2E5NzNlODJh
|
10
|
+
OWE5MzEwZWEyMWU5ZTJlMGRhZWVmZDQ2ODFjYjkwODg4Nzg3ZjJkYzc3OGQx
|
11
|
+
ZWRjOWU2YmQ0YjBjMDMxMDBlZDhiZjJjNmQ0MTcxYTNkMGViMzg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjdlMTJjNzQzMGZjMWU1YjAxZDdkNDMyYzE2YmNjZGE2ZDA0YzIzYWM2MGI2
|
14
|
+
YTNjYjIxODA5Y2YzNDdkZGYxYWE0NTRmYzYyZWViNDk3ZDc1NGM1N2ZmZjU4
|
15
|
+
OWZlYmQzMmI2ZWE3YmZhMmFmZjkxZDI1MGIxNjM0MzY3ZDQ4NDE=
|
@@ -21,7 +21,7 @@ module Transport
|
|
21
21
|
|
22
22
|
module InstanceMethods
|
23
23
|
|
24
|
-
HTTP_METHODS_WITH_PARAMETERS = [ :get, :delete ].freeze unless defined?(HTTP_METHODS_WITH_PARAMETERS)
|
24
|
+
HTTP_METHODS_WITH_PARAMETERS = [ :get, :delete, :post, :put ].freeze unless defined?(HTTP_METHODS_WITH_PARAMETERS)
|
25
25
|
HTTP_METHODS_WITH_BODY = [ :post, :put ].freeze unless defined?(HTTP_METHODS_WITH_BODY)
|
26
26
|
|
27
27
|
attr_reader :http_method
|
@@ -79,11 +79,6 @@ describe Transport::HTTP::RequestBuilder do
|
|
79
79
|
@request_builder.perform
|
80
80
|
end
|
81
81
|
|
82
|
-
it "should not set the request body" do
|
83
|
-
@request.should_not_receive(:body=)
|
84
|
-
@request_builder.perform
|
85
|
-
end
|
86
|
-
|
87
82
|
end
|
88
83
|
|
89
84
|
describe "request" do
|
@@ -110,7 +105,7 @@ describe Transport::HTTP::RequestBuilder do
|
|
110
105
|
it_should_behave_like "any http request builder perform"
|
111
106
|
|
112
107
|
it "should initialize the request correctly" do
|
113
|
-
@request_class.should_receive(:new).with("/test", @options[:headers]).and_return(@request)
|
108
|
+
@request_class.should_receive(:new).with("/test?test_parameter=test", @options[:headers]).and_return(@request)
|
114
109
|
@request_builder.perform
|
115
110
|
end
|
116
111
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Philipp Brüll
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: reek
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rdoc
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -115,31 +106,27 @@ files:
|
|
115
106
|
- spec/spec_helper.rb
|
116
107
|
homepage: http://github.com/phifty/transport
|
117
108
|
licenses: []
|
109
|
+
metadata: {}
|
118
110
|
post_install_message:
|
119
111
|
rdoc_options: []
|
120
112
|
require_paths:
|
121
113
|
- lib
|
122
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
115
|
requirements:
|
125
116
|
- - ! '>='
|
126
117
|
- !ruby/object:Gem::Version
|
127
118
|
version: 1.8.7
|
128
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
120
|
requirements:
|
131
121
|
- - ! '>='
|
132
122
|
- !ruby/object:Gem::Version
|
133
123
|
version: '0'
|
134
|
-
segments:
|
135
|
-
- 0
|
136
|
-
hash: -668763505907960514
|
137
124
|
requirements:
|
138
125
|
- The 'json' gem if ruby version 1.8.x is used.
|
139
126
|
rubyforge_project: transport
|
140
|
-
rubygems_version:
|
127
|
+
rubygems_version: 2.0.1
|
141
128
|
signing_key:
|
142
|
-
specification_version:
|
129
|
+
specification_version: 4
|
143
130
|
summary: A HTTP/JSON transport layer.
|
144
131
|
test_files:
|
145
132
|
- spec/acceptance/json_spec.rb
|
@@ -155,3 +142,4 @@ test_files:
|
|
155
142
|
- spec/lib/transport/http_spec.rb
|
156
143
|
- spec/lib/transport/common_spec.rb
|
157
144
|
- spec/lib/transport/spec/faker_spec.rb
|
145
|
+
has_rdoc: true
|