bisu 1.10.0 → 1.10.1

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
  SHA256:
3
- metadata.gz: a1a7abda3e27e23715ea0f2fb7b3e4bcb916c7a12b7eb691f5a5e3e8e1288a5c
4
- data.tar.gz: 9a82418e8e0783d4d78783f895a95749a011defaa39332bb6732816d6222454a
3
+ metadata.gz: 41fa600d8b33846f4a860595f47093d7105a79f7690968c4b3d0428fec0936ea
4
+ data.tar.gz: 2f4fed77d3e7b4688c8c0dd77dff43f96c32f0e52f2ebde3343115c0f25249cb
5
5
  SHA512:
6
- metadata.gz: 6c5d8bdcc8bf58bed26a44d949a9094c20382b9853b562c63165e6211b76cb9aa4c2f70db7e0577bf94358a9d83b4b64d8c8d1dbabadc8e2e7da056c01fce5b1
7
- data.tar.gz: 508e86e0a9c4db4f3e7d5e691d9d5e4bf42656de4fcd52f0acd42acbb92836dc84d928aae9125466622cbde55a3a6a9f31482f3853aa805c890ac87451c1ee15
6
+ metadata.gz: f3ea51eff598f91be9dfdcc43fc14e858e56839c956949d38777bbf551fea15021caa25264d4f9c70ca7e8086c8beb976cd9249a8efdf2fba4c2d1572558ba34
7
+ data.tar.gz: f27e7c904060eb9ae83807b8c4028db4e7cfbfecd963bb3ff5d4af30d417ce8a820b9ff99eceb58d972916b0ee948f81e1a31e9f001739c3e06108ca3aa9f4c9
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  `Bisu` adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [1.10.0](https://github.com/hole19/bisu/releases/tag/v1.10.0)
6
+ Released on 2021/08/30
7
+
8
+ #### Fixed
9
+ - Google Spreadsheet option stopped working due to a change in the API. This version fixes that.
10
+
11
+ Note: You'll need a new setup. View README.
12
+
5
13
  ## [1.9.0](https://github.com/hole19/bisu/releases/tag/v1.9.0)
6
14
  Released on 2021/05/21
7
15
 
data/Gemfile.lock CHANGED
@@ -32,7 +32,6 @@ GEM
32
32
  addressable (>= 2.3.6)
33
33
  crack (>= 0.3.2)
34
34
  hashdiff
35
- xml-simple (1.1.8)
36
35
 
37
36
  PLATFORMS
38
37
  ruby
@@ -44,10 +43,9 @@ DEPENDENCIES
44
43
  rspec-its
45
44
  safe_yaml (~> 1.0)
46
45
  webmock (~> 1.20)
47
- xml-simple (~> 1.1)
48
46
 
49
47
  RUBY VERSION
50
48
  ruby 2.7.3p183
51
49
 
52
50
  BUNDLED WITH
53
- 2.1.4
51
+ 2.2.26
@@ -42,7 +42,9 @@ module Bisu
42
42
  end
43
43
  end
44
44
 
45
- def get(url)
45
+ def get(url, max_redirects = 1)
46
+ raise "Bisu::Source::GoogleSheet: Too may redirects" if max_redirects == -1
47
+
46
48
  uri = URI(url)
47
49
 
48
50
  http = Net::HTTP.new(uri.host, uri.port)
@@ -52,6 +54,8 @@ module Bisu
52
54
  request = Net::HTTP::Get.new(uri.request_uri)
53
55
  response = http.request(request)
54
56
 
57
+ return get(response['location'], max_redirects - 1) if response.is_a? Net::HTTPRedirection
58
+
55
59
  raise "Bisu::Source::GoogleSheet: Http Error #{response.body}" if response.code.to_i >= 400
56
60
 
57
61
  response.body
data/lib/bisu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bisu
2
- VERSION = '1.10.0'
2
+ VERSION = '1.10.1'
3
3
  VERSION_UPDATED_AT = '2021-08-30'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bisu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joaoffcosta