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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1aa4b5c56f50e75b43503e3e22b4eecf252bf6a
4
- data.tar.gz: 5164ba00082cea17a09e455504199133ff63ec9a
3
+ metadata.gz: b446629a2535fec87a38c637e54b5090cc1e310d
4
+ data.tar.gz: 6e9218661273901283cc462b963308bf77fa4bbb
5
5
  SHA512:
6
- metadata.gz: b32d91558c56d44306b5343149b2d72668f035312f82a34b03f9be2e60d8072675f2b10bd165a4165448ce7c4d14fa904f4476214fd3369c4195e1c672ad5a6f
7
- data.tar.gz: 86514bdfe04e659491ef7afe685e05c6eab2f1ffeffbe42477831137d38e225bfdda8d8b4f8fcc6904fef0cc3c703572b42a8cbc51844b6c3db0275cbce43d37
6
+ metadata.gz: fd5dcb3cb2948d481babfd97289065cb226cd5e3008d7a5d83f0c7d7c415f3b7925d31e30d3f1f09d89f22af0132219d3c154ef9d01335ed9aa70de5193d88f3
7
+ data.tar.gz: 77de41b35404c0619db14b2b6ced2b62feabdc62f761fd20cde7069ba2f568d06188424eac6ea4d620c07afe5c5d55962885f14b856abe72fc410ef107f64142
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "1.2.9"
2
+ VERSION = "1.2.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nghi Pham