ooxl 0.0.1.4 → 0.0.1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ooxl/version.rb +1 -1
- data/lib/ooxl/xl_objects/sheet/data_validation.rb +5 -3
- 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: d53d74f8c5518f2ce858f6b9ee7afde8e228eb96
|
4
|
+
data.tar.gz: 6c49d3682e2a656fc60564bbaa74084b12a24385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9901219422075aa176e5e19b6414f24322c59dfe1ae5261c7b20176b6f32e78368114a763b16c370933d314bd02db6aff62aee106495559a59020a3b4f87cc
|
7
|
+
data.tar.gz: dfb7e1119e258bdb7efd21f024b1c4f300bf7d77a47c5775cd86840afe1f3c069f795ad0b79a3fba4645727e7da73f13a065b5a5c422dd3900c4f7352315fe80
|
data/lib/ooxl/version.rb
CHANGED
@@ -7,7 +7,9 @@ class OOXL
|
|
7
7
|
return if cell_id.blank?
|
8
8
|
cell_letter = cell_id.gsub(/[\d]/, '')
|
9
9
|
index = cell_id.gsub(/[^\d]/, '').to_i
|
10
|
-
range = sqref_range.find
|
10
|
+
range = sqref_range.find do |single_cell_letter_or_range, row_range|
|
11
|
+
single_cell_letter_or_range.is_a?(Range) ? single_cell_letter_or_range.cover?(cell_letter) : single_cell_letter_or_range == cell_letter
|
12
|
+
end
|
11
13
|
range.last.include?(index) if range.present?
|
12
14
|
end
|
13
15
|
|
@@ -33,7 +35,7 @@ class OOXL
|
|
33
35
|
def sqref_range
|
34
36
|
@sqref_range ||= begin
|
35
37
|
# "BH5:BH271 BI5:BI271"
|
36
|
-
if !sqref.include?(':')
|
38
|
+
if !sqref.include?(':') && !sqref.include?(' ')
|
37
39
|
cell_letter = sqref.gsub(/[\d]/, '')
|
38
40
|
index = sqref.gsub(/[^\d]/, '').to_i
|
39
41
|
{ cell_letter => (index..index)}
|
@@ -61,7 +63,7 @@ class OOXL
|
|
61
63
|
start_index, end_index = sqref_without_letters.split(':').map(&:to_i)
|
62
64
|
[(start_letter..end_letter),(start_index..end_index)]
|
63
65
|
else
|
64
|
-
[(splitted_sqref..splitted_sqref),(sqref_without_letters..sqref_without_letters)]
|
66
|
+
[(splitted_sqref..splitted_sqref),(sqref_without_letters.to_i..sqref_without_letters.to_i)]
|
65
67
|
end
|
66
68
|
end
|
67
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ooxl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.4
|
4
|
+
version: 0.0.1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Mones
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|