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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2d53ff0fb36b1aa46effcdec2a074a0d1e63e07
4
- data.tar.gz: da91ccd02c1cae172558c65a1e652daf3b745315
3
+ metadata.gz: 1925f2a62587f86d7b66be4fe5d2b97d7fac2055
4
+ data.tar.gz: dcf67e1963b08ccf693edbb81379c8e5c7234f54
5
5
  SHA512:
6
- metadata.gz: 0dc1352dabe154cb576d28c9b9851f978269b2ffee4cc8da8b5a05a496fbe31b5654570d2ff9cae76b790f341d509195abfc81537afd8ef0947d0552c69ef546
7
- data.tar.gz: 4c0e8f86048d50e033f463dad83e55c53fc488bfc36c80a34dd77def7d4ceff0b6b77d1850053d10dbe20a3c3337e93ab0ac94520058405bf3d7deb468343b41
6
+ metadata.gz: 743c2a14167c611612be2b5d9e1b23ad07ec5cc9e49fb2797f3346344ecc373d4eeb862ae39e9e9c645248a1b060f914d76f47e93fa83f51f50cc07c6eeb5cbf
7
+ data.tar.gz: a3b90ece0b6aae6c4a746192cb2f9732c73d07ea55b6e4068a58f40b1f247d399bc25efed7cc706953ace2853dbc8446298f7b97e08740637e2dd1481cff227a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- csql (0.1.1)
4
+ csql (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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.chomp}
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(",")
@@ -1,3 +1,3 @@
1
1
  module Csql
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-03-31 00:00:00.000000000 Z
11
+ date: 2018-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler