curlyrest 0.1.38 → 0.1.40
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 +4 -4
- data/README.md +3 -3
- data/lib/curlyrest/version.rb +1 -1
- data/lib/curlyrest.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c8d68729c4f31ab5b711b856b9bad72b362898fd1f68a513822304bbc99425c
|
|
4
|
+
data.tar.gz: 195c80010394c9250f023a592e6dbd36d0a4738b87093c3bb6f35cd23abb45bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz: '
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '097f91b4f2d5733ec0cd1ba2e53e225e1ec8b8757cee69e957ee1cce3736132bb72e06692f8463f747bf60f93876d226f83940e3305fd30bae66cb00a9a39b6c'
|
|
7
|
+
data.tar.gz: a42517c1ab6c4949bdfa7cfa0cf491271ffb4e10d91bcf4a3fa2095704b7caa6bf9f0003ca0cd30f88431f81c1856da57c5c3d4ede5cc3d36ede5e7124798dad
|
data/README.md
CHANGED
|
@@ -20,12 +20,12 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
Simply replace your use of require 'rest-client' with require 'curlyrest', and optionally add header of :use_curl with
|
|
24
|
-
Environment variable `FORCE_CURL_DEBUG` will cause all API calls to be executed and
|
|
23
|
+
Simply replace your use of require 'rest-client' with require 'curlyrest', and optionally add header of :use_curl with either 'debug' (which will output the curl request / response) or any other value (which will execute via curl, but not output). The curl executed response is returned as compatable with rest-client.
|
|
24
|
+
Environment variable `FORCE_CURL_DEBUG` will cause all API calls to be executed and output with curl.
|
|
25
25
|
|
|
26
26
|
## Development
|
|
27
27
|
|
|
28
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
28
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `lib/curlyrest/version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
29
29
|
|
|
30
30
|
## Limitations
|
|
31
31
|
|
data/lib/curlyrest/version.rb
CHANGED
data/lib/curlyrest.rb
CHANGED
|
@@ -166,6 +166,7 @@ module RestClient
|
|
|
166
166
|
if processed_headers['Use-Curl'] || ENV['FORCE_CURL_DEBUG']
|
|
167
167
|
curl_execute(& block)
|
|
168
168
|
else
|
|
169
|
+
@read_timeout = processed_headers['Timeout'].to_i if processed_headers['Timeout']
|
|
169
170
|
transmit(uri, net_http_request_class(method)
|
|
170
171
|
.new(uri, processed_headers),
|
|
171
172
|
payload, & block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: curlyrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.40
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|