scenic-oracle_adapter 1.3.2 → 1.3.3

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: b6af72024c360af2c3e802a98dad25c65109fd6d79eda9b7a0d6e43c4829d92f
4
- data.tar.gz: 6c3c8e11b6676d69dc79893a2196f7e0a5f8babb04d20e714d2f63b1d5f00d67
3
+ metadata.gz: dc29d851c72aab3e3ff74f1a51fe0afc03f6acb9d1e4f9619027c231ad1f2729
4
+ data.tar.gz: 303764a51df609bcec295a8b495a0beb0dd3575d678060a26a5d8ed5a7b61232
5
5
  SHA512:
6
- metadata.gz: 2df4de941f6d6536a225811124efeb2423e186f4ea741b58d6144019c77252cf7b98c203e9dde881325b7892f75cae27b22764acf2f2170ca2262230d4671e34
7
- data.tar.gz: 2eb947aa0e7d850bcd9a6aceaa9abda6fad9eab0fd9d4b68a26c54683d1054132ce849a4f0a47c4f7d6a3e8c4563a89572096008396860ac0872b06cc059c36a
6
+ metadata.gz: 5584138f239fa8d5df30bcefa0fa6ccf25ee870c4759bf578aed41ea381d429a8ae5bf379a1103fedbe68de645e17d055f4797cb1f596e38f25e6d437edb2ae5
7
+ data.tar.gz: c255d823fec8652adedb46ccd1c3638670cfdde2431ab392391fc52f0eb0b570ede4c416a77767b7ec68b0de2db0ad4a1eab301defd31f3a5a65afcb7899d3d1
data/README.md CHANGED
@@ -28,14 +28,14 @@ end
28
28
 
29
29
  While you can use any Oracle instance for development, it's easiest to use Docker and docker compose.
30
30
 
31
- Note that the Oracle container takes up to two minutes to start and become available. If you're doing active development you probably want to start the containers in detached mode: `docker-compose up -d`. This starts everything in the background and allows you to use `docker compose exec` to run commands on the already running containers:
31
+ Note that the Oracle container takes up to two minutes to start and become available. If you're doing active development you probably want to start the containers in detached mode: `docker compose up -d`. This starts everything in the background and allows you to use `docker compose exec` to run commands on the already running containers:
32
32
 
33
33
  - Run specs: `docker compose exec gem bin/test`
34
34
  - Open a console: `docker compose exec gem bin/console`
35
35
 
36
36
  ## Tests
37
37
 
38
- If you just want to run the test suite you can use `docker-compose run --rm gem bin/test`. Again, because the Oracle container takes so long to start up, the first execution will take a while. The test suite will wait for the database container to become available. Subsequent executions will be faster.
38
+ If you just want to run the test suite you can use `docker compose run --rm gem bin/test`. Again, because the Oracle container takes so long to start up, the first execution will take a while. The test suite will wait for the database container to become available. Subsequent executions will be faster.
39
39
 
40
40
  By default, the test suite will attempt to connect to a local docker Oracle instance (see `spec/spec_helper.rb` for connection details).
41
41
  You can override the database URL by supplying a value to the `DATABASE_URL` environment variable.
@@ -74,8 +74,17 @@ module Scenic
74
74
  select_all(<<~EOSQL)
75
75
  select lower(uo.object_name) as name, lower(ud.referenced_name) as dependency
76
76
  from user_objects uo
77
- left join user_dependencies ud on uo.object_name = ud.name
78
- and ud.referenced_type in ('VIEW', 'MATERIALIZED VIEW')
77
+ left join user_dependencies ud on
78
+ uo.object_name = ud.name
79
+ and (
80
+ (ud.referenced_type in ('VIEW', 'MATERIALIZED VIEW'))
81
+ OR
82
+ (
83
+ ud.referenced_type IN ('TABLE')
84
+ AND
85
+ ud.referenced_name in (select mview_name from user_mviews)
86
+ )
87
+ )
79
88
  and ud.referenced_name in (select object_name from user_objects)
80
89
  and ud.referenced_owner = user
81
90
  where uo.object_type in ('VIEW', 'MATERIALIZED VIEW')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Scenic
4
4
  module OracleAdapter
5
- VERSION = "1.3.2"
5
+ VERSION = "1.3.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scenic-oracle_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dinger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-04 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scenic
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.5.9
161
+ rubygems_version: 3.5.4
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Oracle adapter for thoughtbot/scenic