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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e6060ee213d9a665483b7c972cc354bd767aafa
4
- data.tar.gz: 46fcc424bacc87d6c5212fd566eaef58cd4de850
3
+ metadata.gz: 3f21c1e8346914b720e2a6541e519d6a87df463a
4
+ data.tar.gz: d64b40c205c85ee67df865f49fab835312e59e5b
5
5
  SHA512:
6
- metadata.gz: dbc8007b40526c59cce749835711a8f9b6c6bf7c553990f6027d6a88b348c4889966c949156a9ac6892963d8df7d1576790e15ee953d4e63fcc3361e5f314676
7
- data.tar.gz: 4a7a1f85ba8fe49c35b6b17c8dd66a8b4b3ba6134d471e1b7b750d31ed173ef0e5f50a157aa6b4b1eadde6704db50df5d1bd53e0250c1a6ded8fc9633ade47b9
6
+ metadata.gz: 4eb942e0eb42bb9075f9de93dcbc8236b795fa8a3089b2ffa8cbfd0f7a7c1630bb7b4f2e997ca375a787c4e81e756bd40429e1d61e9c29d8999f50efcad97ab8
7
+ data.tar.gz: a46ab34db12afe0b90d8c2673bd3363338af5c63ba332156865c09335ea598d1ad61cf3ed7c23234867f077eb277fc64ae530736b9639497a93c2cf607650df3
@@ -7,16 +7,7 @@ module Xlgrep
7
7
  end
8
8
 
9
9
  def book_for(file)
10
- klass, options =
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
@@ -1,3 +1,3 @@
1
1
  module Xlgrep
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-22 00:00:00.000000000 Z
11
+ date: 2013-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roo