scenic-oracle_adapter 1.3.1 → 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: 1d9bb94f1cec86d7abe41786c15d0bac531eef9b082099f8d4d498f0dee898a8
4
- data.tar.gz: 3e2131ed37270bb8f39f8e7bdb67d82561461f266a59fa9387824282620f31d0
3
+ metadata.gz: dc29d851c72aab3e3ff74f1a51fe0afc03f6acb9d1e4f9619027c231ad1f2729
4
+ data.tar.gz: 303764a51df609bcec295a8b495a0beb0dd3575d678060a26a5d8ed5a7b61232
5
5
  SHA512:
6
- metadata.gz: a44e897ba0001c0e8f293c13648bf6062ac06d3980211515058ef80e1a4651a583434560d00420fcb4021d6953216ba0cda670378c0787bb4d6a259c46846b3a
7
- data.tar.gz: 31c7ed943ce55a201b589da0c08cfa04cb6a27ee05dce313a7d5f229949973c997e4ee88e17f58ef936509ca9edca97b23754d722472db6361bb589b44ee98d7
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.
data/docker-compose.yml CHANGED
@@ -11,6 +11,8 @@ services:
11
11
  build: .
12
12
  volumes:
13
13
  - .:/app
14
+ environment:
15
+ - TERM=dumb
14
16
  stdin_open: true
15
17
  tty: true
16
18
  depends_on:
@@ -74,8 +74,19 @@ 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
+ )
88
+ and ud.referenced_name in (select object_name from user_objects)
89
+ and ud.referenced_owner = user
79
90
  where uo.object_type in ('VIEW', 'MATERIALIZED VIEW')
80
91
  EOSQL
81
92
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Scenic
4
4
  module OracleAdapter
5
- VERSION = "1.3.1"
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.1
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-03 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