spreadsheet 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +10 -0
- data/lib/spreadsheet.rb +1 -1
- data/lib/spreadsheet/worksheet.rb +8 -8
- 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: 710a6b1c3595e94076ff8bb8305aa447cd614433
|
4
|
+
data.tar.gz: 65627e4d0d2b4b0ddf8a7d2a35e672bbac16ac8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b050b8a2835b6f1c0570be259cfd512511032aed19e48ef4a5d9d17ad83efaed9d660b394febf815baf995bbf12e999a45912a88d152727a2a4c0687c3471e
|
7
|
+
data.tar.gz: 3b2a18c5496cc5fa6940b144c474de1a760b1394fc82d36fd24a493aa3a991902170a211a6aeb04054c4806325ba61573b558d8f381baf3949fc59c816e2c78a
|
data/History.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 1.1.7 / 15.03.2018
|
2
|
+
|
3
|
+
commit 34ece5f4e7ab2907c4a8809d96ef2a33b7ccd4b5
|
4
|
+
Author: Maarten Brouwers <github@murb.nl>
|
5
|
+
Date: Thu Mar 15 15:10:23 2018 +0100
|
6
|
+
|
7
|
+
* shadowing outer local variable - i
|
8
|
+
|
9
|
+
* Running rake resulted in the following warning: `lib/spreadsheet/worksheet.rb:345: warning: shadowing outer local variable - i`; this patch fixes that.
|
10
|
+
|
1
11
|
### 1.1.6 / 12.03.2018
|
2
12
|
|
3
13
|
Author: Todd Hambley <thambley@travelleaders.com>
|
data/lib/spreadsheet.rb
CHANGED
@@ -325,19 +325,19 @@ module Spreadsheet
|
|
325
325
|
|
326
326
|
# detect last non-nil non-empty row if given last row is empty or nil
|
327
327
|
if row(@dimensions[1] - 1).empty? || row(@dimensions[1] - 1).compact.join('').empty?
|
328
|
-
|
328
|
+
row_size = @dimensions[1] - 1
|
329
329
|
@dimensions[1] = @dimensions[0]
|
330
330
|
# divide and conquer
|
331
|
-
while(
|
332
|
-
if row(
|
333
|
-
|
331
|
+
while(row_size - @dimensions[1] > 1) do
|
332
|
+
if row(row_size).empty? || row(row_size).compact.join('').empty?
|
333
|
+
row_size = @dimensions[1] + (((row_size - @dimensions[1]) + 1) / 2).to_i
|
334
334
|
else
|
335
|
-
_i = ((
|
336
|
-
@dimensions[1] =
|
337
|
-
|
335
|
+
_i = ((row_size - @dimensions[1]) / 2).to_i + 1
|
336
|
+
@dimensions[1] = row_size
|
337
|
+
row_size = row_size + _i
|
338
338
|
end
|
339
339
|
end
|
340
|
-
@dimensions[1] =
|
340
|
+
@dimensions[1] = row_size + 1
|
341
341
|
end
|
342
342
|
|
343
343
|
# detect first non-empty non-nil column if first column is empty or nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannes F. Wyss, Masaomi Hatakeyama, Zeno R.R. Davatz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-ole
|