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 +4 -4
- data/lib/monocle/version.rb +1 -1
- data/lib/monocle/view.rb +3 -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: a6ccf6751c4f526e77ec17045ca0a5930a8126ce
|
4
|
+
data.tar.gz: ccd06fda1616c007c7f62993820f8e513c21c941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 010b987ec6098b0b4159f18f55cbc18dcb2938e837cc66ac4d5af2ca3458445100bc0abb434d4755a99eb0f570b92e3a13cae66b69bfe713462208b00e9489ea
|
7
|
+
data.tar.gz: 8b7129445d2e3f78a2306d9802e0996bf91ee70287c2b32109b04ac300142fd5e13230100c9c88ed904499e1aa3d3ccdbc0794912f47b7c1b780e5729233854e
|
data/lib/monocle/version.rb
CHANGED
data/lib/monocle/view.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
12
|
+
date: 2018-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|