idata 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/iload +8 -7
- 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: 4bd02de373c77ff2148e11be97b2c22ca598fe87
|
|
4
|
+
data.tar.gz: 6b8a5f9d850a486298a0651c322f677e17d94d2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d47bbde01c339508a35e31402a079cb697ed22af80bf3f4263e87d915631a0b3695c42dd4bd4f0a3e09082c4a934423409ccb9932978d86fcf170d6f993df25a
|
|
7
|
+
data.tar.gz: b1baf194e70a0c6837b8afb91ed42eaf4eec26f14d1eb151a94d7f2a90d012104a186c47469513454c6efeec616dd12053839243aa466af674d545871f8b37b3
|
data/bin/iload
CHANGED
|
@@ -111,6 +111,14 @@ rescue SystemExit => ex
|
|
|
111
111
|
exit
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
# extra options
|
|
115
|
+
$options[:client] = ARGV[0] if ARGV[0]
|
|
116
|
+
|
|
117
|
+
# cross-reference
|
|
118
|
+
if $options[:client] and ($options[:host] or $options[:database] or $options[:username] or $options[:password])
|
|
119
|
+
error "once client name (#{$options[:client]}) is specified, -h/-u/-d/-p/-l is no longer needed"
|
|
120
|
+
end
|
|
121
|
+
|
|
114
122
|
# default
|
|
115
123
|
$options[:format].upcase! if $options[:format]
|
|
116
124
|
$options[:format] ||= CSV_DEFAULT_FORMAT
|
|
@@ -120,9 +128,6 @@ $options[:delim] ||= CSV_DEFAULT_DELIMITER
|
|
|
120
128
|
$options[:quote] ||= CSV_DEFAULT_QUOTE
|
|
121
129
|
$options[:drop] ||= false
|
|
122
130
|
|
|
123
|
-
# extra options
|
|
124
|
-
$options[:client] = ARGV[0] if ARGV[0]
|
|
125
|
-
|
|
126
131
|
# validate parameters
|
|
127
132
|
if $options[:input].nil?
|
|
128
133
|
error "please specify input file: -i"
|
|
@@ -144,10 +149,6 @@ if $options[:table].nil?
|
|
|
144
149
|
error "Please specify table name: -t"
|
|
145
150
|
end
|
|
146
151
|
|
|
147
|
-
if $options[:client] and ($options[:host] or $options[:database] or $options[:username] or $options[:password])
|
|
148
|
-
error "once client name (#{$options[:client]}) is specified, -h/-u/-d/-p is no longer needed"
|
|
149
|
-
end
|
|
150
|
-
|
|
151
152
|
if ARGV.count > 1
|
|
152
153
|
error "too many arguments!"
|
|
153
154
|
end
|
data/lib/idata/version.rb
CHANGED