scenic-oracle_adapter 1.2.0 → 1.3.0

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: 2713f9db4be8d67b73304c18771acb45c8d6fe15d4e3ddd33653aa9ef2a80a8f
4
- data.tar.gz: 99370e306d93f6c345d36035e8df417d782704463a0746dce9e75d7d1f643de6
3
+ metadata.gz: 533aa27e5aab91d23478730a7330bc9d08c343ddd5de1bfa8191ed18e2ed9dd6
4
+ data.tar.gz: b8461d886bca7de8feb790fa12bdb59a550e81b5fd12f292ff5008b55e6db769
5
5
  SHA512:
6
- metadata.gz: 636f8568e918f15b50b881ae8d58c9821911730720226e9dcd469e4d2c74085730d12f43436bb22ea787a06cd65d2122fc4645a630d527a25c665118ab7155a1
7
- data.tar.gz: 9e890f9b05c340b0a4b456755d61a0c4122428d9e82b86268ce23e97e86af911789f6655962d0ef8feea21ed17f42d6b4ed26b30dfc241d3c927b4105a772e57
6
+ metadata.gz: 784827c8e18df5276b914921aded3c4b8ccb57ee5fa0993ef88eca4a1b8023df93983cb05e17b4a620e71d27dd20afb9fcf86bb31dd2b2a18ac3fb057d80aa8d
7
+ data.tar.gz: 04e19cc856521843c40fd06ca4bd0bd2e4f5e1389251bc63949a34be45e294edb64f35fb6778ffb50581ab479b96f3658e169a59c5a44e0ebefad298ef269cd1
@@ -1,6 +1,8 @@
1
1
  name: CI
2
2
 
3
- on: [push]
3
+ on:
4
+ push:
5
+ pull_request:
4
6
 
5
7
  jobs:
6
8
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # scenic-oracle_adapter [![Build Status](https://github.com/cdinger/scenic-oracle_adapter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/cdinger/scenic-oracle_adapter/actions/workflows/ci.yml?query=branch%3Amaster)
1
+ # scenic-oracle_adapter
2
2
 
3
3
  An Oracle adapter for the [scenic](https://github.com/scenic-views/scenic) rubygem.
4
4
 
@@ -36,10 +36,10 @@ module Scenic
36
36
  execute("create materialized view #{quote_table_name(name)} #{'build deferred' if no_data} as #{definition}")
37
37
  end
38
38
 
39
- def update_materialized_view(name, definition)
39
+ def update_materialized_view(name, definition, no_data: false)
40
40
  IndexReapplication.new(connection: connection).on(name) do
41
41
  drop_materialized_view(name)
42
- create_materialized_view(name, definition)
42
+ create_materialized_view(name, definition, no_data: no_data)
43
43
  end
44
44
  end
45
45
 
@@ -58,8 +58,12 @@ module Scenic
58
58
  EOSQL
59
59
  end
60
60
 
61
+ def populated?(name)
62
+ !select_value("select last_refresh_date from user_mviews where mview_name = '#{name.upcase}'").nil?
63
+ end
64
+
61
65
  delegate :connection, to: :@connectable
62
- delegate :select_all, :execute, :quote_table_name, to: :connection
66
+ delegate :select_all, :select_value, :execute, :quote_table_name, to: :connection
63
67
 
64
68
  private
65
69
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Scenic
4
4
  module OracleAdapter
5
- VERSION = "1.2.0"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "scenic", "~> 1.7.0"
25
+ spec.add_dependency "scenic", ">= 1.8.0"
26
26
  spec.add_dependency "activerecord-oracle_enhanced-adapter", ">= 1.5.0"
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 2.0"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scenic-oracle_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dinger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scenic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.0
19
+ version: 1.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.7.0
26
+ version: 1.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord-oracle_enhanced-adapter
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.2'
111
- description:
111
+ description:
112
112
  email:
113
113
  - chris@houseofding.com
114
114
  executables: []
@@ -142,7 +142,7 @@ homepage: https://github.com/cdinger/scenic-oracle_adapter
142
142
  licenses:
143
143
  - MIT
144
144
  metadata: {}
145
- post_install_message:
145
+ post_install_message:
146
146
  rdoc_options: []
147
147
  require_paths:
148
148
  - lib
@@ -157,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.3.26
161
- signing_key:
160
+ rubygems_version: 3.5.4
161
+ signing_key:
162
162
  specification_version: 4
163
163
  summary: Oracle adapter for thoughtbot/scenic
164
164
  test_files: []