raka 0.3.13 → 0.3.14

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/raka/lang/psql/impl.rb +3 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7433868304f673611a2ce9b5e847a8a78cd6bbd0be86fe18d576090acf7009f
4
- data.tar.gz: ebe65786208dfd8bf1e35ea83a6ad625279018aa3a73df14599392bbaa91d684
3
+ metadata.gz: 47d5f10053a5501bc7f06c7733d6060c48020d2479bb5fdbb1ed62780a767d27
4
+ data.tar.gz: 88dd5e16f853d0cb95dfdfe30d6999834661a79478006accb1377751761eaa43
5
5
  SHA512:
6
- metadata.gz: d8498aa76cd3a4ec7277fb0d7e7618c030c70cab306258bec7b5806c0da249108943e56f2b78bf41eb9fddc54d0f0aada4cfb21e59abca81db5dc8fc7495f18c
7
- data.tar.gz: 7eef06176d02da633b5fc2138d675ec66809f479a84e155800f25d6797ed0aa463a58d76a77d1540d1d6b9eb8c6abfed39d60f78881344634cbd37610fdae579
6
+ metadata.gz: c72fb03df681dd169c32a6a882da89161a8842c3f3646c4fa63add8e256e51252541adeaf5dcc68b88baa17a7a3699eba5e4298920f57a5544556fcce0d27386
7
+ data.tar.gz: c10428d03695008c81dbcf209d04332fe01ba0771aab98b331ae087968625ec177e6dba52901c37cb9071811532475a07340a354e1f30245ce29d22c584fa64c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.13
1
+ 0.3.14
@@ -35,10 +35,10 @@ class Psql
35
35
  raise 'argument conn required' if @conn.nil?
36
36
 
37
37
  if @create.to_s == 'table'
38
- 'DROP TABLE IF EXISTS :_schema_.:_name_;' \
38
+ 'DROP TABLE IF EXISTS :_schema_:_name_;' \
39
39
  'CREATE TABLE :_name_ AS (' + code + ');'
40
40
  elsif @create.to_s == 'mview'
41
- 'DROP MATERIALIZED VIEW IF EXISTS :_schema_.:_name_;' \
41
+ 'DROP MATERIALIZED VIEW IF EXISTS :_schema_:_name_;' \
42
42
  'CREATE MATERIALIZED VIEW :_name_ AS (' + code + ');'
43
43
  else
44
44
  code
@@ -51,7 +51,7 @@ class Psql
51
51
 
52
52
  bash env, %(
53
53
  #{sh_cmd(schema)} #{param_str} -v _name_=#{task.output_stem} \
54
- -v _schema_=#{schema} -f #{fname} | tee #{fname}.log
54
+ -v _schema_=#{schema.empty? ? '' : schema + '.'} -f #{fname} | tee #{fname}.log
55
55
  mv #{fname}.log #{task.name}
56
56
  )
57
57
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - yarray