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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/iload +8 -7
  3. data/lib/idata/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45d9ad3aa3448f33bbae663345c40e37f2d93ab6
4
- data.tar.gz: 55b2264c03d2554b5d784cb2bc30a1a1fa294555
3
+ metadata.gz: 4bd02de373c77ff2148e11be97b2c22ca598fe87
4
+ data.tar.gz: 6b8a5f9d850a486298a0651c322f677e17d94d2e
5
5
  SHA512:
6
- metadata.gz: 0f85c264b07d477ae9227f7732e47a2f81d78504fd947dee3615ca25c86d60e1b319452ee42a223ef2bdc8ecbb801b653ba008e19d726dd6924773418e03d4c1
7
- data.tar.gz: a354d23e196ea2155f70be07d9239d96a96943e2e8b495c1a430034e689783fd2fcb2f00140c72d0ab2ff0a9ecd8b9772653a3a3dd99d50125d1d308f230bca9
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
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nghi Pham