idata 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idata/detector.rb +9 -0
- data/lib/idata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b446629a2535fec87a38c637e54b5090cc1e310d
|
4
|
+
data.tar.gz: 6e9218661273901283cc462b963308bf77fa4bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5dcb3cb2948d481babfd97289065cb226cd5e3008d7a5d83f0c7d7c415f3b7925d31e30d3f1f09d89f22af0132219d3c154ef9d01335ed9aa70de5193d88f3
|
7
|
+
data.tar.gz: 77de41b35404c0619db14b2b6ced2b62feabdc62f761fd20cde7069ba2f568d06188424eac6ea4d620c07afe5c5d55962885f14b856abe72fc410ef107f64142
|
data/lib/idata/detector.rb
CHANGED
@@ -4,6 +4,15 @@ require 'csv'
|
|
4
4
|
Encoding.default_internal = Encoding::UTF_8
|
5
5
|
Encoding.default_external = Encoding::UTF_8
|
6
6
|
|
7
|
+
class Array
|
8
|
+
def to_h
|
9
|
+
h = {}
|
10
|
+
self.each do |e|
|
11
|
+
h[e.first] = e.last
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
7
16
|
module Idata
|
8
17
|
class Detector
|
9
18
|
DEFAULT_DELIMITER = ","
|
data/lib/idata/version.rb
CHANGED