takeout 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/takeout/client.rb +4 -3
- data/lib/takeout/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39d31e1f05888a3b66025fdfc9f660dd71936b1e
|
4
|
+
data.tar.gz: f68ec993f71c8a3e0594fa48ba98d47c8e19106a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc5c08b5a0720869d7ca4f59772cfc15a734733e42520e3ac172ceb2138ed6355132cd2d6ff8cc3dd2a43167a3dcb1e177e69db925e26716f1895297eabe169
|
7
|
+
data.tar.gz: 77821f52af98097e7a72ef837b21ec79d7d8135a43526335ebb671f68a7db47cddb0fe6c49c97317376ab98857532728dd459fefba77aca95f1ec74d92ac0b47
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
[![Join the chat at https://gitter.im/kylegrantlucas/takeout](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kylegrantlucas/takeout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
8
8
|
[![Analytics](https://ga-beacon.appspot.com/UA-62799576-1/kylegrantlucas/takeout?pixel)](https://github.com/igrigorik/ga-beacon)
|
9
9
|
|
10
|
-
A powerful little tool for generating on-the-fly API clients.
|
10
|
+
A powerful little tool for generating on-the-fly API clients. 🍲
|
11
11
|
|
12
12
|
## Requirements
|
13
13
|
|
data/lib/takeout/client.rb
CHANGED
@@ -30,12 +30,12 @@ module Takeout
|
|
30
30
|
attr_accessor :uri
|
31
31
|
|
32
32
|
attr_accessor :port
|
33
|
-
|
33
|
+
|
34
34
|
attr_accessor :endpoint_prefix
|
35
35
|
|
36
36
|
# A constant specifying the kind of event callbacks and if they should or should not raise an error
|
37
37
|
CALLBACKS = {failure: true, missing: true}
|
38
|
-
|
38
|
+
|
39
39
|
JSON_REQUEST_BODY = [:put, :post]
|
40
40
|
|
41
41
|
# The main client initialization method.
|
@@ -123,6 +123,7 @@ module Takeout
|
|
123
123
|
curl = Curl.send(request_type, request_url.to_s, body) do |curl|
|
124
124
|
curl.verbose = true if @debug
|
125
125
|
curl.headers = headers if headers
|
126
|
+
curl.follow_location = true if options[:follow_redirect]
|
126
127
|
|
127
128
|
if options[:username] && options[:password]
|
128
129
|
curl.http_auth_types = :basic
|
@@ -152,7 +153,7 @@ module Takeout
|
|
152
153
|
|
153
154
|
# Append extension if one is given
|
154
155
|
request_url = append_extension(request_url, options)
|
155
|
-
|
156
|
+
|
156
157
|
return request_url, options
|
157
158
|
end
|
158
159
|
|
data/lib/takeout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: takeout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Lucas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -209,4 +209,3 @@ test_files:
|
|
209
209
|
- spec/support/fake_test_api.rb
|
210
210
|
- spec/support/fixtures/post.json
|
211
211
|
- spec/support/fixtures/posts.json
|
212
|
-
has_rdoc:
|