ruby-plsql 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +26 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/plsql/connection.rb +16 -16
- data/lib/plsql/helpers.rb +3 -3
- data/lib/plsql/jdbc_connection.rb +3 -5
- data/lib/plsql/oci_connection.rb +8 -4
- data/lib/plsql/package.rb +3 -3
- data/lib/plsql/procedure.rb +306 -11
- data/lib/plsql/procedure_call.rb +20 -15
- data/lib/plsql/schema.rb +13 -9
- data/lib/plsql/sequence.rb +2 -2
- data/lib/plsql/table.rb +7 -6
- data/lib/plsql/type.rb +7 -7
- data/lib/plsql/variable.rb +4 -4
- data/lib/plsql/version.rb +1 -1
- data/lib/plsql/view.rb +2 -2
- metadata +13 -91
- data/.codeclimate.yml +0 -30
- data/.github/stale.yml +0 -37
- data/.rubocop.yml +0 -153
- data/.travis/oracle/download.sh +0 -15
- data/.travis/oracle/install.sh +0 -32
- data/.travis/setup_accounts.sh +0 -9
- data/.travis.yml +0 -49
- data/Gemfile +0 -21
- data/Rakefile +0 -53
- data/Vagrantfile +0 -38
- data/gemfiles/Gemfile.activerecord-5.0 +0 -21
- data/gemfiles/Gemfile.activerecord-5.1 +0 -21
- data/gemfiles/Gemfile.activerecord-5.2 +0 -21
- data/ruby-plsql.gemspec +0 -114
- data/spec/plsql/connection_spec.rb +0 -505
- data/spec/plsql/package_spec.rb +0 -172
- data/spec/plsql/procedure_spec.rb +0 -2360
- data/spec/plsql/schema_spec.rb +0 -356
- data/spec/plsql/sequence_spec.rb +0 -67
- data/spec/plsql/sql_statements_spec.rb +0 -91
- data/spec/plsql/table_spec.rb +0 -371
- data/spec/plsql/type_spec.rb +0 -299
- data/spec/plsql/variable_spec.rb +0 -497
- data/spec/plsql/version_spec.rb +0 -8
- data/spec/plsql/view_spec.rb +0 -264
- data/spec/spec.opts +0 -6
- data/spec/spec_helper.rb +0 -121
- data/spec/support/create_arunit_user.sql +0 -2
- data/spec/support/custom_config.rb.sample +0 -14
- data/spec/support/file_check_script.sh +0 -9
- data/spec/support/test_db.rb +0 -149
- data/spec/support/unlock_and_setup_hr_user.sql +0 -2
data/.rubocop.yml
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
# rubocop 0.51.0 requires Ruby 2.1
|
|
2
|
-
# We should not use cops only available for Ruby 2.1 or later
|
|
3
|
-
# since ruby-plsql itself supports Ruby 1.9.3
|
|
4
|
-
AllCops:
|
|
5
|
-
TargetRubyVersion: 2.2
|
|
6
|
-
DisabledByDefault: true
|
|
7
|
-
|
|
8
|
-
# Prefer &&/|| over and/or.
|
|
9
|
-
Style/AndOr:
|
|
10
|
-
Enabled: true
|
|
11
|
-
|
|
12
|
-
# Do not use braces for hash literals when they are the last argument of a
|
|
13
|
-
# method call.
|
|
14
|
-
Style/BracesAroundHashParameters:
|
|
15
|
-
Enabled: true
|
|
16
|
-
EnforcedStyle: context_dependent
|
|
17
|
-
|
|
18
|
-
# Align `when` with `case`.
|
|
19
|
-
Layout/CaseIndentation:
|
|
20
|
-
Enabled: true
|
|
21
|
-
|
|
22
|
-
# Align comments with method definitions.
|
|
23
|
-
Layout/CommentIndentation:
|
|
24
|
-
Enabled: true
|
|
25
|
-
|
|
26
|
-
Layout/ElseAlignment:
|
|
27
|
-
Enabled: true
|
|
28
|
-
|
|
29
|
-
Layout/EmptyLineAfterMagicComment:
|
|
30
|
-
Enabled: true
|
|
31
|
-
|
|
32
|
-
# No extra empty lines.
|
|
33
|
-
Layout/EmptyLines:
|
|
34
|
-
Enabled: true
|
|
35
|
-
|
|
36
|
-
# In a regular class definition, no empty lines around the body.
|
|
37
|
-
Layout/EmptyLinesAroundClassBody:
|
|
38
|
-
Enabled: true
|
|
39
|
-
|
|
40
|
-
# In a regular method definition, no empty lines around the body.
|
|
41
|
-
Layout/EmptyLinesAroundMethodBody:
|
|
42
|
-
Enabled: true
|
|
43
|
-
|
|
44
|
-
# In a regular module definition, no empty lines around the body.
|
|
45
|
-
Layout/EmptyLinesAroundModuleBody:
|
|
46
|
-
Enabled: true
|
|
47
|
-
|
|
48
|
-
Layout/FirstParameterIndentation:
|
|
49
|
-
Enabled: true
|
|
50
|
-
|
|
51
|
-
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
|
52
|
-
Style/HashSyntax:
|
|
53
|
-
Enabled: true
|
|
54
|
-
|
|
55
|
-
# Method definitions after `private` or `protected` isolated calls need one
|
|
56
|
-
# extra level of indentation.
|
|
57
|
-
Layout/IndentationConsistency:
|
|
58
|
-
Enabled: true
|
|
59
|
-
EnforcedStyle: rails
|
|
60
|
-
|
|
61
|
-
# Two spaces, no tabs (for indentation).
|
|
62
|
-
Layout/IndentationWidth:
|
|
63
|
-
Enabled: true
|
|
64
|
-
|
|
65
|
-
Layout/LeadingCommentSpace:
|
|
66
|
-
Enabled: true
|
|
67
|
-
|
|
68
|
-
Layout/SpaceAfterColon:
|
|
69
|
-
Enabled: true
|
|
70
|
-
|
|
71
|
-
Layout/SpaceAfterComma:
|
|
72
|
-
Enabled: true
|
|
73
|
-
|
|
74
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
75
|
-
Enabled: true
|
|
76
|
-
|
|
77
|
-
Layout/SpaceAroundKeyword:
|
|
78
|
-
Enabled: true
|
|
79
|
-
|
|
80
|
-
Layout/SpaceAroundOperators:
|
|
81
|
-
Enabled: true
|
|
82
|
-
|
|
83
|
-
Layout/SpaceBeforeComma:
|
|
84
|
-
Enabled: true
|
|
85
|
-
|
|
86
|
-
Layout/SpaceBeforeFirstArg:
|
|
87
|
-
Enabled: true
|
|
88
|
-
|
|
89
|
-
Style/DefWithParentheses:
|
|
90
|
-
Enabled: true
|
|
91
|
-
|
|
92
|
-
# Defining a method with parameters needs parentheses.
|
|
93
|
-
Style/MethodDefParentheses:
|
|
94
|
-
Enabled: true
|
|
95
|
-
|
|
96
|
-
Style/FrozenStringLiteralComment:
|
|
97
|
-
Enabled: false
|
|
98
|
-
EnforcedStyle: always
|
|
99
|
-
|
|
100
|
-
# Use `foo {}` not `foo{}`.
|
|
101
|
-
Layout/SpaceBeforeBlockBraces:
|
|
102
|
-
Enabled: true
|
|
103
|
-
|
|
104
|
-
# Use `foo { bar }` not `foo {bar}`.
|
|
105
|
-
Layout/SpaceInsideBlockBraces:
|
|
106
|
-
Enabled: true
|
|
107
|
-
|
|
108
|
-
# Use `{ a: 1 }` not `{a:1}`.
|
|
109
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
110
|
-
Enabled: true
|
|
111
|
-
|
|
112
|
-
Layout/SpaceInsideParens:
|
|
113
|
-
Enabled: true
|
|
114
|
-
|
|
115
|
-
# Check quotes usage according to lint rule below.
|
|
116
|
-
Style/StringLiterals:
|
|
117
|
-
Enabled: true
|
|
118
|
-
EnforcedStyle: double_quotes
|
|
119
|
-
|
|
120
|
-
# Detect hard tabs, no hard tabs.
|
|
121
|
-
Layout/Tab:
|
|
122
|
-
Enabled: true
|
|
123
|
-
|
|
124
|
-
# Blank lines should not have any spaces.
|
|
125
|
-
Layout/TrailingBlankLines:
|
|
126
|
-
Enabled: true
|
|
127
|
-
|
|
128
|
-
# No trailing whitespace.
|
|
129
|
-
Layout/TrailingWhitespace:
|
|
130
|
-
Enabled: true
|
|
131
|
-
|
|
132
|
-
# Use quotes for string literals when they are enough.
|
|
133
|
-
Style/UnneededPercentQ:
|
|
134
|
-
Enabled: true
|
|
135
|
-
|
|
136
|
-
# Align `end` with the matching keyword or starting expression except for
|
|
137
|
-
# assignments, where it should be aligned with the LHS.
|
|
138
|
-
Layout/EndAlignment:
|
|
139
|
-
Enabled: true
|
|
140
|
-
EnforcedStyleAlignWith: variable
|
|
141
|
-
AutoCorrect: true
|
|
142
|
-
|
|
143
|
-
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
|
144
|
-
Lint/RequireParentheses:
|
|
145
|
-
Enabled: true
|
|
146
|
-
|
|
147
|
-
Style/RedundantReturn:
|
|
148
|
-
Enabled: true
|
|
149
|
-
AllowMultipleReturnValues: true
|
|
150
|
-
|
|
151
|
-
Style/Semicolon:
|
|
152
|
-
Enabled: true
|
|
153
|
-
AllowAsExpressionSeparator: true
|
data/.travis/oracle/download.sh
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
cd "$(dirname "$(readlink -f "$0")")"
|
|
4
|
-
|
|
5
|
-
deb_file=oracle-xe_11.2.0-1.0_amd64.deb
|
|
6
|
-
|
|
7
|
-
git clone https://github.com/wnameless/docker-oracle-xe-11g.git
|
|
8
|
-
|
|
9
|
-
cd docker-oracle-xe-11g/assets &&
|
|
10
|
-
cat "${deb_file}aa" "${deb_file}ab" "${deb_file}ac" > "${deb_file}"
|
|
11
|
-
|
|
12
|
-
pwd
|
|
13
|
-
|
|
14
|
-
ls -lAh "${deb_file}"
|
|
15
|
-
|
data/.travis/oracle/install.sh
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
[ -n "$ORACLE_FILE" ] || { echo "Missing ORACLE_FILE environment variable!"; exit 1; }
|
|
4
|
-
[ -n "$ORACLE_HOME" ] || { echo "Missing ORACLE_HOME environment variable!"; exit 1; }
|
|
5
|
-
|
|
6
|
-
cd "$(dirname "$(readlink -f "$0")")"
|
|
7
|
-
|
|
8
|
-
ORACLE_DEB=docker-oracle-xe-11g/assets/oracle-xe_11.2.0-1.0_amd64.deb
|
|
9
|
-
|
|
10
|
-
sudo apt-get -qq update
|
|
11
|
-
sudo apt-get --no-install-recommends -qq install bc libaio1
|
|
12
|
-
|
|
13
|
-
df -B1 /dev/shm | awk 'END { if ($1 != "shmfs" && $1 != "tmpfs" || $2 < 2147483648) exit 1 }' ||
|
|
14
|
-
( sudo rm -r /dev/shm && sudo mkdir /dev/shm && sudo mount -t tmpfs shmfs -o size=2G /dev/shm )
|
|
15
|
-
|
|
16
|
-
test -f /sbin/chkconfig ||
|
|
17
|
-
( echo '#!/bin/sh' | sudo tee /sbin/chkconfig > /dev/null && sudo chmod u+x /sbin/chkconfig )
|
|
18
|
-
|
|
19
|
-
test -d /var/lock/subsys || sudo mkdir /var/lock/subsys
|
|
20
|
-
|
|
21
|
-
sudo dpkg -i "${ORACLE_DEB}"
|
|
22
|
-
|
|
23
|
-
echo 'OS_AUTHENT_PREFIX=""' | sudo tee -a "$ORACLE_HOME/config/scripts/init.ora" > /dev/null
|
|
24
|
-
echo 'disk_asynch_io=false' | sudo tee -a "$ORACLE_HOME/config/scripts/init.ora" > /dev/null
|
|
25
|
-
sudo usermod -aG dba $USER
|
|
26
|
-
|
|
27
|
-
( echo ; echo ; echo travis ; echo travis ; echo n ) | sudo AWK='/usr/bin/awk' /etc/init.d/oracle-xe configure
|
|
28
|
-
|
|
29
|
-
"$ORACLE_HOME/bin/sqlplus" -L -S / AS SYSDBA <<SQL
|
|
30
|
-
CREATE USER $USER IDENTIFIED EXTERNALLY;
|
|
31
|
-
GRANT CONNECT, RESOURCE TO $USER;
|
|
32
|
-
SQL
|
data/.travis/setup_accounts.sh
DELETED
data/.travis.yml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
sudo: required
|
|
2
|
-
|
|
3
|
-
env:
|
|
4
|
-
global:
|
|
5
|
-
- ORACLE_COOKIE=sqldev
|
|
6
|
-
- ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
|
|
7
|
-
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
|
|
8
|
-
- NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
|
9
|
-
- ORACLE_BASE=/u01/app/oracle
|
|
10
|
-
- LD_LIBRARY_PATH=$ORACLE_HOME/lib
|
|
11
|
-
- PATH=$PATH:$ORACLE_HOME/jdbc/lib
|
|
12
|
-
- DATABASE_VERSION=11.2.0.2
|
|
13
|
-
- ORACLE_SID=XE
|
|
14
|
-
- DATABASE_NAME=XE
|
|
15
|
-
- ORA_SDTZ='Europe/London' #Needed as a client parameter
|
|
16
|
-
- TZ='Europe/London' #Needed as a DB Server parameter
|
|
17
|
-
|
|
18
|
-
before_install:
|
|
19
|
-
- chmod +x .travis/oracle/download.sh
|
|
20
|
-
- chmod +x .travis/oracle/install.sh
|
|
21
|
-
- chmod +x .travis/setup_accounts.sh
|
|
22
|
-
- gem install bundler
|
|
23
|
-
|
|
24
|
-
install:
|
|
25
|
-
- .travis/oracle/download.sh
|
|
26
|
-
- .travis/oracle/install.sh
|
|
27
|
-
- .travis/setup_accounts.sh
|
|
28
|
-
- bundle install --without=development
|
|
29
|
-
|
|
30
|
-
language: ruby
|
|
31
|
-
rvm:
|
|
32
|
-
- 2.5.1
|
|
33
|
-
- 2.4.4
|
|
34
|
-
- 2.3.7
|
|
35
|
-
- 2.2.10
|
|
36
|
-
- jruby-9.2.0.0
|
|
37
|
-
- ruby-head
|
|
38
|
-
- jruby-head
|
|
39
|
-
|
|
40
|
-
gemfile:
|
|
41
|
-
- Gemfile
|
|
42
|
-
- gemfiles/Gemfile.activerecord-5.0
|
|
43
|
-
- gemfiles/Gemfile.activerecord-5.1
|
|
44
|
-
- gemfiles/Gemfile.activerecord-5.2
|
|
45
|
-
|
|
46
|
-
matrix:
|
|
47
|
-
allow_failures:
|
|
48
|
-
- rvm: ruby-head
|
|
49
|
-
- rvm: jruby-head
|
data/Gemfile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
source "http://rubygems.org"
|
|
2
|
-
|
|
3
|
-
group :development do
|
|
4
|
-
gem "juwelier", "~> 2.0"
|
|
5
|
-
gem "rspec_junit_formatter"
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
group :test, :development do
|
|
9
|
-
gem "rake", ">= 10.0"
|
|
10
|
-
gem "rspec", "~> 3.1"
|
|
11
|
-
|
|
12
|
-
unless ENV["NO_ACTIVERECORD"]
|
|
13
|
-
gem "activerecord", "~> 5.0"
|
|
14
|
-
gem "activerecord-oracle_enhanced-adapter", "~> 1.7"
|
|
15
|
-
gem "simplecov", ">= 0"
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
platforms :ruby, :mswin, :mingw do
|
|
19
|
-
gem "ruby-oci8", "~> 2.1"
|
|
20
|
-
end
|
|
21
|
-
end
|
data/Rakefile
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
require "rubygems"
|
|
2
|
-
require "bundler"
|
|
3
|
-
begin
|
|
4
|
-
Bundler.setup(:default, :development)
|
|
5
|
-
rescue Bundler::BundlerError => e
|
|
6
|
-
$stderr.puts e.message
|
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
|
8
|
-
exit e.status_code
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
require "rake"
|
|
12
|
-
|
|
13
|
-
begin
|
|
14
|
-
require "juwelier"
|
|
15
|
-
Juwelier::Tasks.new do |gem|
|
|
16
|
-
gem.name = "ruby-plsql"
|
|
17
|
-
gem.summary = "Ruby API for calling Oracle PL/SQL procedures."
|
|
18
|
-
gem.description = <<-EOS
|
|
19
|
-
ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.
|
|
20
|
-
It could be used both for accessing Oracle PL/SQL API procedures in legacy applications
|
|
21
|
-
as well as it could be used to create PL/SQL unit tests using Ruby testing libraries.
|
|
22
|
-
EOS
|
|
23
|
-
gem.email = "raimonds.simanovskis@gmail.com"
|
|
24
|
-
gem.homepage = "http://github.com/rsim/ruby-plsql"
|
|
25
|
-
gem.license = "MIT".freeze
|
|
26
|
-
gem.authors = ["Raimonds Simanovskis"]
|
|
27
|
-
gem.extra_rdoc_files = ["README.md"]
|
|
28
|
-
end
|
|
29
|
-
Juwelier::RubygemsDotOrgTasks.new
|
|
30
|
-
rescue LoadError
|
|
31
|
-
# juwelier not installed
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
require "rspec/core/rake_task"
|
|
35
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
36
|
-
|
|
37
|
-
desc "Code coverage detail"
|
|
38
|
-
task :simplecov do
|
|
39
|
-
ENV["COVERAGE"] = "true"
|
|
40
|
-
Rake::Task["spec"].execute
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
task default: :spec
|
|
44
|
-
|
|
45
|
-
require "rdoc/task"
|
|
46
|
-
Rake::RDocTask.new do |rdoc|
|
|
47
|
-
version = File.exist?("VERSION") ? File.read("VERSION") : ""
|
|
48
|
-
|
|
49
|
-
rdoc.rdoc_dir = "doc"
|
|
50
|
-
rdoc.title = "ruby-plsql #{version}"
|
|
51
|
-
rdoc.rdoc_files.include("README*")
|
|
52
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
|
53
|
-
end
|
data/Vagrantfile
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
2
|
-
VAGRANTFILE_API_VERSION = "2"
|
|
3
|
-
|
|
4
|
-
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
5
|
-
|
|
6
|
-
# Every Vagrant virtual environment requires a box to build off of.
|
|
7
|
-
config.vm.box = "boxcutter/centos72"
|
|
8
|
-
config.vm.hostname = "vagrant.oracle"
|
|
9
|
-
config.vm.network :forwarded_port, guest: 1521, host: 1521
|
|
10
|
-
|
|
11
|
-
config.vm.provider :virtualbox do |vb|
|
|
12
|
-
vb.name = "Ruby-PLSQL Oracle XE box"
|
|
13
|
-
# Speed up network
|
|
14
|
-
# http://serverfault.com/a/453260/105586
|
|
15
|
-
# http://serverfault.com/a/595010/105586
|
|
16
|
-
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
|
|
17
|
-
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Check for Oracle XE installation file
|
|
21
|
-
config.vm.provision :shell, path: "./spec/support/file_check_script.sh"
|
|
22
|
-
|
|
23
|
-
config.vm.provision :shell, inline: "yum update -y"
|
|
24
|
-
config.vm.provision :shell, inline: "yum install -y libaio bc flex unzip"
|
|
25
|
-
config.vm.provision :shell, inline: "mkdir -p /opt/oracle"
|
|
26
|
-
config.vm.provision :shell, inline: "unzip -o -q -d /opt/oracle /vagrant/oracle-xe-11.2.0-1.0.x86_64.rpm.zip"
|
|
27
|
-
config.vm.provision :shell, inline: "cd /opt/oracle/Disk1 && rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm"
|
|
28
|
-
config.vm.provision :shell, inline: 'sed -i -E "s/<value required>/oracle/" /opt/oracle/Disk1/response/xe.rsp'
|
|
29
|
-
config.vm.provision :shell, inline: "/etc/init.d/oracle-xe configure responseFile=/opt/oracle/Disk1/response/xe.rsp >> /opt/oracle/XEsilentinstall.log"
|
|
30
|
-
config.vm.provision :shell, inline: ". /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh"
|
|
31
|
-
config.vm.provision :shell, inline: "touch /etc/profile.d/oracle_profile.sh && cat /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh >> /etc/profile.d/oracle_profile.sh"
|
|
32
|
-
config.vm.provision :shell, inline: 'sed -i -E "s/HOST = [^)]+/HOST = $HOSTNAME/g" /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora'
|
|
33
|
-
config.vm.provision :shell, inline: %q{sed -i -E "s/<ORACLE_BASE>/\/u01\/app\/oracle/" /u01/app/oracle/product/11.2.0/xe/dbs/init.ora}
|
|
34
|
-
|
|
35
|
-
# Change password for Oracle user
|
|
36
|
-
config.vm.provision :shell, inline: "echo -e \"oracle\noracle\" | passwd oracle"
|
|
37
|
-
|
|
38
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
source 'http://rubygems.org'
|
|
2
|
-
|
|
3
|
-
group :development do
|
|
4
|
-
gem 'juwelier', '~> 2.0'
|
|
5
|
-
gem 'rspec_junit_formatter'
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
group :test, :development do
|
|
9
|
-
gem 'rake', '>= 10.0'
|
|
10
|
-
gem 'rspec', '~> 3.1'
|
|
11
|
-
|
|
12
|
-
unless ENV['NO_ACTIVERECORD']
|
|
13
|
-
gem 'activerecord', '~> 5.0.0'
|
|
14
|
-
gem 'activerecord-oracle_enhanced-adapter', '~> 1.7.0'
|
|
15
|
-
gem 'simplecov', '>= 0'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
platforms :ruby, :mswin, :mingw do
|
|
19
|
-
gem 'ruby-oci8', '~> 2.1'
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
source 'http://rubygems.org'
|
|
2
|
-
|
|
3
|
-
group :development do
|
|
4
|
-
gem 'juwelier', '~> 2.0'
|
|
5
|
-
gem 'rspec_junit_formatter'
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
group :test, :development do
|
|
9
|
-
gem 'rake', '>= 10.0'
|
|
10
|
-
gem 'rspec', '~> 3.1'
|
|
11
|
-
|
|
12
|
-
unless ENV['NO_ACTIVERECORD']
|
|
13
|
-
gem 'activerecord', '~> 5.1.0'
|
|
14
|
-
gem 'activerecord-oracle_enhanced-adapter', '~> 1.8.0'
|
|
15
|
-
gem 'simplecov', '>= 0'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
platforms :ruby, :mswin, :mingw do
|
|
19
|
-
gem 'ruby-oci8', '~> 2.1'
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
source 'http://rubygems.org'
|
|
2
|
-
|
|
3
|
-
group :development do
|
|
4
|
-
gem 'juwelier', '~> 2.0'
|
|
5
|
-
gem 'rspec_junit_formatter'
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
group :test, :development do
|
|
9
|
-
gem 'rake', '>= 10.0'
|
|
10
|
-
gem 'rspec', '~> 3.1'
|
|
11
|
-
|
|
12
|
-
unless ENV['NO_ACTIVERECORD']
|
|
13
|
-
gem 'activerecord', '~> 5.2.0.beta'
|
|
14
|
-
gem 'activerecord-oracle_enhanced-adapter', '~> 5.2.0.beta'
|
|
15
|
-
gem 'simplecov', '>= 0'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
platforms :ruby, :mswin, :mingw do
|
|
19
|
-
gem 'ruby-oci8', '~> 2.1'
|
|
20
|
-
end
|
|
21
|
-
end
|
data/ruby-plsql.gemspec
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# Generated by juwelier
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
-
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: ruby-plsql 0.7.1 ruby lib
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |s|
|
|
8
|
-
s.name = "ruby-plsql".freeze
|
|
9
|
-
s.version = "0.7.1"
|
|
10
|
-
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
|
-
s.require_paths = ["lib".freeze]
|
|
13
|
-
s.authors = ["Raimonds Simanovskis".freeze]
|
|
14
|
-
s.date = "2018-09-03"
|
|
15
|
-
s.description = " ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.\n It could be used both for accessing Oracle PL/SQL API procedures in legacy applications\n as well as it could be used to create PL/SQL unit tests using Ruby testing libraries.\n".freeze
|
|
16
|
-
s.email = "raimonds.simanovskis@gmail.com".freeze
|
|
17
|
-
s.extra_rdoc_files = [
|
|
18
|
-
"README.md"
|
|
19
|
-
]
|
|
20
|
-
s.files = [
|
|
21
|
-
".codeclimate.yml",
|
|
22
|
-
".github/stale.yml",
|
|
23
|
-
".rubocop.yml",
|
|
24
|
-
".travis.yml",
|
|
25
|
-
".travis/oracle/download.sh",
|
|
26
|
-
".travis/oracle/install.sh",
|
|
27
|
-
".travis/setup_accounts.sh",
|
|
28
|
-
"Gemfile",
|
|
29
|
-
"History.txt",
|
|
30
|
-
"License.txt",
|
|
31
|
-
"README.md",
|
|
32
|
-
"Rakefile",
|
|
33
|
-
"VERSION",
|
|
34
|
-
"Vagrantfile",
|
|
35
|
-
"gemfiles/Gemfile.activerecord-5.0",
|
|
36
|
-
"gemfiles/Gemfile.activerecord-5.1",
|
|
37
|
-
"gemfiles/Gemfile.activerecord-5.2",
|
|
38
|
-
"lib/plsql/connection.rb",
|
|
39
|
-
"lib/plsql/helpers.rb",
|
|
40
|
-
"lib/plsql/jdbc_connection.rb",
|
|
41
|
-
"lib/plsql/oci8_patches.rb",
|
|
42
|
-
"lib/plsql/oci_connection.rb",
|
|
43
|
-
"lib/plsql/package.rb",
|
|
44
|
-
"lib/plsql/procedure.rb",
|
|
45
|
-
"lib/plsql/procedure_call.rb",
|
|
46
|
-
"lib/plsql/schema.rb",
|
|
47
|
-
"lib/plsql/sequence.rb",
|
|
48
|
-
"lib/plsql/sql_statements.rb",
|
|
49
|
-
"lib/plsql/table.rb",
|
|
50
|
-
"lib/plsql/type.rb",
|
|
51
|
-
"lib/plsql/variable.rb",
|
|
52
|
-
"lib/plsql/version.rb",
|
|
53
|
-
"lib/plsql/view.rb",
|
|
54
|
-
"lib/ruby-plsql.rb",
|
|
55
|
-
"lib/ruby_plsql.rb",
|
|
56
|
-
"ruby-plsql.gemspec",
|
|
57
|
-
"spec/plsql/connection_spec.rb",
|
|
58
|
-
"spec/plsql/package_spec.rb",
|
|
59
|
-
"spec/plsql/procedure_spec.rb",
|
|
60
|
-
"spec/plsql/schema_spec.rb",
|
|
61
|
-
"spec/plsql/sequence_spec.rb",
|
|
62
|
-
"spec/plsql/sql_statements_spec.rb",
|
|
63
|
-
"spec/plsql/table_spec.rb",
|
|
64
|
-
"spec/plsql/type_spec.rb",
|
|
65
|
-
"spec/plsql/variable_spec.rb",
|
|
66
|
-
"spec/plsql/version_spec.rb",
|
|
67
|
-
"spec/plsql/view_spec.rb",
|
|
68
|
-
"spec/spec.opts",
|
|
69
|
-
"spec/spec_helper.rb",
|
|
70
|
-
"spec/support/create_arunit_user.sql",
|
|
71
|
-
"spec/support/custom_config.rb.sample",
|
|
72
|
-
"spec/support/file_check_script.sh",
|
|
73
|
-
"spec/support/test_db.rb",
|
|
74
|
-
"spec/support/unlock_and_setup_hr_user.sql"
|
|
75
|
-
]
|
|
76
|
-
s.homepage = "http://github.com/rsim/ruby-plsql".freeze
|
|
77
|
-
s.licenses = ["MIT".freeze]
|
|
78
|
-
s.rubygems_version = "2.7.7".freeze
|
|
79
|
-
s.summary = "Ruby API for calling Oracle PL/SQL procedures.".freeze
|
|
80
|
-
|
|
81
|
-
if s.respond_to? :specification_version then
|
|
82
|
-
s.specification_version = 4
|
|
83
|
-
|
|
84
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
85
|
-
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.0"])
|
|
86
|
-
s.add_development_dependency(%q<rspec_junit_formatter>.freeze, [">= 0"])
|
|
87
|
-
s.add_development_dependency(%q<rake>.freeze, [">= 10.0"])
|
|
88
|
-
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
|
89
|
-
s.add_development_dependency(%q<activerecord>.freeze, ["~> 5.0"])
|
|
90
|
-
s.add_development_dependency(%q<activerecord-oracle_enhanced-adapter>.freeze, ["~> 1.7"])
|
|
91
|
-
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
|
92
|
-
s.add_development_dependency(%q<ruby-oci8>.freeze, ["~> 2.1"])
|
|
93
|
-
else
|
|
94
|
-
s.add_dependency(%q<juwelier>.freeze, ["~> 2.0"])
|
|
95
|
-
s.add_dependency(%q<rspec_junit_formatter>.freeze, [">= 0"])
|
|
96
|
-
s.add_dependency(%q<rake>.freeze, [">= 10.0"])
|
|
97
|
-
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
|
98
|
-
s.add_dependency(%q<activerecord>.freeze, ["~> 5.0"])
|
|
99
|
-
s.add_dependency(%q<activerecord-oracle_enhanced-adapter>.freeze, ["~> 1.7"])
|
|
100
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
|
101
|
-
s.add_dependency(%q<ruby-oci8>.freeze, ["~> 2.1"])
|
|
102
|
-
end
|
|
103
|
-
else
|
|
104
|
-
s.add_dependency(%q<juwelier>.freeze, ["~> 2.0"])
|
|
105
|
-
s.add_dependency(%q<rspec_junit_formatter>.freeze, [">= 0"])
|
|
106
|
-
s.add_dependency(%q<rake>.freeze, [">= 10.0"])
|
|
107
|
-
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
|
108
|
-
s.add_dependency(%q<activerecord>.freeze, ["~> 5.0"])
|
|
109
|
-
s.add_dependency(%q<activerecord-oracle_enhanced-adapter>.freeze, ["~> 1.7"])
|
|
110
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
|
111
|
-
s.add_dependency(%q<ruby-oci8>.freeze, ["~> 2.1"])
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|