middleman-google_drive 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_drive.rb +1 -1
- data/lib/middleman-google_drive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 807f06b351002d6fc92541c068eb1b7ab3b752a2
|
4
|
+
data.tar.gz: 1eee546218576b35ce5d82955d963195dfe7b93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a8be8d0b27b9bf609f8be34cc52f7b8317831043ec4c55e92d659bbb9b6d3ff85437f538c96aecfce0d8c1695c3a0b96962beefa670af8b87e642834298d8e
|
7
|
+
data.tar.gz: 20e40768a296d8b47d89a8692ba87784cf89d9208598b84eb90ae0baf103e1f47ed201a319a8c51b903c520bb5731643a3b88a7d29d87d91a081d36a50a0408f
|
data/lib/google_drive.rb
CHANGED
@@ -223,7 +223,7 @@ class GoogleDrive
|
|
223
223
|
return [] if table.length < 2
|
224
224
|
header = table.shift # Get the header row
|
225
225
|
# remove blank rows
|
226
|
-
table.reject! { |row| row.map { |r| r.to_s }.reduce(:+).strip.empty? }
|
226
|
+
table.reject! { |row| row.nil? || row.map { |r| r.to_s }.reduce(:+).strip.empty? }
|
227
227
|
table.map do |row|
|
228
228
|
# zip headers with current row, convert it to a hash
|
229
229
|
header.zip(row).to_h unless row.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-google_drive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Mark
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|