google_spreadsheet_fetcher 1.3.0 → 1.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31e87471fab356c69fa5e7459604c56f2d11f72a0ec650f9c9f35db74b9ac568
|
4
|
+
data.tar.gz: 203cdf0b177bab7864e92244316ae5d4673ef7770d8811910146f1549bbb1840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd989ea11274389253191e93524693ba7133650b08fb364b5406c77b7b62f55631d6604347e206579c3fa185018887bfe1c50e594cb2beda23d635137a8f9ab
|
7
|
+
data.tar.gz: e6292cc11e63682c90c74884ee4eb8676bc7d1e1d652fcb1fe59b994f55c0303b348428c95ab6c58c72cc8eddfcf13ff7b5582a7383c86b59c0948539cf3cf29
|
@@ -51,8 +51,6 @@ module GoogleSpreadsheetFetcher
|
|
51
51
|
else
|
52
52
|
rows.slice!(0, skip)
|
53
53
|
rows.map { |r| fill_array(r, count) }
|
54
|
-
# rows.map { |r| items = Array.new(count, ""); items[0..r.count - 1] = r; items }
|
55
|
-
# def fill_array(items, count, fill: "")
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
@@ -94,10 +92,7 @@ module GoogleSpreadsheetFetcher
|
|
94
92
|
end
|
95
93
|
|
96
94
|
def fill_array(items, count, fill: "")
|
97
|
-
|
98
|
-
results = Array.new(max_count, fill)
|
99
|
-
results[0..items.count - 1] = items
|
100
|
-
results
|
95
|
+
items + (count - items.count).times.map { fill }
|
101
96
|
end
|
102
97
|
end
|
103
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_spreadsheet_fetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|