purview 1.8.0 → 1.8.1

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
  SHA256:
3
- metadata.gz: 10737dc7946dc6ed6233299ef4cc18042ed7ab1f5175478ae4a954f8e4c611a0
4
- data.tar.gz: 5330e8e05814176ec27c623f5d98ec5af6186df0f2b8f4a8c702774874043fd4
3
+ metadata.gz: 7533b5ff4d6b701120a8de5ecc1ab772fa22ad8c743c769e2de6c4cec270b87b
4
+ data.tar.gz: 8900f60ff3f83e0e8db19ede7b4f2e1d04e8ca0bff1396630aa20f31d672c5f9
5
5
  SHA512:
6
- metadata.gz: 7444fe8eafec51555096fe3c2f03551bf98d135173610c7c48161927f12c4229db29a2b762ad63e4e81f06cbf10263793c1cf025d83452812147dd8cd0eb0500
7
- data.tar.gz: ea70373933da78d6e634baf8942765bb82597558561f2397e723e08ca9e0a7068dbfaf59c876d51ba56f39116a974af1f61d37a8bfb291f8a1c34c7bc204efe1
6
+ metadata.gz: abf2910ee569e1d7b5658b637c58784cf2bae16c2469cf097d721e0eb272253f6ae35d3d3890ec49093bd11ac35e5b4f4246ea8c733482b825505eb80c79b639
7
+ data.tar.gz: 241dfa54f70658ea33cc52d7d6c1a16e3d90969c0a17ea20f097017f2822bc29de9a3031e03ba9b71928d2878f1abada9d447fc6de03ac4e47fa16090871d8fc
data/.travis.yml CHANGED
@@ -2,10 +2,20 @@ language: ruby
2
2
 
3
3
  before_install:
4
4
  - sudo apt-get update -q
5
- - sudo apt-get install -q freetds-dev
5
+ - sudo apt-get install -q build-essential libc6-dev
6
+ - wget http://www.freetds.org/files/stable/freetds-1.00.21.tar.gz
7
+ - tar -xzf freetds-1.00.21.tar.gz
8
+ - cd freetds-1.00.21
9
+ - ./configure --prefix=/usr/local --with-tdsver=7.3
10
+ - make
11
+ - sudo make install
12
+
13
+ matrix:
14
+ allow_failures:
15
+ - rvm: jruby-9.1.9.0
6
16
 
7
17
  rvm:
8
- - 2.1.9
9
- - 2.2.7
10
- - 2.3.4
11
- - 2.4.1
18
+ - 2.3.7
19
+ - 2.4.4
20
+ - 2.5.1
21
+ - jruby-9.1.9.0
data/TODO CHANGED
@@ -7,6 +7,6 @@ c2c85f85-ffd8-11e8-b2c3-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzales
7
7
  c70ab22b-ffd8-11e8-8c9a-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544816715 1544816715 a Refactor mutator methods to be globally available (e.g. quoted -> Quote, etc.)
8
8
  cc6c3091-ffd8-11e8-b484-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544816724 1544816724 a Add parallel pull(s) support
9
9
  d1ecf75e-ffd8-11e8-87cf-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544816733 1544816733 a Add support for `Consumers`
10
- 683a87f8-ffe3-11e8-8e33-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544821280 1544821280 a Fix SQLite3 (it doesn't appear to work)
11
- 0aae0fab-ffe4-11e8-ae70-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544821553 1544821553 a Fix PostgreSQL, it doesn't appear to work
10
+ 683a87f8-ffe3-11e8-8e33-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544821280 1544971163 d Fix SQLite3 (it doesn't appear to work)
11
+ 0aae0fab-ffe4-11e8-ae70-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544821553 1544971167 r Fix PostgreSQL, it doesn't appear to work
12
12
  c3b21ac5-ffe6-11e8-802b-8c8590c6ab8c 00000000-0000-0000-0000-000000000000 jzaleski jzaleski 1544822722 1544822722 a Need to add time-zone support to adjust SQL puller results
@@ -52,12 +52,15 @@ module Purview
52
52
  end
53
53
 
54
54
  def table_update_sql(window, temporary_table_name)
55
- 'UPDATE %s t1 JOIN %s t2 ON t1.%s = t2.%s SET %s' % [
55
+ 'DELETE FROM %s WHERE %s IN (SELECT %s FROM %s); INSERT INTO %s (%s) SELECT %s FROM %s' % [
56
56
  table.name,
57
- temporary_table_name,
58
57
  table.id_column.name,
59
58
  table.id_column.name,
60
- table.column_names.map { |column_name| "t1.#{column_name} = t2.#{column_name}" }.join(', '),
59
+ temporary_table_name,
60
+ table.name,
61
+ table.column_names.join(', '),
62
+ table.column_names.join(', '),
63
+ temporary_table_name,
61
64
  ]
62
65
  end
63
66
 
@@ -1,3 +1,3 @@
1
1
  module Purview
2
- VERSION = '1.8.0'
2
+ VERSION = '1.8.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan W. Zaleski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2018-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry