csvql 0.2.4 → 0.2.5

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: 0dde4233623d84d9417709ae86a5cc854ed8a6e5
4
- data.tar.gz: 36e69e39b2f9c5a5dce0699942afff427f4ab753
3
+ metadata.gz: bed0a5cc8a2105697059068f974285f7759d6740
4
+ data.tar.gz: eb9f67e00d7fa495e66898db8ec63a7643db9e1f
5
5
  SHA512:
6
- metadata.gz: 2673f91dd259536d838e20d4e1d12e9493d972ce2a0151be669cbb20be983f1481a4d111ade364d5a72aab92719eec00d051b6943f91373ed1667dbac54b4bd6
7
- data.tar.gz: 072b5d5f0aae880362953600b288f3c412d771f0313eb213137e21209a269160dd7f3b8f2e7b2ec01eaecc08842b5c9c5f33bb3079f796f0c24064945a6db7f6
6
+ metadata.gz: da2ed707579ba0a38405396db9844eb39b1a5f60464fdb955940ee8faba65fd35b966d964237321be42bb71802fda8391b990db9e9cb89192b6755de2ca35c6f
7
+ data.tar.gz: 34361aedb693e113b7e48ca4a5b3d1048d793ba78dd3fcb8919ce0e7884ca550d5e24afa7c815dcf5ee807b71e3e19b6ea3e4dc4ef9df872369383cae0b65797
data/lib/csvql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Csvql
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/lib/csvql.rb CHANGED
@@ -18,7 +18,7 @@ module Csvql
18
18
  # option[:header] = true
19
19
 
20
20
  opt_parser.on("--console", "After all commands are run, open sqlite3 console with this data") {|v| opt.console = v }
21
- opt_parser.on("--[no-]header", "Treat file as having the first row as a header row") {|v| opt.header = v }
21
+ opt_parser.on("--header", "Treat file as having the first row as a header row") {|v| opt.header = v }
22
22
  opt_parser.on('--output-dlm="|"', "Output delimiter (|)") {|v| opt.output_dlm = v }
23
23
  opt_parser.on("--save-to=FILE", "If set, sqlite3 db is left on disk at this path") {|v| opt.save_to = v }
24
24
  opt_parser.on("--append", "Append mode (not dropping any tables)") {|v| opt.append = v }
data/spec/csvql_spec.rb CHANGED
@@ -69,7 +69,7 @@ EOL
69
69
 
70
70
  it 'no header' do
71
71
  expect(capture {
72
- Csvql.run([csvfile, "--no-header", "--where", "typeof(c0)!='integer'"])
72
+ Csvql.run([csvfile, "--where", "typeof(c0)!='integer'"])
73
73
  }).to eq(<<EOL)
74
74
  id|name|age
75
75
  EOL
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - YANO Satoru