csql 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/csql.rb +1 -1
- data/lib/csql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1925f2a62587f86d7b66be4fe5d2b97d7fac2055
|
4
|
+
data.tar.gz: dcf67e1963b08ccf693edbb81379c8e5c7234f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743c2a14167c611612be2b5d9e1b23ad07ec5cc9e49fb2797f3346344ecc373d4eeb862ae39e9e9c645248a1b060f914d76f47e93fa83f51f50cc07c6eeb5cbf
|
7
|
+
data.tar.gz: a3b90ece0b6aae6c4a746192cb2f9732c73d07ea55b6e4068a58f40b1f247d399bc25efed7cc706953ace2853dbc8446298f7b97e08740637e2dd1481cff227a
|
data/Gemfile.lock
CHANGED
data/lib/csql.rb
CHANGED
@@ -24,7 +24,7 @@ module CSQL
|
|
24
24
|
if column == "*"
|
25
25
|
columns = CSV.table(@filepath).headers.map(&:to_s)
|
26
26
|
else
|
27
|
-
columns = column.chomp.split(',').map{|c|c.
|
27
|
+
columns = column.chomp.split(',').map{|c|c.gsub('`','').split(/as|AS/).last.strip}
|
28
28
|
end
|
29
29
|
return result.chomp.split("\n").map{|r|
|
30
30
|
data = r.split(",")
|
data/lib/csql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- getty104
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|