xlgrep 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xlgrep/context.rb +1 -10
- data/lib/xlgrep/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: 3f21c1e8346914b720e2a6541e519d6a87df463a
|
4
|
+
data.tar.gz: d64b40c205c85ee67df865f49fab835312e59e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eb942e0eb42bb9075f9de93dcbc8236b795fa8a3089b2ffa8cbfd0f7a7c1630bb7b4f2e997ca375a787c4e81e756bd40429e1d61e9c29d8999f50efcad97ab8
|
7
|
+
data.tar.gz: a46ab34db12afe0b90d8c2673bd3363338af5c63ba332156865c09335ea598d1ad61cf3ed7c23234867f077eb277fc64ae530736b9639497a93c2cf607650df3
|
data/lib/xlgrep/context.rb
CHANGED
@@ -7,16 +7,7 @@ module Xlgrep
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def book_for(file)
|
10
|
-
|
11
|
-
case ext = File.extname(file)
|
12
|
-
when ".ods" then Roo::OpenOffice
|
13
|
-
when ".xls" then Roo::Excel
|
14
|
-
when ".xlsx" then Roo::Excelx
|
15
|
-
when ".csv" then Roo::CSV
|
16
|
-
when ".tsv" then [Roo::CSV, {csv_options: {col_sep: "\t"}}]
|
17
|
-
else raise ArgumentError, "Unsupported file extension: #{ext.inspect}"
|
18
|
-
end
|
19
|
-
klass.new(file, options)
|
10
|
+
Roo::Spreadsheet.open(file)
|
20
11
|
end
|
21
12
|
|
22
13
|
BASE_CHAR_ORDER = 'A'.ord
|
data/lib/xlgrep/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xlgrep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roo
|