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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5d8d5f83e93d1ddd98f7b0694a53ba366aff5da
4
- data.tar.gz: 8d36b86cac6fe3019f26ccd74a1e98345fb9a6c3
3
+ metadata.gz: 39d31e1f05888a3b66025fdfc9f660dd71936b1e
4
+ data.tar.gz: f68ec993f71c8a3e0594fa48ba98d47c8e19106a
5
5
  SHA512:
6
- metadata.gz: aa2ac9b5812224c26fae12ae3915ae715995bf918e3ae2a4a2c277aec15b60704c0f8631070a58d9f8f7af47575d258ac552ad34d03e954739783ec8af049be4
7
- data.tar.gz: b4d30288f0b2b5324fdb81091ee74bbcd6299a909032bae53c6a2dd35f41afd6444ec7b78714f3513c3fb0222decce1607233417f2b9f8e93932891926a3338f
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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Takeout
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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.6
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-03-17 00:00:00.000000000 Z
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: