idata 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/iexport +4 -4
  3. data/lib/idata/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d55c439228876f9869d92de73084b23fcc7b2c6f
4
- data.tar.gz: 20b014b0a45f5b567505aaf484e833173ba02180
3
+ metadata.gz: 6e16b69f104f9c8098ea825a6f577d72fc69da11
4
+ data.tar.gz: 34f311bac4c9a547c2885199de374330c5e6ac5f
5
5
  SHA512:
6
- metadata.gz: d78eb5b5f6b7121063beada6be0473530cf3de581c4271f1adf9b138b1848c09420e19ebad287e6a2c9375bf1d03e314c3f7e9178b8bfc1296586e91f824f4a6
7
- data.tar.gz: 80c935fbd64f007a657a699eade592c293251c1301d6658c507660199899ce96f2acec398654f60127d431a18ef8285a570792ec392b9fd7725d6f486052cbda
6
+ metadata.gz: 2b6f9a1013a17610307ca5019811981a83e0c87ba31cc3cf46e371434b244bdd7456f8c3674df11466e5f38a72333cedbe2647136ee06f349e8531c59f90a461
7
+ data.tar.gz: fc7a3349bc137e8d5d8a60b54fd919a6d7d5bf65bf05ee366095d9cb623e5678c945879c29612901e8f30b54bd3d43c2b2c05f22f3e072c5b0df7b5d8e65c766
data/bin/iexport CHANGED
@@ -64,11 +64,11 @@ parser = OptionParser.new("", 24) do |opts|
64
64
  $options[:linebreak] = v
65
65
  end
66
66
 
67
- opts.on("-t", "--table TABLE", "Table name to be created") do |v|
67
+ opts.on("-t", "--table TABLE", "") do |v|
68
68
  $options[:table] = v
69
69
  end
70
70
 
71
- opts.on("-s", "--select FIELDS", "Fields to export") do |v|
71
+ opts.on("-s", "--select FIELDS", "") do |v|
72
72
  $options[:select] = v
73
73
  end
74
74
 
@@ -146,8 +146,8 @@ if !SUPPORTED_INPUT_FORMATS.include?($options[:format])
146
146
  exit
147
147
  end
148
148
 
149
- if $options[:table].nil?
150
- puts "\nPlease specify SQL table name: -t\n\n"
149
+ if $options[:table].nil? && $options[:query].nil?
150
+ puts "\nPlease specify SQL table name (-t) or a custom query (-q)\n\n"
151
151
  exit
152
152
  end
153
153
 
data/lib/idata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
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.24
4
+ version: 0.1.25
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-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler