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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22c554b9c27f9323b7eef974381b3ee34d1b6e56
4
- data.tar.gz: d66c64de3f5f9563f9dd2aebfc2dfc03056b16ed
3
+ metadata.gz: 710a6b1c3595e94076ff8bb8305aa447cd614433
4
+ data.tar.gz: 65627e4d0d2b4b0ddf8a7d2a35e672bbac16ac8f
5
5
  SHA512:
6
- metadata.gz: 966be6ab45b1dc2c414589f268337711375bc24c2f446f02701472f59b1bd72452ce86130a54e12f01a319049fef9be4f23dcb9ce7fdf7896b2e725ca8102d79
7
- data.tar.gz: 1bcba5210991a0c356b212aa7d96a0413ae920d1780cad142a52e570b2f97fe92ea60640fa6f2e070fd235ccce62ef369e2a087038ae649a424f6e4c9d8c5e5e
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>
@@ -46,7 +46,7 @@ module Spreadsheet
46
46
 
47
47
  ##
48
48
  # The version of Spreadsheet you are using.
49
- VERSION = '1.1.6'
49
+ VERSION = '1.1.7'
50
50
 
51
51
  ##
52
52
  # Default client Encoding. Change this value if your application uses a
@@ -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
- i = @dimensions[1] - 1
328
+ row_size = @dimensions[1] - 1
329
329
  @dimensions[1] = @dimensions[0]
330
330
  # divide and conquer
331
- while(i - @dimensions[1] > 1) do
332
- if row(i).empty? || row(i).compact.join('').empty?
333
- i = @dimensions[1] + (((i - @dimensions[1]) + 1) / 2).to_i
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 = ((i - @dimensions[1]) / 2).to_i + 1
336
- @dimensions[1] = i
337
- i = i + _i
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] = i + 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.6
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-12 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-ole