idata 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/iload +8 -3
- data/lib/idata/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e88b2999fb755d16ad39f7d741c68fc8385946c
|
4
|
+
data.tar.gz: 2714cc9d5e623411fda05356002a8d0a6d62b7ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b02f3f058dc11ec1f32da3c7a26a79e4f582de28935dc7f55fb7e2989ae327be911c654ef8b88867deafad1d7473be53c6bfe27ff68581de5f40514cbbdbeb7c
|
7
|
+
data.tar.gz: 519caaf305b577d1f896eca043ab1f8fc6820d3db2b7d557abbe3b15679d5b72c3d8fae4e7de4aaffdd2101c117ef60ca9546383d3df6960cfc24616e8301ad4
|
data/bin/iload
CHANGED
@@ -51,7 +51,7 @@ parser = OptionParser.new("", 24) do |opts|
|
|
51
51
|
$options[:input] = v
|
52
52
|
end
|
53
53
|
|
54
|
-
opts.on("-f", "--format FORMAT", "Input file format, available values include (CSV|FX) ") do |v|
|
54
|
+
opts.on("-f", "--format FORMAT", "Input file format, available values include (CSV|FX|RPT) ") do |v|
|
55
55
|
$options[:format] = v
|
56
56
|
end
|
57
57
|
|
@@ -71,7 +71,7 @@ parser = OptionParser.new("", 24) do |opts|
|
|
71
71
|
$options[:table] = v
|
72
72
|
end
|
73
73
|
|
74
|
-
opts.on("--drop", "") do |v|
|
74
|
+
opts.on("--drop", "Drop the table if it already exists") do |v|
|
75
75
|
$options[:drop] = v
|
76
76
|
end
|
77
77
|
|
@@ -308,7 +308,12 @@ class MyParser
|
|
308
308
|
|
309
309
|
def load_fx
|
310
310
|
# Load data
|
311
|
-
data = IO.read($options[:input])
|
311
|
+
data = IO.read($options[:input])
|
312
|
+
|
313
|
+
# Remove the leading "FEFF" char (Byte Order Mark) from the data
|
314
|
+
# Such char usually exists in .RPT file
|
315
|
+
data.gsub!(["feff".hex].pack('U*'), '')
|
316
|
+
data = data.split(/[\r\n]+/)
|
312
317
|
header = data.shift
|
313
318
|
headers = header.scan(/[^\s]+\s+/)
|
314
319
|
|
data/lib/idata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nghi Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,8 +123,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.4.6
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Data validation utilities
|
130
130
|
test_files: []
|
131
|
+
has_rdoc:
|