idata 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f09fd4a5e2e638192e76b3ca2b703a78a2c8f53b
4
- data.tar.gz: c23665e7c90d463a7b9df4fec2d1ef64c794ea9b
3
+ metadata.gz: d55c439228876f9869d92de73084b23fcc7b2c6f
4
+ data.tar.gz: 20b014b0a45f5b567505aaf484e833173ba02180
5
5
  SHA512:
6
- metadata.gz: 548ecde59f31bdc4afc5eb3bf674ffc858c19c1bc78f36f42a60a4e07d80e9cc103965fec1353718fba8254222f50dc4e363aa5aa811da47e9471b78f7e29ebe
7
- data.tar.gz: 24f64401382182e5fb549d962ca7e9bac9ea403ff7ce447b0d353b5ccfe41f88229c6aff54a98ff12212b6d137c7dcba1b134e16838984b9966064585d4957ef
6
+ metadata.gz: d78eb5b5f6b7121063beada6be0473530cf3de581c4271f1adf9b138b1848c09420e19ebad287e6a2c9375bf1d03e314c3f7e9178b8bfc1296586e91f824f4a6
7
+ data.tar.gz: 80c935fbd64f007a657a699eade592c293251c1301d6658c507660199899ce96f2acec398654f60127d431a18ef8285a570792ec392b9fd7725d6f486052cbda
data/bin/ieval CHANGED
@@ -79,7 +79,14 @@ rescue SystemExit => ex
79
79
  exit
80
80
  end
81
81
 
82
- # Certain arguments are required
82
+ # Load parameters from ENVIRONMENT if exist
83
+ $options[:host] ||= ENV['HOST']
84
+ $options[:username] ||= ENV['USERNAME']
85
+ $options[:password] ||= ENV['PASSWORD']
86
+ $options[:listen] ||= ENV['LISTEN']
87
+ $options[:database] ||= ENV['DATABASE']
88
+
89
+ # validate parameters
83
90
  if $options[:eval].nil?
84
91
  puts "\nPlease specify Ruby script to execute: -e\n\n"
85
92
  exit
data/bin/iexport CHANGED
@@ -125,6 +125,14 @@ rescue SystemExit => ex
125
125
  exit
126
126
  end
127
127
 
128
+ # Load parameters from ENVIRONMENT if exist
129
+ $options[:host] ||= ENV['HOST']
130
+ $options[:username] ||= ENV['USERNAME']
131
+ $options[:password] ||= ENV['PASSWORD']
132
+ $options[:listen] ||= ENV['LISTEN']
133
+ $options[:database] ||= ENV['DATABASE']
134
+
135
+ # validate parameters
128
136
  if $options[:format].nil?
129
137
  puts "\nPlease specify input file format: -f\n\n"
130
138
  exit
data/bin/iload CHANGED
@@ -103,6 +103,14 @@ rescue SystemExit => ex
103
103
  exit
104
104
  end
105
105
 
106
+ # Load parameters from ENVIRONMENT if exist
107
+ $options[:host] ||= ENV['HOST']
108
+ $options[:username] ||= ENV['USERNAME']
109
+ $options[:password] ||= ENV['PASSWORD']
110
+ $options[:listen] ||= ENV['LISTEN']
111
+ $options[:database] ||= ENV['DATABASE']
112
+
113
+ # validate parameters
106
114
  if $options[:input].nil?
107
115
  puts "\nPlease specify input file: -i\n\n"
108
116
  exit
data/bin/ipatch CHANGED
@@ -67,6 +67,14 @@ rescue SystemExit => ex
67
67
  exit
68
68
  end
69
69
 
70
+ # Load parameters from ENVIRONMENT if exist
71
+ $options[:host] ||= ENV['HOST']
72
+ $options[:username] ||= ENV['USERNAME']
73
+ $options[:password] ||= ENV['PASSWORD']
74
+ $options[:listen] ||= ENV['LISTEN']
75
+ $options[:database] ||= ENV['DATABASE']
76
+
77
+ # validate parameters
70
78
  if $options[:query].nil?
71
79
  puts "\nPlease specify SQL query: -q\n\n"
72
80
  exit
data/bin/ivalidate CHANGED
@@ -124,6 +124,14 @@ rescue SystemExit => ex
124
124
  exit
125
125
  end
126
126
 
127
+ # Load parameters from ENVIRONMENT if exist
128
+ $options[:host] ||= ENV['HOST']
129
+ $options[:username] ||= ENV['USERNAME']
130
+ $options[:password] ||= ENV['PASSWORD']
131
+ $options[:listen] ||= ENV['LISTEN']
132
+ $options[:database] ||= ENV['DATABASE']
133
+
134
+ # validate parameters
127
135
  if $options[:table].nil?
128
136
  puts "\nPlease specify table name: -t\n\n"
129
137
  exit
data/lib/idata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
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.23
4
+ version: 0.1.24
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-06-25 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler