rest-client 1.6.7 → 1.6.8.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rest-client might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
2
2
 
3
3
  require 'webmock/rspec'
4
- include WebMock
4
+ include WebMock::API
5
5
 
6
6
  describe RestClient::Resource do
7
7
  before do
@@ -51,83 +51,85 @@ describe RestClient::Resource do
51
51
 
52
52
  it "is backwards compatible with previous constructor" do
53
53
  @resource = RestClient::Resource.new('http://some/resource', 'user', 'pass')
54
- @resource.user.should == 'user'
55
- @resource.password.should == 'pass'
54
+ @resource.user.should eq 'user'
55
+ @resource.password.should eq 'pass'
56
56
  end
57
57
 
58
58
  it "concatenates urls, inserting a slash when it needs one" do
59
- @resource.concat_urls('http://example.com', 'resource').should == 'http://example.com/resource'
59
+ @resource.concat_urls('http://example.com', 'resource').should eq 'http://example.com/resource'
60
60
  end
61
61
 
62
62
  it "concatenates urls, using no slash if the first url ends with a slash" do
63
- @resource.concat_urls('http://example.com/', 'resource').should == 'http://example.com/resource'
63
+ @resource.concat_urls('http://example.com/', 'resource').should eq 'http://example.com/resource'
64
64
  end
65
65
 
66
66
  it "concatenates urls, using no slash if the second url starts with a slash" do
67
- @resource.concat_urls('http://example.com', '/resource').should == 'http://example.com/resource'
67
+ @resource.concat_urls('http://example.com', '/resource').should eq 'http://example.com/resource'
68
68
  end
69
69
 
70
70
  it "concatenates even non-string urls, :posts + 1 => 'posts/1'" do
71
- @resource.concat_urls(:posts, 1).should == 'posts/1'
71
+ @resource.concat_urls(:posts, 1).should eq 'posts/1'
72
72
  end
73
73
 
74
74
  it "offers subresources via []" do
75
75
  parent = RestClient::Resource.new('http://example.com')
76
- parent['posts'].url.should == 'http://example.com/posts'
76
+ parent['posts'].url.should eq 'http://example.com/posts'
77
77
  end
78
78
 
79
79
  it "transports options to subresources" do
80
80
  parent = RestClient::Resource.new('http://example.com', :user => 'user', :password => 'password')
81
- parent['posts'].user.should == 'user'
82
- parent['posts'].password.should == 'password'
81
+ parent['posts'].user.should eq 'user'
82
+ parent['posts'].password.should eq 'password'
83
83
  end
84
84
 
85
85
  it "passes a given block to subresources" do
86
86
  block = Proc.new{|r| r}
87
87
  parent = RestClient::Resource.new('http://example.com', &block)
88
- parent['posts'].block.should == block
88
+ parent['posts'].block.should eq block
89
89
  end
90
90
 
91
91
  it "the block should be overrideable" do
92
92
  block1 = Proc.new{|r| r}
93
93
  block2 = Proc.new{|r| r}
94
94
  parent = RestClient::Resource.new('http://example.com', &block1)
95
- # parent['posts', &block2].block.should == block2 # ruby 1.9 syntax
96
- parent.send(:[], 'posts', &block2).block.should == block2
95
+ # parent['posts', &block2].block.should eq block2 # ruby 1.9 syntax
96
+ parent.send(:[], 'posts', &block2).block.should eq block2
97
97
  end
98
98
 
99
99
  it "the block should be overrideable in ruby 1.9 syntax" do
100
100
  block = Proc.new{|r| r}
101
101
  parent = RestClient::Resource.new('http://example.com', &block)
102
102
  r19_syntax = %q{
103
- parent['posts', &->(r){r}].block.should_not == block
103
+ parent['posts', &->(r){r}].block.should_not eq block
104
104
  }
105
105
  if is_ruby_19?
106
106
  eval(r19_syntax)
107
+ else
108
+ parent.should_not be_nil
107
109
  end
108
110
  end
109
111
 
110
112
  it "prints its url with to_s" do
111
- RestClient::Resource.new('x').to_s.should == 'x'
113
+ RestClient::Resource.new('x').to_s.should eq 'x'
112
114
  end
113
115
 
114
116
  describe 'block' do
115
117
  it 'can use block when creating the resource' do
116
118
  stub_request(:get, 'www.example.com').to_return(:body => '', :status => 404)
117
119
  resource = RestClient::Resource.new('www.example.com') { |response, request| 'foo' }
118
- resource.get.should == 'foo'
120
+ resource.get.should eq 'foo'
119
121
  end
120
122
 
121
123
  it 'can use block when executing the resource' do
122
124
  stub_request(:get, 'www.example.com').to_return(:body => '', :status => 404)
123
125
  resource = RestClient::Resource.new('www.example.com')
124
- resource.get { |response, request| 'foo' }.should == 'foo'
126
+ resource.get { |response, request| 'foo' }.should eq 'foo'
125
127
  end
126
128
 
127
129
  it 'execution block override resource block' do
128
130
  stub_request(:get, 'www.example.com').to_return(:body => '', :status => 404)
129
131
  resource = RestClient::Resource.new('www.example.com') { |response, request| 'foo' }
130
- resource.get { |response, request| 'bar' }.should == 'bar'
132
+ resource.get { |response, request| 'bar' }.should eq 'bar'
131
133
  end
132
134
 
133
135
  end
@@ -1,64 +1,64 @@
1
1
  require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
2
2
 
3
3
  require 'webmock/rspec'
4
- include WebMock
4
+ include WebMock::API
5
5
 
6
6
  describe RestClient::Response do
7
7
  before do
8
- @net_http_res = mock('net http response', :to_hash => {"Status" => ["200 OK"]}, :code => 200)
9
- @request = mock('http request', :user => nil, :password => nil)
8
+ @net_http_res = double('net http response', :to_hash => {"Status" => ["200 OK"]}, :code => 200)
9
+ @request = double('http request', :user => nil, :password => nil)
10
10
  @response = RestClient::Response.create('abc', @net_http_res, {})
11
11
  end
12
12
 
13
13
  it "behaves like string" do
14
- @response.should.to_s == 'abc'
15
- @response.to_str.should == 'abc'
16
- @response.to_i.should == 200
14
+ @response.to_s.should eq 'abc'
15
+ @response.to_str.should eq 'abc'
16
+ @response.to_i.should eq 200
17
17
  end
18
18
 
19
19
  it "accepts nil strings and sets it to empty for the case of HEAD" do
20
- RestClient::Response.create(nil, @net_http_res, {}).should.to_s == ""
20
+ RestClient::Response.create(nil, @net_http_res, {}).to_s.should eq ""
21
21
  end
22
22
 
23
23
  it "test headers and raw headers" do
24
- @response.raw_headers["Status"][0].should == "200 OK"
25
- @response.headers[:status].should == "200 OK"
24
+ @response.raw_headers["Status"][0].should eq "200 OK"
25
+ @response.headers[:status].should eq "200 OK"
26
26
  end
27
27
 
28
28
  describe "cookie processing" do
29
29
  it "should correctly deal with one Set-Cookie header with one cookie inside" do
30
- net_http_res = mock('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT"]})
30
+ net_http_res = double('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT"]})
31
31
  response = RestClient::Response.create('abc', net_http_res, {})
32
- response.headers[:set_cookie].should == ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT"]
33
- response.cookies.should == { "main_page" => "main_page_no_rewrite" }
32
+ response.headers[:set_cookie].should eq ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT"]
33
+ response.cookies.should eq({ "main_page" => "main_page_no_rewrite" })
34
34
  end
35
35
 
36
36
  it "should correctly deal with multiple cookies [multiple Set-Cookie headers]" do
37
- net_http_res = mock('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT", "remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT", "user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]})
37
+ net_http_res = double('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT", "remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT", "user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]})
38
38
  response = RestClient::Response.create('abc', net_http_res, {})
39
- response.headers[:set_cookie].should == ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT", "remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT", "user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]
40
- response.cookies.should == {
39
+ response.headers[:set_cookie].should eq ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT", "remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT", "user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]
40
+ response.cookies.should eq({
41
41
  "main_page" => "main_page_no_rewrite",
42
42
  "remember_me" => "",
43
43
  "user" => "somebody"
44
- }
44
+ })
45
45
  end
46
46
 
47
47
  it "should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies]" do
48
- net_http_res = mock('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT, remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT, user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]})
48
+ net_http_res = double('net http response', :to_hash => {"etag" => ["\"e1ac1a2df945942ef4cac8116366baad\""], "set-cookie" => ["main_page=main_page_no_rewrite; path=/; expires=Tue, 20-Jan-2015 15:03:14 GMT, remember_me=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT, user=somebody; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"]})
49
49
  response = RestClient::Response.create('abc', net_http_res, {})
50
- response.cookies.should == {
50
+ response.cookies.should eq({
51
51
  "main_page" => "main_page_no_rewrite",
52
52
  "remember_me" => "",
53
53
  "user" => "somebody"
54
- }
54
+ })
55
55
  end
56
56
  end
57
57
 
58
58
  describe "exceptions processing" do
59
59
  it "should return itself for normal codes" do
60
60
  (200..206).each do |code|
61
- net_http_res = mock('net http response', :code => '200')
61
+ net_http_res = double('net http response', :code => '200')
62
62
  response = RestClient::Response.create('abc', net_http_res, {})
63
63
  response.return! @request
64
64
  end
@@ -67,7 +67,7 @@ describe RestClient::Response do
67
67
  it "should throw an exception for other codes" do
68
68
  RestClient::Exceptions::EXCEPTIONS_MAP.each_key do |code|
69
69
  unless (200..207).include? code
70
- net_http_res = mock('net http response', :code => code.to_i)
70
+ net_http_res = double('net http response', :code => code.to_i)
71
71
  response = RestClient::Response.create('abc', net_http_res, {})
72
72
  lambda { response.return!}.should raise_error
73
73
  end
@@ -77,45 +77,45 @@ describe RestClient::Response do
77
77
  end
78
78
 
79
79
  describe "redirection" do
80
-
80
+
81
81
  it "follows a redirection when the request is a get" do
82
82
  stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://new/resource'})
83
83
  stub_request(:get, 'http://new/resource').to_return(:body => 'Foo')
84
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should == 'Foo'
84
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should eq 'Foo'
85
85
  end
86
86
 
87
87
  it "follows a redirection and keep the parameters" do
88
88
  stub_request(:get, 'http://foo:bar@some/resource').with(:headers => {'Accept' => 'application/json'}).to_return(:body => '', :status => 301, :headers => {'Location' => 'http://new/resource'})
89
89
  stub_request(:get, 'http://foo:bar@new/resource').with(:headers => {'Accept' => 'application/json'}).to_return(:body => 'Foo')
90
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get, :user => 'foo', :password => 'bar', :headers => {:accept => :json}).body.should == 'Foo'
90
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get, :user => 'foo', :password => 'bar', :headers => {:accept => :json}).body.should eq 'Foo'
91
91
  end
92
92
 
93
93
  it "follows a redirection and keep the cookies" do
94
- stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Set-Cookie' => CGI::Cookie.new('Foo', 'Bar'), 'Location' => 'http://new/resource', })
94
+ stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Set-Cookie' => 'Foo=Bar', 'Location' => 'http://new/resource', })
95
95
  stub_request(:get, 'http://new/resource').with(:headers => {'Cookie' => 'Foo=Bar'}).to_return(:body => 'Qux')
96
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should == 'Qux'
96
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should eq 'Qux'
97
97
  end
98
98
 
99
99
  it "doesn't follow a 301 when the request is a post" do
100
- net_http_res = mock('net http response', :code => 301)
100
+ net_http_res = double('net http response', :code => 301)
101
101
  response = RestClient::Response.create('abc', net_http_res, {:method => :post})
102
102
  lambda { response.return!(@request)}.should raise_error(RestClient::MovedPermanently)
103
103
  end
104
104
 
105
105
  it "doesn't follow a 302 when the request is a post" do
106
- net_http_res = mock('net http response', :code => 302)
106
+ net_http_res = double('net http response', :code => 302)
107
107
  response = RestClient::Response.create('abc', net_http_res, {:method => :post})
108
108
  lambda { response.return!(@request)}.should raise_error(RestClient::Found)
109
109
  end
110
110
 
111
111
  it "doesn't follow a 307 when the request is a post" do
112
- net_http_res = mock('net http response', :code => 307)
112
+ net_http_res = double('net http response', :code => 307)
113
113
  response = RestClient::Response.create('abc', net_http_res, {:method => :post})
114
114
  lambda { response.return!(@request)}.should raise_error(RestClient::TemporaryRedirect)
115
115
  end
116
116
 
117
117
  it "doesn't follow a redirection when the request is a put" do
118
- net_http_res = mock('net http response', :code => 301)
118
+ net_http_res = double('net http response', :code => 301)
119
119
  response = RestClient::Response.create('abc', net_http_res, {:method => :put})
120
120
  lambda { response.return!(@request)}.should raise_error(RestClient::MovedPermanently)
121
121
  end
@@ -123,40 +123,40 @@ describe RestClient::Response do
123
123
  it "follows a redirection when the request is a post and result is a 303" do
124
124
  stub_request(:put, 'http://some/resource').to_return(:body => '', :status => 303, :headers => {'Location' => 'http://new/resource'})
125
125
  stub_request(:get, 'http://new/resource').to_return(:body => 'Foo')
126
- RestClient::Request.execute(:url => 'http://some/resource', :method => :put).body.should == 'Foo'
126
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :put).body.should eq 'Foo'
127
127
  end
128
128
 
129
129
  it "follows a redirection when the request is a head" do
130
130
  stub_request(:head, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://new/resource'})
131
131
  stub_request(:head, 'http://new/resource').to_return(:body => 'Foo')
132
- RestClient::Request.execute(:url => 'http://some/resource', :method => :head).body.should == 'Foo'
132
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :head).body.should eq 'Foo'
133
133
  end
134
134
 
135
135
  it "handles redirects with relative paths" do
136
136
  stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Location' => 'index'})
137
137
  stub_request(:get, 'http://some/index').to_return(:body => 'Foo')
138
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should == 'Foo'
138
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should eq 'Foo'
139
139
  end
140
140
 
141
141
  it "handles redirects with relative path and query string" do
142
142
  stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Location' => 'index?q=1'})
143
143
  stub_request(:get, 'http://some/index?q=1').to_return(:body => 'Foo')
144
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should == 'Foo'
144
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should eq 'Foo'
145
145
  end
146
146
 
147
147
  it "follow a redirection when the request is a get and the response is in the 30x range" do
148
148
  stub_request(:get, 'http://some/resource').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://new/resource'})
149
149
  stub_request(:get, 'http://new/resource').to_return(:body => 'Foo')
150
- RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should == 'Foo'
150
+ RestClient::Request.execute(:url => 'http://some/resource', :method => :get).body.should eq 'Foo'
151
151
  end
152
-
152
+
153
153
  it "follows no more than 10 redirections before raising error" do
154
154
  stub_request(:get, 'http://some/redirect-1').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://some/redirect-2'})
155
155
  stub_request(:get, 'http://some/redirect-2').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://some/redirect-2'})
156
156
  lambda { RestClient::Request.execute(:url => 'http://some/redirect-1', :method => :get) }.should raise_error(RestClient::MaxRedirectsReached)
157
157
  WebMock.should have_requested(:get, 'http://some/redirect-2').times(10)
158
158
  end
159
-
159
+
160
160
  it "follows no more than max_redirects redirections, if specified" do
161
161
  stub_request(:get, 'http://some/redirect-1').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://some/redirect-2'})
162
162
  stub_request(:get, 'http://some/redirect-2').to_return(:body => '', :status => 301, :headers => {'Location' => 'http://some/redirect-2'})
@@ -63,7 +63,7 @@ describe RestClient do
63
63
 
64
64
  it "append the log to the requested filename" do
65
65
  RestClient.log = '/tmp/restclient.log'
66
- f = mock('file handle')
66
+ f = double('file handle')
67
67
  File.should_receive(:open).with('/tmp/restclient.log', 'a').and_yield(f)
68
68
  f.should_receive(:puts).with('xyz')
69
69
  RestClient.log << 'xyz'
metadata CHANGED
@@ -1,82 +1,118 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rest-client
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 1
8
- - 6
9
- - 7
10
- version: 1.6.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.8.rc1
11
5
  platform: ruby
12
- authors:
13
- - Adam Wiggins
14
- - Julien Kirch
6
+ authors:
7
+ - REST Client Team
15
8
  autorequire:
16
9
  bindir: bin
17
10
  cert_chain: []
18
-
19
- date: 2011-08-24 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: mime-types
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :runtime
23
21
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
27
31
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 47
30
- segments:
31
- - 1
32
- - 16
33
- version: "1.16"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.4.2
34
34
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: webmock
38
35
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
42
38
  - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 57
45
- segments:
46
- - 0
47
- - 9
48
- - 1
49
- version: 0.9.1
39
+ - !ruby/object:Gem::Version
40
+ version: 2.4.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
50
62
  type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
69
+ - !ruby/object:Gem::Dependency
53
70
  name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.4'
76
+ type: :development
54
77
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
58
87
  - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
64
90
  type: :development
65
- version_requirements: *id003
66
- description: "A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
98
+ style of specifying actions: get, put, post, delete.'
67
99
  email: rest.client@librelist.com
68
- executables:
100
+ executables:
69
101
  - restclient
70
102
  extensions: []
71
-
72
- extra_rdoc_files:
103
+ extra_rdoc_files:
73
104
  - README.rdoc
74
105
  - history.md
75
- files:
106
+ files:
107
+ - ".gitignore"
108
+ - ".rspec"
109
+ - ".travis.yml"
110
+ - AUTHORS
111
+ - Gemfile
76
112
  - README.rdoc
77
113
  - Rakefile
78
- - VERSION
79
114
  - bin/restclient
115
+ - history.md
80
116
  - lib/rest-client.rb
81
117
  - lib/rest_client.rb
82
118
  - lib/restclient.rb
@@ -84,14 +120,21 @@ files:
84
120
  - lib/restclient/exceptions.rb
85
121
  - lib/restclient/net_http_ext.rb
86
122
  - lib/restclient/payload.rb
123
+ - lib/restclient/platform.rb
87
124
  - lib/restclient/raw_response.rb
88
125
  - lib/restclient/request.rb
89
126
  - lib/restclient/resource.rb
90
127
  - lib/restclient/response.rb
128
+ - lib/restclient/version.rb
129
+ - rest-client.gemspec
91
130
  - spec/abstract_response_spec.rb
92
131
  - spec/base.rb
93
132
  - spec/exceptions_spec.rb
94
- - spec/integration/certs/equifax.crt
133
+ - spec/integration/capath_digicert/244b5494.0
134
+ - spec/integration/capath_digicert/81b9768f.0
135
+ - spec/integration/capath_digicert/README
136
+ - spec/integration/capath_digicert/digicert.crt
137
+ - spec/integration/certs/digicert.crt
95
138
  - spec/integration/certs/verisign.crt
96
139
  - spec/integration/request_spec.rb
97
140
  - spec/integration_spec.rb
@@ -103,45 +146,40 @@ files:
103
146
  - spec/resource_spec.rb
104
147
  - spec/response_spec.rb
105
148
  - spec/restclient_spec.rb
106
- - history.md
107
- homepage: http://github.com/archiloque/rest-client
108
- licenses: []
109
-
149
+ homepage: https://github.com/rest-client/rest-client
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
110
153
  post_install_message:
111
154
  rdoc_options: []
112
-
113
- require_paths:
155
+ require_paths:
114
156
  - lib
115
- required_ruby_version: !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
- version: "0"
124
- required_rubygems_version: !ruby/object:Gem::Requirement
125
- none: false
126
- requirements:
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
127
159
  - - ">="
128
- - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
- version: "0"
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.3.1
133
167
  requirements: []
134
-
135
168
  rubyforge_project:
136
- rubygems_version: 1.8.5
169
+ rubygems_version: 2.2.2
137
170
  signing_key:
138
- specification_version: 3
139
- summary: Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.
140
- test_files:
171
+ specification_version: 4
172
+ summary: Simple HTTP and REST client for Ruby, inspired by microframework syntax for
173
+ specifying actions.
174
+ test_files:
141
175
  - spec/abstract_response_spec.rb
142
176
  - spec/base.rb
143
177
  - spec/exceptions_spec.rb
144
- - spec/integration/certs/equifax.crt
178
+ - spec/integration/capath_digicert/244b5494.0
179
+ - spec/integration/capath_digicert/81b9768f.0
180
+ - spec/integration/capath_digicert/README
181
+ - spec/integration/capath_digicert/digicert.crt
182
+ - spec/integration/certs/digicert.crt
145
183
  - spec/integration/certs/verisign.crt
146
184
  - spec/integration/request_spec.rb
147
185
  - spec/integration_spec.rb