csvql 0.1.5 → 0.1.6

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: 97d8dadd3d422fd894edcd30cf17af06332d570a
4
- data.tar.gz: 501c3926dccc65e86367aa9d82fe9192df4c0599
3
+ metadata.gz: 5e68503eec0dd74c109717ab1bedcb0ea3fc1a3f
4
+ data.tar.gz: 61183771ab2a1c321121b823f87004687afff0d5
5
5
  SHA512:
6
- metadata.gz: 5f96a8f0bf6162fcf2e710e1b79050aef0ab75bb04350a386da81c5cbf5d5077ee7dd1f9d96111956b61d040a6b4b68f2347286fa17ab57dbe4a1c8a4c1f15b6
7
- data.tar.gz: 8a6559ecfdf815918602a8d0e96a1513896a730a1a34c2ce4db602aa04e893356faca9785abe8a46ccd54abb0c0c582291a205ee5b05e8de2ca46fd2700203b8
6
+ metadata.gz: faa2fa4062e48a66cdc05fa7be6228958b5523012b5c5e733fd8a0cb5a1b41ce943037321558b44cc9364cdc499412c64ed1e5adda591e2b2bafa849f05fc21f
7
+ data.tar.gz: 810fa43a79cef5114f57b700edd9e8cc84ab62358ab61e3059111b8ee2532a05149a3828d63abc940a35cbfdc0fe7e5ad57374670b017cc02d9387c9e5d0ca5b
data/lib/csvql/csvql.rb CHANGED
@@ -89,9 +89,12 @@ module Csvql
89
89
  opt = OptionParser.new
90
90
  option = {}
91
91
 
92
+ # default
93
+ option[:header] = true
94
+
92
95
  opt.banner = "Usage: csvql [csvfile] [options]"
93
96
  opt.on("--console", "After all commands are run, open sqlite3 console with this data") {|v| option[:console] = v }
94
- opt.on("--header", "Treat file as having the first row as a header row") {|v| option[:header] = v }
97
+ opt.on("--[no-]header", "Treat file as having the first row as a header row") {|v| option[:header] = v }
95
98
  opt.on('--output-dlm="|"', "Output delimiter (|)") {|v| option[:output_dlm] = v }
96
99
  opt.on("--save-to=FILE", "If set, sqlite3 db is left on disk at this path") {|v| option[:save_to] = v }
97
100
  opt.on("--skip-comment", "Skip comment lines start with '#'") {|v| option[:skip_comment] = v }
data/lib/csvql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Csvql
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - YANO Satoru
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3