rest-client 1.7.2 → 2.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.mailmap +10 -0
- data/.rspec +2 -1
- data/.rubocop +2 -0
- data/.rubocop-disables.yml +386 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +56 -8
- data/AUTHORS +26 -1
- data/README.md +901 -0
- data/Rakefile +27 -3
- data/bin/restclient +3 -5
- data/history.md +199 -0
- data/lib/restclient/abstract_response.rb +196 -50
- data/lib/restclient/exceptions.rb +96 -55
- data/lib/restclient/params_array.rb +72 -0
- data/lib/restclient/payload.rb +70 -74
- data/lib/restclient/platform.rb +20 -1
- data/lib/restclient/raw_response.rb +21 -6
- data/lib/restclient/request.rb +572 -284
- data/lib/restclient/resource.rb +19 -9
- data/lib/restclient/response.rb +75 -9
- data/lib/restclient/utils.rb +274 -0
- data/lib/restclient/version.rb +2 -1
- data/lib/restclient.rb +21 -3
- data/rest-client.gemspec +13 -10
- data/spec/ISS.jpg +0 -0
- data/spec/helpers.rb +54 -0
- data/spec/integration/_lib.rb +1 -0
- data/spec/integration/capath_digicert/3513523f.0 +22 -0
- data/spec/integration/capath_digicert/399e7759.0 +22 -0
- data/spec/integration/capath_digicert/digicert.crt +20 -17
- data/spec/integration/certs/digicert.crt +20 -17
- data/spec/integration/httpbin_spec.rb +128 -0
- data/spec/integration/integration_spec.rb +97 -14
- data/spec/integration/request_spec.rb +29 -6
- data/spec/spec_helper.rb +28 -1
- data/spec/unit/_lib.rb +1 -0
- data/spec/unit/abstract_response_spec.rb +95 -35
- data/spec/unit/exceptions_spec.rb +41 -28
- data/spec/unit/params_array_spec.rb +36 -0
- data/spec/unit/payload_spec.rb +118 -68
- data/spec/unit/raw_response_spec.rb +10 -5
- data/spec/unit/request2_spec.rb +34 -12
- data/spec/unit/request_spec.rb +751 -418
- data/spec/unit/resource_spec.rb +31 -27
- data/spec/unit/response_spec.rb +144 -58
- data/spec/unit/restclient_spec.rb +16 -15
- data/spec/unit/utils_spec.rb +147 -0
- data/spec/unit/windows/root_certs_spec.rb +3 -3
- metadata +121 -70
- data/README.rdoc +0 -324
- data/spec/integration/capath_digicert/244b5494.0 +0 -19
- data/spec/integration/capath_digicert/81b9768f.0 +0 -19
- data/spec/unit/master_shake.jpg +0 -0
@@ -0,0 +1,147 @@
|
|
1
|
+
require_relative '_lib'
|
2
|
+
|
3
|
+
describe RestClient::Utils do
|
4
|
+
describe '.get_encoding_from_headers' do
|
5
|
+
it 'assumes no encoding by default for text' do
|
6
|
+
headers = {:content_type => 'text/plain'}
|
7
|
+
expect(RestClient::Utils.get_encoding_from_headers(headers)).
|
8
|
+
to eq nil
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'returns nil on failures' do
|
12
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
13
|
+
{:content_type => 'blah'})).to eq nil
|
14
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
15
|
+
{})).to eq nil
|
16
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
17
|
+
{:content_type => 'foo; bar=baz'})).to eq nil
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'handles various charsets' do
|
21
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
22
|
+
{:content_type => 'text/plain; charset=UTF-8'})).to eq 'UTF-8'
|
23
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
24
|
+
{:content_type => 'application/json; charset=ISO-8859-1'})).
|
25
|
+
to eq 'ISO-8859-1'
|
26
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
27
|
+
{:content_type => 'text/html; charset=windows-1251'})).
|
28
|
+
to eq 'windows-1251'
|
29
|
+
|
30
|
+
expect(RestClient::Utils.get_encoding_from_headers(
|
31
|
+
{:content_type => 'text/html; charset="UTF-16"'})).
|
32
|
+
to eq 'UTF-16'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '.cgi_parse_header' do
|
37
|
+
it 'parses headers', :unless => RUBY_VERSION.start_with?('2.0') do
|
38
|
+
expect(RestClient::Utils.cgi_parse_header('text/plain')).
|
39
|
+
to eq ['text/plain', {}]
|
40
|
+
|
41
|
+
expect(RestClient::Utils.cgi_parse_header('text/vnd.just.made.this.up')).
|
42
|
+
to eq ['text/vnd.just.made.this.up', {}]
|
43
|
+
|
44
|
+
expect(RestClient::Utils.cgi_parse_header('text/plain;charset=us-ascii')).
|
45
|
+
to eq ['text/plain', {'charset' => 'us-ascii'}]
|
46
|
+
|
47
|
+
expect(RestClient::Utils.cgi_parse_header('text/plain ; charset="us-ascii"')).
|
48
|
+
to eq ['text/plain', {'charset' => 'us-ascii'}]
|
49
|
+
|
50
|
+
expect(RestClient::Utils.cgi_parse_header(
|
51
|
+
'text/plain ; charset="us-ascii"; another=opt')).
|
52
|
+
to eq ['text/plain', {'charset' => 'us-ascii', 'another' => 'opt'}]
|
53
|
+
|
54
|
+
expect(RestClient::Utils.cgi_parse_header(
|
55
|
+
'foo/bar; filename="silly.txt"')).
|
56
|
+
to eq ['foo/bar', {'filename' => 'silly.txt'}]
|
57
|
+
|
58
|
+
expect(RestClient::Utils.cgi_parse_header(
|
59
|
+
'foo/bar; filename="strange;name"')).
|
60
|
+
to eq ['foo/bar', {'filename' => 'strange;name'}]
|
61
|
+
|
62
|
+
expect(RestClient::Utils.cgi_parse_header(
|
63
|
+
'foo/bar; filename="strange;name";size=123')).to eq \
|
64
|
+
['foo/bar', {'filename' => 'strange;name', 'size' => '123'}]
|
65
|
+
|
66
|
+
expect(RestClient::Utils.cgi_parse_header(
|
67
|
+
'foo/bar; name="files"; filename="fo\\"o;bar"')).to eq \
|
68
|
+
['foo/bar', {'name' => 'files', 'filename' => 'fo"o;bar'}]
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe '.encode_query_string' do
|
73
|
+
it 'handles simple hashes' do
|
74
|
+
{
|
75
|
+
{foo: 123, bar: 456} => 'foo=123&bar=456',
|
76
|
+
{'foo' => 123, 'bar' => 456} => 'foo=123&bar=456',
|
77
|
+
{foo: 'abc', bar: 'one two'} => 'foo=abc&bar=one+two',
|
78
|
+
{escaped: '1+2=3'} => 'escaped=1%2B2%3D3',
|
79
|
+
{'escaped + key' => 'foo'} => 'escaped+%2B+key=foo',
|
80
|
+
}.each_pair do |input, expected|
|
81
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'handles simple arrays' do
|
86
|
+
{
|
87
|
+
{foo: [1, 2, 3]} => 'foo[]=1&foo[]=2&foo[]=3',
|
88
|
+
{foo: %w{a b c}, bar: [1, 2, 3]} => 'foo[]=a&foo[]=b&foo[]=c&bar[]=1&bar[]=2&bar[]=3',
|
89
|
+
{foo: ['one two', 3]} => 'foo[]=one+two&foo[]=3',
|
90
|
+
{'a+b' => [1,2,3]} => 'a%2Bb[]=1&a%2Bb[]=2&a%2Bb[]=3',
|
91
|
+
}.each_pair do |input, expected|
|
92
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
it 'handles nested hashes' do
|
97
|
+
{
|
98
|
+
{outer: {foo: 123, bar: 456}} => 'outer[foo]=123&outer[bar]=456',
|
99
|
+
{outer: {foo: [1, 2, 3], bar: 'baz'}} => 'outer[foo][]=1&outer[foo][]=2&outer[foo][]=3&outer[bar]=baz',
|
100
|
+
}.each_pair do |input, expected|
|
101
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
it 'handles null and empty values' do
|
106
|
+
{
|
107
|
+
{string: '', empty: nil, list: [], hash: {}, falsey: false } =>
|
108
|
+
'string=&empty&list&hash&falsey=false',
|
109
|
+
}.each_pair do |input, expected|
|
110
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
it 'handles nested nulls' do
|
115
|
+
{
|
116
|
+
{foo: {string: '', empty: nil}} => 'foo[string]=&foo[empty]',
|
117
|
+
}.each_pair do |input, expected|
|
118
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
it 'handles deep nesting' do
|
123
|
+
{
|
124
|
+
{coords: [{x: 1, y: 0}, {x: 2}, {x: 3}]} => 'coords[][x]=1&coords[][y]=0&coords[][x]=2&coords[][x]=3',
|
125
|
+
}.each_pair do |input, expected|
|
126
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
it 'handles multiple fields with the same name using ParamsArray' do
|
131
|
+
{
|
132
|
+
RestClient::ParamsArray.new([[:foo, 1], [:foo, 2], [:foo, 3]]) => 'foo=1&foo=2&foo=3',
|
133
|
+
}.each_pair do |input, expected|
|
134
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
it 'handles nested ParamsArrays' do
|
139
|
+
{
|
140
|
+
{foo: RestClient::ParamsArray.new([[:a, 1], [:a, 2]])} => 'foo[a]=1&foo[a]=2',
|
141
|
+
RestClient::ParamsArray.new([[:foo, {a: 1}], [:foo, {a: 2}]]) => 'foo[a]=1&foo[a]=2',
|
142
|
+
}.each_pair do |input, expected|
|
143
|
+
expect(RestClient::Utils.encode_query_string(input)).to eq expected
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
1
|
+
require_relative '../_lib'
|
2
2
|
|
3
3
|
describe 'RestClient::Windows::RootCerts',
|
4
4
|
:if => RestClient::Platform.windows? do
|
5
5
|
let(:x509_store) { RestClient::Windows::RootCerts.instance.to_a }
|
6
6
|
|
7
7
|
it 'should return at least one X509 certificate' do
|
8
|
-
expect(x509_store.to_a).to
|
8
|
+
expect(x509_store.to_a.size).to be >= 1
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'should return an X509 certificate with a subject' do
|
@@ -16,7 +16,7 @@ describe 'RestClient::Windows::RootCerts',
|
|
16
16
|
|
17
17
|
it 'should return X509 certificate objects' do
|
18
18
|
x509_store.each do |cert|
|
19
|
-
cert.
|
19
|
+
expect(cert).to be_a(OpenSSL::X509::Certificate)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,157 +1,200 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- REST Client Team
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: webmock
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '2.0'
|
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
|
29
|
-
version: '
|
26
|
+
version: '2.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
33
|
+
version: '3.0'
|
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
|
45
|
-
version: '
|
40
|
+
version: '3.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: pry
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
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
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: pry-doc
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
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
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rdoc
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 2.4.2
|
86
|
-
- - <
|
76
|
+
- - "<"
|
87
77
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
78
|
+
version: '6.0'
|
89
79
|
type: :development
|
90
80
|
prerelease: false
|
91
81
|
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
82
|
requirements:
|
94
|
-
- -
|
83
|
+
- - ">="
|
95
84
|
- !ruby/object:Gem::Version
|
96
85
|
version: 2.4.2
|
97
|
-
- - <
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '6.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.49'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
98
101
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
102
|
+
version: '0.49'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: http-accept
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.7.0
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '2.0'
|
113
|
+
type: :runtime
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 1.7.0
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '2.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: http-cookie
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 1.0.2
|
130
|
+
- - "<"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '2.0'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.0.2
|
140
|
+
- - "<"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '2.0'
|
100
143
|
- !ruby/object:Gem::Dependency
|
101
144
|
name: mime-types
|
102
145
|
requirement: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
146
|
requirements:
|
105
|
-
- -
|
147
|
+
- - ">="
|
106
148
|
- !ruby/object:Gem::Version
|
107
149
|
version: '1.16'
|
108
|
-
- - <
|
150
|
+
- - "<"
|
109
151
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
152
|
+
version: '4.0'
|
111
153
|
type: :runtime
|
112
154
|
prerelease: false
|
113
155
|
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
156
|
requirements:
|
116
|
-
- -
|
157
|
+
- - ">="
|
117
158
|
- !ruby/object:Gem::Version
|
118
159
|
version: '1.16'
|
119
|
-
- - <
|
160
|
+
- - "<"
|
120
161
|
- !ruby/object:Gem::Version
|
121
|
-
version: '
|
162
|
+
version: '4.0'
|
122
163
|
- !ruby/object:Gem::Dependency
|
123
164
|
name: netrc
|
124
165
|
requirement: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
166
|
requirements:
|
127
|
-
- - ~>
|
167
|
+
- - "~>"
|
128
168
|
- !ruby/object:Gem::Version
|
129
|
-
version: '0.
|
169
|
+
version: '0.8'
|
130
170
|
type: :runtime
|
131
171
|
prerelease: false
|
132
172
|
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
173
|
requirements:
|
135
|
-
- - ~>
|
174
|
+
- - "~>"
|
136
175
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0.
|
138
|
-
description:
|
176
|
+
version: '0.8'
|
177
|
+
description: 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
|
139
178
|
style of specifying actions: get, put, post, delete.'
|
140
|
-
email: rest
|
179
|
+
email: discuss@rest-client.groups.io
|
141
180
|
executables:
|
142
181
|
- restclient
|
143
182
|
extensions: []
|
144
183
|
extra_rdoc_files:
|
145
|
-
- README.
|
184
|
+
- README.md
|
146
185
|
- history.md
|
147
186
|
files:
|
148
|
-
- .gitignore
|
149
|
-
- .
|
150
|
-
- .
|
187
|
+
- ".gitignore"
|
188
|
+
- ".mailmap"
|
189
|
+
- ".rspec"
|
190
|
+
- ".rubocop"
|
191
|
+
- ".rubocop-disables.yml"
|
192
|
+
- ".rubocop.yml"
|
193
|
+
- ".travis.yml"
|
151
194
|
- AUTHORS
|
152
195
|
- Gemfile
|
153
196
|
- LICENSE
|
154
|
-
- README.
|
197
|
+
- README.md
|
155
198
|
- Rakefile
|
156
199
|
- bin/restclient
|
157
200
|
- history.md
|
@@ -160,19 +203,24 @@ files:
|
|
160
203
|
- lib/restclient.rb
|
161
204
|
- lib/restclient/abstract_response.rb
|
162
205
|
- lib/restclient/exceptions.rb
|
206
|
+
- lib/restclient/params_array.rb
|
163
207
|
- lib/restclient/payload.rb
|
164
208
|
- lib/restclient/platform.rb
|
165
209
|
- lib/restclient/raw_response.rb
|
166
210
|
- lib/restclient/request.rb
|
167
211
|
- lib/restclient/resource.rb
|
168
212
|
- lib/restclient/response.rb
|
213
|
+
- lib/restclient/utils.rb
|
169
214
|
- lib/restclient/version.rb
|
170
215
|
- lib/restclient/windows.rb
|
171
216
|
- lib/restclient/windows/root_certs.rb
|
172
217
|
- rest-client.gemspec
|
173
218
|
- rest-client.windows.gemspec
|
174
|
-
- spec/
|
175
|
-
- spec/
|
219
|
+
- spec/ISS.jpg
|
220
|
+
- spec/helpers.rb
|
221
|
+
- spec/integration/_lib.rb
|
222
|
+
- spec/integration/capath_digicert/3513523f.0
|
223
|
+
- spec/integration/capath_digicert/399e7759.0
|
176
224
|
- spec/integration/capath_digicert/README
|
177
225
|
- spec/integration/capath_digicert/digicert.crt
|
178
226
|
- spec/integration/capath_verisign/415660c1.0
|
@@ -181,12 +229,14 @@ files:
|
|
181
229
|
- spec/integration/capath_verisign/verisign.crt
|
182
230
|
- spec/integration/certs/digicert.crt
|
183
231
|
- spec/integration/certs/verisign.crt
|
232
|
+
- spec/integration/httpbin_spec.rb
|
184
233
|
- spec/integration/integration_spec.rb
|
185
234
|
- spec/integration/request_spec.rb
|
186
235
|
- spec/spec_helper.rb
|
236
|
+
- spec/unit/_lib.rb
|
187
237
|
- spec/unit/abstract_response_spec.rb
|
188
238
|
- spec/unit/exceptions_spec.rb
|
189
|
-
- spec/unit/
|
239
|
+
- spec/unit/params_array_spec.rb
|
190
240
|
- spec/unit/payload_spec.rb
|
191
241
|
- spec/unit/raw_response_spec.rb
|
192
242
|
- spec/unit/request2_spec.rb
|
@@ -194,39 +244,38 @@ files:
|
|
194
244
|
- spec/unit/resource_spec.rb
|
195
245
|
- spec/unit/response_spec.rb
|
196
246
|
- spec/unit/restclient_spec.rb
|
247
|
+
- spec/unit/utils_spec.rb
|
197
248
|
- spec/unit/windows/root_certs_spec.rb
|
198
249
|
homepage: https://github.com/rest-client/rest-client
|
199
250
|
licenses:
|
200
251
|
- MIT
|
252
|
+
metadata: {}
|
201
253
|
post_install_message:
|
202
254
|
rdoc_options: []
|
203
255
|
require_paths:
|
204
256
|
- lib
|
205
257
|
required_ruby_version: !ruby/object:Gem::Requirement
|
206
|
-
none: false
|
207
258
|
requirements:
|
208
|
-
- -
|
259
|
+
- - ">="
|
209
260
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
261
|
+
version: 2.0.0
|
211
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
|
-
none: false
|
213
263
|
requirements:
|
214
|
-
- -
|
264
|
+
- - ">="
|
215
265
|
- !ruby/object:Gem::Version
|
216
266
|
version: '0'
|
217
|
-
segments:
|
218
|
-
- 0
|
219
|
-
hash: 1102817666116175326
|
220
267
|
requirements: []
|
221
|
-
|
222
|
-
rubygems_version: 1.8.23
|
268
|
+
rubygems_version: 3.0.3
|
223
269
|
signing_key:
|
224
|
-
specification_version:
|
270
|
+
specification_version: 4
|
225
271
|
summary: Simple HTTP and REST client for Ruby, inspired by microframework syntax for
|
226
272
|
specifying actions.
|
227
273
|
test_files:
|
228
|
-
- spec/
|
229
|
-
- spec/
|
274
|
+
- spec/ISS.jpg
|
275
|
+
- spec/helpers.rb
|
276
|
+
- spec/integration/_lib.rb
|
277
|
+
- spec/integration/capath_digicert/3513523f.0
|
278
|
+
- spec/integration/capath_digicert/399e7759.0
|
230
279
|
- spec/integration/capath_digicert/README
|
231
280
|
- spec/integration/capath_digicert/digicert.crt
|
232
281
|
- spec/integration/capath_verisign/415660c1.0
|
@@ -235,12 +284,14 @@ test_files:
|
|
235
284
|
- spec/integration/capath_verisign/verisign.crt
|
236
285
|
- spec/integration/certs/digicert.crt
|
237
286
|
- spec/integration/certs/verisign.crt
|
287
|
+
- spec/integration/httpbin_spec.rb
|
238
288
|
- spec/integration/integration_spec.rb
|
239
289
|
- spec/integration/request_spec.rb
|
240
290
|
- spec/spec_helper.rb
|
291
|
+
- spec/unit/_lib.rb
|
241
292
|
- spec/unit/abstract_response_spec.rb
|
242
293
|
- spec/unit/exceptions_spec.rb
|
243
|
-
- spec/unit/
|
294
|
+
- spec/unit/params_array_spec.rb
|
244
295
|
- spec/unit/payload_spec.rb
|
245
296
|
- spec/unit/raw_response_spec.rb
|
246
297
|
- spec/unit/request2_spec.rb
|
@@ -248,5 +299,5 @@ test_files:
|
|
248
299
|
- spec/unit/resource_spec.rb
|
249
300
|
- spec/unit/response_spec.rb
|
250
301
|
- spec/unit/restclient_spec.rb
|
302
|
+
- spec/unit/utils_spec.rb
|
251
303
|
- spec/unit/windows/root_certs_spec.rb
|
252
|
-
has_rdoc:
|