csvql 0.0.1 → 0.0.2

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: 5cd5503b923231ad59d08bbc77597860c4f9a711
4
- data.tar.gz: f92d26460d9e657a1ef0c3b0990060e00b5b9bb4
3
+ metadata.gz: a120305182e435bae2f10105391d3fa58715a84e
4
+ data.tar.gz: e97b490524ad746db681ce228bdfdf0063dc2fef
5
5
  SHA512:
6
- metadata.gz: 45f5ee87afaaf81547da46f33b18a372f35efab8275f8937cf12ff822a197fd7bf4498293cc418215a971ca9cb832a6c8e6efcc221de0ed7a91cf6e5a0106f7b
7
- data.tar.gz: 0d7139ffbfea264e79e7b7f2aeced813454d652041db8a79bb5be8cff0c71a27a7c85769b238e30a21bfe608d40746c280aaf50cabcb3e45cbfbbfd5730b4d0d
6
+ metadata.gz: da2c3be95c6d6f53f834386b75e80216119e31b3ba626be0e2665e895c7086ea71f8ba8e90d2820974542698c6c2df67a121d4cc2fd21b6b29499f7a64c3517d
7
+ data.tar.gz: 96cea0878dcc53847cffe08c762cc0d2ca96514c0da5d86b13ed04bf1445fc708f977463adf1c52507c8d54693c0017082afe7d0c3d5badc8116433e1151f642
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Csvql
2
2
 
3
- TODO: Write a gem description
3
+ Csvql is inspired by [TextQL](https://github.com/dinedal/textql).
4
4
 
5
5
  ## Installation
6
6
 
data/lib/csvql/csvql.rb CHANGED
@@ -81,9 +81,8 @@ module Csvql
81
81
  end
82
82
 
83
83
  tbl = TableHandler.new(option[:save_to], option[:console])
84
- csvfile = option[:source] ? File.open(option[:source]) : STDIN
84
+ csvfile = option[:source] ? File.open(option[:source]) : $stdin
85
85
  csvfile.each.with_index(1) do |line,i|
86
- line = line.strip
87
86
  next if option[:skip_comment] && line.start_with?("#")
88
87
  row = NKF.nkf('-w', line).parse_csv
89
88
  if i == 1
data/lib/csvql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Csvql
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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.0.1
4
+ version: 0.0.2
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-01 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.2.2
69
+ rubygems_version: 2.3.0
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: csvql