scenic-oracle_adapter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/Dockerfile +18 -0
- data/README.md +6 -5
- data/docker-compose.yml +20 -0
- data/lib/scenic/oracle_adapter/version.rb +1 -1
- data/scenic-oracle_adapter.gemspec +2 -2
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc14694dd15934c22a25e20481285d8f8a7c8ea7a4024d6521dd36c9b7696d8a
|
4
|
+
data.tar.gz: abdf33349c67895ee70f7e76ef258aceff53682a09160e5a09749235feb562f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89697e345b111efa52cb3273bcfdde6ff59dc7aec623fe29b03259d2cb39938a124bfa7f91a4144a4c89c9392bc2d5d2be1f88e1c37a07b87ba1848be846416e
|
7
|
+
data.tar.gz: 945348558a3fb40f0a9714c3841a1a0f946787f781eed129d031408c56d050f3dfaa77a0fc0926b64063b2845b6df0dc40a6aec5b93ee03c038124201cb9b68f
|
data/.travis.yml
CHANGED
@@ -4,9 +4,10 @@ sudo: required
|
|
4
4
|
language: ruby
|
5
5
|
cache: bundler
|
6
6
|
rvm:
|
7
|
-
- 2.3
|
8
7
|
- 2.4
|
9
8
|
- 2.5
|
9
|
+
- 2.6
|
10
|
+
- 2.7
|
10
11
|
|
11
12
|
env:
|
12
13
|
global:
|
@@ -20,12 +21,13 @@ env:
|
|
20
21
|
- DATABASE_VERSION=11.2.0.1
|
21
22
|
- ORACLE_SID=XE
|
22
23
|
- DATABASE_NAME=XE
|
24
|
+
- DATABASE_URL="oracle-enhanced://scenic_oracle_adapter:scenic_oracle_adapter@localhost/xe:1521"
|
23
25
|
|
24
26
|
before_install:
|
25
27
|
- chmod +x .travis/oracle/download.sh
|
26
28
|
- chmod +x .travis/oracle/install.sh
|
27
29
|
- chmod +x .travis/setup_accounts.sh
|
28
|
-
- gem install bundler -v 1.
|
30
|
+
- gem install bundler -v 2.1.2
|
29
31
|
|
30
32
|
install:
|
31
33
|
- .travis/oracle/download.sh
|
data/Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
FROM ruby:latest
|
2
|
+
|
3
|
+
RUN curl -sLO 'https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basic-linux.x64-19.6.0.0.0dbru.zip' && \
|
4
|
+
curl -sLO 'https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip' && \
|
5
|
+
unzip instantclient-basic-linux.x64-19.6.0.0.0dbru.zip && \
|
6
|
+
unzip instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip && \
|
7
|
+
rm instantclient-basic-linux.x64-19.6.0.0.0dbru.zip && \
|
8
|
+
rm instantclient-sdk-linux.x64-19.6.0.0.0dbru.zip
|
9
|
+
|
10
|
+
RUN apt update && \
|
11
|
+
apt-get install libaio1
|
12
|
+
|
13
|
+
ENV LD_LIBRARY_PATH /instantclient_19_6:$LD_LIBRARY_PATH
|
14
|
+
|
15
|
+
RUN mkdir /app
|
16
|
+
WORKDIR /app
|
17
|
+
COPY . /app
|
18
|
+
RUN bundle install
|
data/README.md
CHANGED
@@ -26,13 +26,14 @@ end
|
|
26
26
|
|
27
27
|
## Development
|
28
28
|
|
29
|
-
|
29
|
+
While you can use any Oracle instance to run the test suite, it's easiest to use Docker and docker-compose.
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
After checking out the repo, start the Oracle instance by running `docker-compose up -d`. After that, you can
|
32
|
+
run `docker-compose exec gem bin/setup` to install dependencies. Then, run `docker-compose exec gem bin/test` (or `rspec`) to run the tests.
|
33
|
+
You can also run `docker-compose exec gem bin/console` for an interactive prompt that will allow you to experiment.
|
33
34
|
|
34
|
-
|
35
|
-
|
35
|
+
By default, the test suite will attempt to connect to a local docker Oracle instance (see `spec/spec_helper.rb` for connection details).
|
36
|
+
You can override the database URL by supplying a value to the `DATABASE_URL` environment variable.
|
36
37
|
|
37
38
|
## Contributing
|
38
39
|
|
data/docker-compose.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
version: '3'
|
2
|
+
services:
|
3
|
+
db:
|
4
|
+
image: "container-registry.oracle.com/database/enterprise:12.2.0.1-slim"
|
5
|
+
volumes:
|
6
|
+
- db:/ORCL
|
7
|
+
ports:
|
8
|
+
- "1521:1521"
|
9
|
+
gem:
|
10
|
+
build: .
|
11
|
+
volumes:
|
12
|
+
- .:/app
|
13
|
+
environment:
|
14
|
+
- TERM=dumb
|
15
|
+
stdin_open: true
|
16
|
+
tty: true
|
17
|
+
depends_on:
|
18
|
+
- db
|
19
|
+
volumes:
|
20
|
+
db:
|
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "activerecord-oracle_enhanced-adapter", ">= 1.5.0"
|
27
27
|
spec.add_dependency "ruby-oci8", "~> 2.2"
|
28
28
|
|
29
|
-
spec.add_development_dependency "bundler", "~>
|
30
|
-
spec.add_development_dependency "rake", "
|
29
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
30
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
32
32
|
spec.add_development_dependency "rubocop", ">= 0.49.0"
|
33
33
|
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.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Dinger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scenic
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 12.3.3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 12.3.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- ".travis/oracle/install.sh"
|
124
124
|
- ".travis/setup_accounts.sh"
|
125
125
|
- CODE_OF_CONDUCT.md
|
126
|
+
- Dockerfile
|
126
127
|
- Gemfile
|
127
128
|
- LICENSE.txt
|
128
129
|
- README.md
|
@@ -130,6 +131,7 @@ files:
|
|
130
131
|
- bin/console
|
131
132
|
- bin/setup
|
132
133
|
- bin/test
|
134
|
+
- docker-compose.yml
|
133
135
|
- lib/scenic/adapters/oracle.rb
|
134
136
|
- lib/scenic/adapters/oracle/index.rb
|
135
137
|
- lib/scenic/adapters/oracle/index_reapplication.rb
|
@@ -158,8 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
160
|
- !ruby/object:Gem::Version
|
159
161
|
version: '0'
|
160
162
|
requirements: []
|
161
|
-
|
162
|
-
rubygems_version: 2.7.6
|
163
|
+
rubygems_version: 3.1.2
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: Oracle adapter for thoughtbot/scenic
|