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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -3
- data/lib/bisu/source/google_sheet.rb +5 -1
- data/lib/bisu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41fa600d8b33846f4a860595f47093d7105a79f7690968c4b3d0428fec0936ea
|
4
|
+
data.tar.gz: 2f4fed77d3e7b4688c8c0dd77dff43f96c32f0e52f2ebde3343115c0f25249cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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