1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
Commit graph

30 commits

Author SHA1 Message Date
Andy Brody
a2dbe2c474 Validate that proc passed to add_before_exec...
Previously, you could call RestClient.add_before_execution_proc() with
no arguments or block, and it would add `nil` to the list of procs. This
would cause a nil NoMethodError down the line. Instead, immediately
raise an ArgumentError.
2015-06-09 23:53:09 -07:00
Andy Brody
d2ceac62cf Support disabling the proxy by setting to falsey.
Newer ruby versions of Net::HTTP will use ENV['http_proxy'] directly.
You should be able to disable the proxy in RestClient without overriding
ENV['http_proxy'] directly.

Now, detect when a proxy has been explicitly set to falsey, and
explicitly create a Net::HTTP object with proxy disabled in that case.
2015-04-15 18:17:34 -07:00
Andy Brody
29b56a33f3 Add functions for parsing content-type headers. 2015-01-28 02:45:02 -08:00
Andy Brody
38ddebfcdc Sort requires. 2014-06-26 14:34:39 -07:00
Andy Brody
5af40b2f9d Require net/http and openssl instead of net/https.
Fixes: #247
2014-06-26 14:33:32 -07:00
Andy Brody
b843d05580 Net/https is unified with net/http in 1.9+. 2014-04-25 16:20:14 -07:00
Andy Brody
4dbaf7e604 Move windows? method into Platform module. 2014-04-03 14:05:18 -07:00
Andy Brody
902db106a6 Disable failing OS X tests.
Apple patches OpenSSL to always fall back on the system CA store, so
the integration tests that expect SSL cert failures have never worked on
OS X. Disable them since I can't think of a workaround :-(.

TODO: add some integration tests on certificates that won't be in any
system CA store.
2014-04-03 14:05:18 -07:00
Andy Brody
c5f5415b4e Merge branch 'master' into ab-ssl
Conflicts:
	lib/restclient.rb
	rest-client.gemspec
2014-04-02 00:17:22 -07:00
Andy Brody
1d0f0d9fa3 Adapt Windows root cert store code from puppet. 2014-03-30 17:43:25 -07:00
Andy Brody
43c08e5879 There was no good reason for this monkey patch. 2014-03-28 02:57:40 -07:00
Andy Brody
a6e78b4504 Restore version file and use it in gemspec.
After the VERSION file was removed in ca52137496, RestClient.version
would always return "0.0.0".
2014-03-06 18:08:02 -08:00
Jeff Remer
3e7949d08f Added PATCH method and corresponding spec tests 2011-06-05 00:31:40 +02:00
Julien Kirch
612b6ef7cc Merge branch 'cloudify-master' into next 2011-05-06 17:27:24 +02:00
Julien Kirch
e61a2bd842 add support for options. Closes #37 2010-07-02 23:21:32 +02:00
Julien Kirch
cd8f5b2c79 the warning about the logger when using a string was a bad idea 2010-05-31 19:52:37 +02:00
Julien Kirch
bd22128487 Reasonably good 2010-02-16 19:03:44 +01:00
Julien Kirch
1c7eaa3834 Another try 2010-01-31 13:31:30 +01:00
Julien Kirch
7563fd5a88 Cleaner structure: Response is no more a String, and the mixin is replaced by an abstract_response 2010-01-25 22:15:18 +01:00
Julien Kirch
68ff7f840f Block for response done, easier than expected! 2010-01-22 21:04:49 +01:00
Julien Kirch
3b83aadc35 Giving a first try 2010-01-18 22:15:15 +01:00
Julien Kirch
16a4dbf9dd First try(cherry picked from commit eece9eda0487969e582ef97e6a41f86780a53d08) 2010-01-09 11:14:58 +01:00
Julien Kirch
026f2ea360 Tabs to space 2009-12-29 18:27:39 +01:00
François Beausoleil
aa98685d7f Allow RestClient to report it's version 2009-08-12 22:29:45 -04:00
François Beausoleil
d3ab28688e Merge commit 'adamwiggins/multipart_streaming' into master
Conflicts:
	README.rdoc
	Rakefile
	lib/request_errors.rb
	lib/resource.rb
	lib/rest_client.rb
	lib/rest_client/request_errors.rb
	lib/rest_client/resource.rb
	lib/restclient/exceptions.rb
	lib/restclient/resource.rb
	rest-client.gemspec
	spec/base.rb
	spec/rest_client_spec.rb
2009-08-12 11:00:44 -04:00
Pedro Belo
742bc77a84 detect when net/https is not available and suggest installing libopenssl-ruby 2009-06-24 12:11:02 -07:00
Adam Jacob
212ae67bfe Added raw_request support, which downloads the body to a tempfile rather than a string 2009-03-16 15:28:20 -07:00
Adam Wiggins
109ad553dc RestClient.head 2009-02-10 13:55:54 -08:00
Adam Wiggins
2ca019caeb document response headers 2009-01-24 17:03:33 -08:00
Adam Wiggins
edeafb34dc restclient instead of rest_client; reorganize lib dir 2009-01-24 14:49:01 -08:00