idata 0.1.17 → 0.1.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1629a0e3b0dabec67d99083c7888ec750673a1d5
4
- data.tar.gz: 96e2dda95a4e45d84b9d9a54e5988c206a177931
3
+ metadata.gz: 3e94adfbde8f133b28e77ab626f01732e2bdfe83
4
+ data.tar.gz: 934bb9e274698f0186b626a10cb9e4d673dc4965
5
5
  SHA512:
6
- metadata.gz: 65d72f817830ee6f5a910c957b854b22dd43514ecc2587f2c13ea8f95be94f77cad6f1e23a678bffbd0229f914b633fa1d0dfd6273e727dac8911ecf129e8d96
7
- data.tar.gz: 80f391b085ce91a66ab61e8dfcae7159c69bf90eb8bc56f669af5e4177d829ebd92dd283ff900114ce4d06a749a35fc92c1905bd3bd344370c1b7fd0685857ed
6
+ metadata.gz: 0dfee971bcaff871f67bba736a26154d41bedc4e8b255e3a750134aef37b957de8ee711cac76a51206f846a541e465dee59c05b30a9650cdb907dc412fc7a7a9
7
+ data.tar.gz: b00bae5a527e4150764feb10c0aa3b4f9520959917a6898246a7217591bf477432407ba02f04533197584c69e88b6a90b8e38fdedca8a3fc8baeb334f2fb323e
@@ -113,7 +113,7 @@ EXAMPLES
113
113
  -------------------------------------------------------
114
114
 
115
115
  iexport --host=localhost --username=postgres --database=db --table=items \\
116
- --output=/tmp/data.csv --format=csv --delim="\\t" --linebreak=$'\\r\\n' \\
116
+ --output=/tmp/data.csv --format=csv --delim=$"\\t" --linebreak=$'\\r\\n' \\
117
117
  --select="id, name AS vendor_name, age" --where="active = 1"
118
118
 
119
119
  eos
@@ -159,7 +159,7 @@ if $options[:database].nil?
159
159
  end
160
160
 
161
161
  if $options[:username].nil?
162
- puts "\nPlease specify PostgreSQL username: -d\n\n"
162
+ puts "\nPlease specify PostgreSQL username: -u\n\n"
163
163
  exit
164
164
  end
165
165
 
data/bin/iload CHANGED
@@ -21,9 +21,9 @@ CSV_DEFAULT_QUOTE = '"'
21
21
 
22
22
  $options = {}
23
23
  parser = OptionParser.new("", 24) do |opts|
24
- opts.banner = "\nProgram: Data Loader\nAuthor: MCKI\n\n"
24
+ opts.banner = "\nProgram: Data Loader\nAuthor: MCKi Team\nDescription: the program takes an input text file and creates a corresponding data table\n\n"
25
25
 
26
- opts.on("-i", "--input INPUT", "INPUT text file (fixed-width)") do |v|
26
+ opts.on("-i", "--input INPUT", "Input text file") do |v|
27
27
  $options[:input] = v
28
28
  end
29
29
 
@@ -35,7 +35,7 @@ parser = OptionParser.new("", 24) do |opts|
35
35
  $options[:delim] = v
36
36
  end
37
37
 
38
- opts.on("--null NULL", "") do |v|
38
+ opts.on("--null VALUE", "Value which is considered NULL") do |v|
39
39
  $options[:null] = v
40
40
  end
41
41
 
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
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: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nghi Pham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler