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: 5a1d4d60f1365915f18a079381ea39c070746355c7e1311c4ec5e82ad2fe1787
4
- data.tar.gz: 752b32a2a75a0861961a9e88ac1346d053f8d6afb8cb8c21356d947bcdcfeca5
3
+ metadata.gz: 31e87471fab356c69fa5e7459604c56f2d11f72a0ec650f9c9f35db74b9ac568
4
+ data.tar.gz: 203cdf0b177bab7864e92244316ae5d4673ef7770d8811910146f1549bbb1840
5
5
  SHA512:
6
- metadata.gz: b1868fe75af23fdda5750b7cf89e7ace9662d782b94de1d9a6eef6e28b92db459532ead2afb430a127dfdc814c5d451911dbd8a6cd806b58d59536920666301e
7
- data.tar.gz: db9ae90340519957cabdea6bf25b686b243312d23ba541443e15cfb14a3c7576f0e9f5b1c185a6185194a7af11eeed64002ce4643b738775aa7972039de3733e
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
- max_count = [count, items.count].max
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
@@ -1,3 +1,3 @@
1
1
  module GoogleSpreadsheetFetcher
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  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.3.0
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-04 00:00:00.000000000 Z
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