monocle-views 0.2.1 → 0.2.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: 995abad36c22c364f7ddefeb1d08139158b9e7d5
4
- data.tar.gz: 6a449d53cd2e830a6f45b4a132715ec45715f3bf
3
+ metadata.gz: a6ccf6751c4f526e77ec17045ca0a5930a8126ce
4
+ data.tar.gz: ccd06fda1616c007c7f62993820f8e513c21c941
5
5
  SHA512:
6
- metadata.gz: 8eb594e8342260008027c8a22bfe06f78ee8aa375b6e3b5494e12b7f797a9f8233e1130e4fab251b13a19027ccabb8a71d1aa8b53987d2cf70bbbeb15ca04b95
7
- data.tar.gz: feed16501767742214d8421b30cc2b51714c2d5a7216dfcbd4afd65717e3c214a1fffb12c8d66c7b794a380058a1da3677cf1cc46efa35a109c32ed6ee571279
6
+ metadata.gz: 010b987ec6098b0b4159f18f55cbc18dcb2938e837cc66ac4d5af2ca3458445100bc0abb434d4755a99eb0f570b92e3a13cae66b69bfe713462208b00e9489ea
7
+ data.tar.gz: 8b7129445d2e3f78a2306d9802e0996bf91ee70287c2b32109b04ac300142fd5e13230100c9c88ed904499e1aa3d3ccdbc0794912f47b7c1b780e5729233854e
@@ -1,3 +1,3 @@
1
1
  module Monocle
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -73,7 +73,9 @@ module Monocle
73
73
  # We don't refresh normal views
74
74
  return false unless materialized?
75
75
  _concurrently = " CONCURRENTLY" if concurrently
76
- execute "REFRESH MATERIALIZED VIEW#{_concurrently} #{name}"
76
+ refresh_cmd = "REFRESH MATERIALIZED VIEW#{_concurrently} #{name}"
77
+ puts "REFRESH MATERIALIZED VIEW#{_concurrently} #{name}"
78
+ execute refresh_cmd
77
79
  true
78
80
  rescue ActiveRecord::StatementInvalid => e
79
81
  # This view is trying to select from a different view that hasn't been
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monocle-views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Bighetti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-08 00:00:00.000000000 Z
12
+ date: 2018-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler