activerecord-oracle_enhanced-adapter 1.4.3 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/History.md +1162 -2
- data/README.md +567 -155
- data/VERSION +1 -1
- data/lib/active_record/connection_adapters/emulation/oracle_adapter.rb +3 -1
- data/lib/active_record/connection_adapters/oracle_enhanced/column.rb +19 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/connection.rb +132 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/context_index.rb +345 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb +52 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb +280 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/database_tasks.rb +64 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb +59 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb +538 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/jdbc_quoting.rb +38 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/lob.rb +46 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb +435 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/oci_quoting.rb +44 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/procedures.rb +196 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/quoting.rb +164 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_creation.rb +95 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb +79 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb +194 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb +709 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_statements_ext.rb +28 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb +353 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/type_metadata.rb +33 -0
- data/lib/active_record/connection_adapters/oracle_enhanced/version.rb +3 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +385 -1083
- data/lib/active_record/type/oracle_enhanced/boolean.rb +20 -0
- data/lib/active_record/type/oracle_enhanced/integer.rb +15 -0
- data/lib/active_record/type/oracle_enhanced/json.rb +10 -0
- data/lib/active_record/type/oracle_enhanced/national_character_string.rb +26 -0
- data/lib/active_record/type/oracle_enhanced/national_character_text.rb +36 -0
- data/lib/active_record/type/oracle_enhanced/raw.rb +25 -0
- data/lib/active_record/type/oracle_enhanced/string.rb +29 -0
- data/lib/active_record/type/oracle_enhanced/text.rb +32 -0
- data/lib/active_record/type/oracle_enhanced/timestampltz.rb +25 -0
- data/lib/active_record/type/oracle_enhanced/timestamptz.rb +25 -0
- data/lib/activerecord-oracle_enhanced-adapter.rb +5 -13
- data/spec/active_record/connection_adapters/{oracle_enhanced_emulate_oracle_adapter_spec.rb → emulation/oracle_adapter_spec.rb} +5 -4
- data/spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb +469 -0
- data/spec/active_record/connection_adapters/{oracle_enhanced_context_index_spec.rb → oracle_enhanced/context_index_spec.rb} +140 -128
- data/spec/active_record/connection_adapters/oracle_enhanced/database_tasks_spec.rb +112 -0
- data/spec/active_record/connection_adapters/{oracle_enhanced_dbms_output_spec.rb → oracle_enhanced/dbms_output_spec.rb} +13 -13
- data/spec/active_record/connection_adapters/oracle_enhanced/procedures_spec.rb +365 -0
- data/spec/active_record/connection_adapters/oracle_enhanced/quoting_spec.rb +196 -0
- data/spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb +492 -0
- data/spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb +1433 -0
- data/spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb +478 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb +385 -550
- data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +92 -1249
- data/spec/active_record/oracle_enhanced/type/binary_spec.rb +119 -0
- data/spec/active_record/oracle_enhanced/type/boolean_spec.rb +208 -0
- data/spec/active_record/oracle_enhanced/type/dirty_spec.rb +139 -0
- data/spec/active_record/oracle_enhanced/type/float_spec.rb +48 -0
- data/spec/active_record/oracle_enhanced/type/integer_spec.rb +91 -0
- data/spec/active_record/oracle_enhanced/type/json_spec.rb +57 -0
- data/spec/active_record/oracle_enhanced/type/national_character_string_spec.rb +55 -0
- data/spec/active_record/oracle_enhanced/type/national_character_text_spec.rb +230 -0
- data/spec/active_record/oracle_enhanced/type/raw_spec.rb +122 -0
- data/spec/active_record/oracle_enhanced/type/text_spec.rb +229 -0
- data/spec/active_record/oracle_enhanced/type/timestamp_spec.rb +75 -0
- data/spec/spec_config.yaml.template +11 -0
- data/spec/spec_helper.rb +100 -93
- data/spec/support/alter_system_set_open_cursors.sql +1 -0
- data/spec/support/alter_system_user_password.sql +2 -0
- data/spec/support/create_oracle_enhanced_users.sql +31 -0
- metadata +105 -152
- data/.rspec +0 -2
- data/Gemfile +0 -52
- data/RUNNING_TESTS.md +0 -45
- data/Rakefile +0 -59
- data/activerecord-oracle_enhanced-adapter.gemspec +0 -130
- data/lib/active_record/connection_adapters/oracle_enhanced.rake +0 -105
- data/lib/active_record/connection_adapters/oracle_enhanced_activerecord_patches.rb +0 -41
- data/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb +0 -121
- data/lib/active_record/connection_adapters/oracle_enhanced_column.rb +0 -151
- data/lib/active_record/connection_adapters/oracle_enhanced_connection.rb +0 -119
- data/lib/active_record/connection_adapters/oracle_enhanced_context_index.rb +0 -359
- data/lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb +0 -25
- data/lib/active_record/connection_adapters/oracle_enhanced_cpk.rb +0 -21
- data/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb +0 -46
- data/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb +0 -572
- data/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb +0 -497
- data/lib/active_record/connection_adapters/oracle_enhanced_procedures.rb +0 -260
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb +0 -227
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb +0 -260
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb +0 -428
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb +0 -258
- data/lib/active_record/connection_adapters/oracle_enhanced_structure_dump.rb +0 -294
- data/lib/active_record/connection_adapters/oracle_enhanced_tasks.rb +0 -17
- data/lib/active_record/connection_adapters/oracle_enhanced_version.rb +0 -1
- data/spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb +0 -334
- data/spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb +0 -19
- data/spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb +0 -113
- data/spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb +0 -141
- data/spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb +0 -378
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb +0 -440
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb +0 -1400
- data/spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb +0 -339
@@ -0,0 +1 @@
|
|
1
|
+
alter system set open_cursors = 1200 scope = both;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
alter database default tablespace USERS;
|
2
|
+
|
3
|
+
CREATE USER oracle_enhanced IDENTIFIED BY oracle_enhanced;
|
4
|
+
|
5
|
+
GRANT unlimited tablespace, create session, create table, create sequence,
|
6
|
+
create procedure, create trigger, create view, create materialized view,
|
7
|
+
create database link, create synonym, create type, ctxapp TO oracle_enhanced;
|
8
|
+
|
9
|
+
CREATE USER oracle_enhanced_schema IDENTIFIED BY oracle_enhanced_schema;
|
10
|
+
|
11
|
+
GRANT unlimited tablespace, create session, create table, create sequence,
|
12
|
+
create procedure, create trigger, create view, create materialized view,
|
13
|
+
create database link, create synonym, create type, ctxapp TO oracle_enhanced_schema;
|
14
|
+
|
15
|
+
CREATE USER arunit IDENTIFIED BY arunit;
|
16
|
+
|
17
|
+
GRANT unlimited tablespace, create session, create table, create sequence,
|
18
|
+
create procedure, create trigger, create view, create materialized view,
|
19
|
+
create database link, create synonym, create type, ctxapp TO arunit;
|
20
|
+
|
21
|
+
CREATE USER arunit2 IDENTIFIED BY arunit2;
|
22
|
+
|
23
|
+
GRANT unlimited tablespace, create session, create table, create sequence,
|
24
|
+
create procedure, create trigger, create view, create materialized view,
|
25
|
+
create database link, create synonym, create type, ctxapp TO arunit2;
|
26
|
+
|
27
|
+
CREATE USER ruby IDENTIFIED BY oci8;
|
28
|
+
GRANT connect, resource, create view,create synonym TO ruby;
|
29
|
+
GRANT EXECUTE ON dbms_lock TO ruby;
|
30
|
+
GRANT CREATE VIEW TO ruby;
|
31
|
+
GRANT unlimited tablespace to ruby;
|
metadata
CHANGED
@@ -1,141 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-oracle_enhanced-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: jeweler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.8'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.8'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.4'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.4'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rdoc
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
13
|
- !ruby/object:Gem::Dependency
|
56
14
|
name: activerecord
|
57
15
|
requirement: !ruby/object:Gem::Requirement
|
58
16
|
requirements:
|
59
|
-
- -
|
17
|
+
- - "~>"
|
60
18
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
19
|
+
version: 5.2.0
|
20
|
+
type: :runtime
|
63
21
|
prerelease: false
|
64
22
|
version_requirements: !ruby/object:Gem::Requirement
|
65
23
|
requirements:
|
66
|
-
- -
|
24
|
+
- - "~>"
|
67
25
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: actionpack
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 3.2.15
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 3.2.15
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: activesupport
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 3.2.15
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 3.2.15
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: railties
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 3.2.15
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 3.2.15
|
26
|
+
version: 5.2.0
|
111
27
|
- !ruby/object:Gem::Dependency
|
112
28
|
name: ruby-plsql
|
113
29
|
requirement: !ruby/object:Gem::Requirement
|
114
30
|
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.4.4
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '>='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.4.4
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: ruby-oci8
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '>='
|
31
|
+
- - ">="
|
130
32
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
132
|
-
type: :
|
33
|
+
version: 0.6.0
|
34
|
+
type: :runtime
|
133
35
|
prerelease: false
|
134
36
|
version_requirements: !ruby/object:Gem::Requirement
|
135
37
|
requirements:
|
136
|
-
- -
|
38
|
+
- - ">="
|
137
39
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
40
|
+
version: 0.6.0
|
139
41
|
description: |
|
140
42
|
Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
|
141
43
|
This adapter is superset of original ActiveRecord Oracle adapter.
|
@@ -145,53 +47,76 @@ extensions: []
|
|
145
47
|
extra_rdoc_files:
|
146
48
|
- README.md
|
147
49
|
files:
|
148
|
-
- .rspec
|
149
|
-
- Gemfile
|
150
50
|
- History.md
|
151
51
|
- License.txt
|
152
52
|
- README.md
|
153
|
-
- RUNNING_TESTS.md
|
154
|
-
- Rakefile
|
155
53
|
- VERSION
|
156
|
-
- activerecord-oracle_enhanced-adapter.gemspec
|
157
54
|
- lib/active_record/connection_adapters/emulation/oracle_adapter.rb
|
158
|
-
- lib/active_record/connection_adapters/oracle_enhanced.
|
159
|
-
- lib/active_record/connection_adapters/
|
55
|
+
- lib/active_record/connection_adapters/oracle_enhanced/column.rb
|
56
|
+
- lib/active_record/connection_adapters/oracle_enhanced/connection.rb
|
57
|
+
- lib/active_record/connection_adapters/oracle_enhanced/context_index.rb
|
58
|
+
- lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb
|
59
|
+
- lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb
|
60
|
+
- lib/active_record/connection_adapters/oracle_enhanced/database_tasks.rb
|
61
|
+
- lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb
|
62
|
+
- lib/active_record/connection_adapters/oracle_enhanced/jdbc_connection.rb
|
63
|
+
- lib/active_record/connection_adapters/oracle_enhanced/jdbc_quoting.rb
|
64
|
+
- lib/active_record/connection_adapters/oracle_enhanced/lob.rb
|
65
|
+
- lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb
|
66
|
+
- lib/active_record/connection_adapters/oracle_enhanced/oci_quoting.rb
|
67
|
+
- lib/active_record/connection_adapters/oracle_enhanced/procedures.rb
|
68
|
+
- lib/active_record/connection_adapters/oracle_enhanced/quoting.rb
|
69
|
+
- lib/active_record/connection_adapters/oracle_enhanced/schema_creation.rb
|
70
|
+
- lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb
|
71
|
+
- lib/active_record/connection_adapters/oracle_enhanced/schema_dumper.rb
|
72
|
+
- lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb
|
73
|
+
- lib/active_record/connection_adapters/oracle_enhanced/schema_statements_ext.rb
|
74
|
+
- lib/active_record/connection_adapters/oracle_enhanced/structure_dump.rb
|
75
|
+
- lib/active_record/connection_adapters/oracle_enhanced/type_metadata.rb
|
76
|
+
- lib/active_record/connection_adapters/oracle_enhanced/version.rb
|
160
77
|
- lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
|
161
|
-
- lib/active_record/
|
162
|
-
- lib/active_record/
|
163
|
-
- lib/active_record/
|
164
|
-
- lib/active_record/
|
165
|
-
- lib/active_record/
|
166
|
-
- lib/active_record/
|
167
|
-
- lib/active_record/
|
168
|
-
- lib/active_record/
|
169
|
-
- lib/active_record/
|
170
|
-
- lib/active_record/
|
171
|
-
- lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb
|
172
|
-
- lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb
|
173
|
-
- lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb
|
174
|
-
- lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb
|
175
|
-
- lib/active_record/connection_adapters/oracle_enhanced_structure_dump.rb
|
176
|
-
- lib/active_record/connection_adapters/oracle_enhanced_tasks.rb
|
177
|
-
- lib/active_record/connection_adapters/oracle_enhanced_version.rb
|
78
|
+
- lib/active_record/type/oracle_enhanced/boolean.rb
|
79
|
+
- lib/active_record/type/oracle_enhanced/integer.rb
|
80
|
+
- lib/active_record/type/oracle_enhanced/json.rb
|
81
|
+
- lib/active_record/type/oracle_enhanced/national_character_string.rb
|
82
|
+
- lib/active_record/type/oracle_enhanced/national_character_text.rb
|
83
|
+
- lib/active_record/type/oracle_enhanced/raw.rb
|
84
|
+
- lib/active_record/type/oracle_enhanced/string.rb
|
85
|
+
- lib/active_record/type/oracle_enhanced/text.rb
|
86
|
+
- lib/active_record/type/oracle_enhanced/timestampltz.rb
|
87
|
+
- lib/active_record/type/oracle_enhanced/timestamptz.rb
|
178
88
|
- lib/activerecord-oracle_enhanced-adapter.rb
|
89
|
+
- spec/active_record/connection_adapters/emulation/oracle_adapter_spec.rb
|
90
|
+
- spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb
|
91
|
+
- spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
|
92
|
+
- spec/active_record/connection_adapters/oracle_enhanced/database_tasks_spec.rb
|
93
|
+
- spec/active_record/connection_adapters/oracle_enhanced/dbms_output_spec.rb
|
94
|
+
- spec/active_record/connection_adapters/oracle_enhanced/procedures_spec.rb
|
95
|
+
- spec/active_record/connection_adapters/oracle_enhanced/quoting_spec.rb
|
96
|
+
- spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb
|
97
|
+
- spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb
|
98
|
+
- spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb
|
179
99
|
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
180
|
-
- spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
|
181
|
-
- spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb
|
182
|
-
- spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb
|
183
|
-
- spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb
|
184
100
|
- spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
|
185
|
-
- spec/active_record/
|
186
|
-
- spec/active_record/
|
187
|
-
- spec/active_record/
|
188
|
-
- spec/active_record/
|
189
|
-
- spec/active_record/
|
190
|
-
- spec/active_record/
|
191
|
-
- spec/active_record/
|
101
|
+
- spec/active_record/oracle_enhanced/type/binary_spec.rb
|
102
|
+
- spec/active_record/oracle_enhanced/type/boolean_spec.rb
|
103
|
+
- spec/active_record/oracle_enhanced/type/dirty_spec.rb
|
104
|
+
- spec/active_record/oracle_enhanced/type/float_spec.rb
|
105
|
+
- spec/active_record/oracle_enhanced/type/integer_spec.rb
|
106
|
+
- spec/active_record/oracle_enhanced/type/json_spec.rb
|
107
|
+
- spec/active_record/oracle_enhanced/type/national_character_string_spec.rb
|
108
|
+
- spec/active_record/oracle_enhanced/type/national_character_text_spec.rb
|
109
|
+
- spec/active_record/oracle_enhanced/type/raw_spec.rb
|
110
|
+
- spec/active_record/oracle_enhanced/type/text_spec.rb
|
111
|
+
- spec/active_record/oracle_enhanced/type/timestamp_spec.rb
|
112
|
+
- spec/spec_config.yaml.template
|
192
113
|
- spec/spec_helper.rb
|
114
|
+
- spec/support/alter_system_set_open_cursors.sql
|
115
|
+
- spec/support/alter_system_user_password.sql
|
116
|
+
- spec/support/create_oracle_enhanced_users.sql
|
193
117
|
homepage: http://github.com/rsim/oracle-enhanced
|
194
|
-
licenses:
|
118
|
+
licenses:
|
119
|
+
- MIT
|
195
120
|
metadata: {}
|
196
121
|
post_install_message:
|
197
122
|
rdoc_options: []
|
@@ -199,18 +124,46 @@ require_paths:
|
|
199
124
|
- lib
|
200
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
126
|
requirements:
|
202
|
-
- -
|
127
|
+
- - ">="
|
203
128
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
129
|
+
version: 2.2.2
|
205
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
131
|
requirements:
|
207
|
-
- -
|
132
|
+
- - ">="
|
208
133
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
134
|
+
version: 1.8.11
|
210
135
|
requirements: []
|
211
136
|
rubyforge_project:
|
212
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.7.6
|
213
138
|
signing_key:
|
214
139
|
specification_version: 4
|
215
140
|
summary: Oracle enhanced adapter for ActiveRecord
|
216
|
-
test_files:
|
141
|
+
test_files:
|
142
|
+
- spec/active_record/connection_adapters/emulation/oracle_adapter_spec.rb
|
143
|
+
- spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
|
144
|
+
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
145
|
+
- spec/active_record/connection_adapters/oracle_enhanced/database_tasks_spec.rb
|
146
|
+
- spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb
|
147
|
+
- spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb
|
148
|
+
- spec/active_record/connection_adapters/oracle_enhanced/quoting_spec.rb
|
149
|
+
- spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
|
150
|
+
- spec/active_record/connection_adapters/oracle_enhanced/procedures_spec.rb
|
151
|
+
- spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb
|
152
|
+
- spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb
|
153
|
+
- spec/active_record/connection_adapters/oracle_enhanced/dbms_output_spec.rb
|
154
|
+
- spec/active_record/oracle_enhanced/type/integer_spec.rb
|
155
|
+
- spec/active_record/oracle_enhanced/type/national_character_text_spec.rb
|
156
|
+
- spec/active_record/oracle_enhanced/type/timestamp_spec.rb
|
157
|
+
- spec/active_record/oracle_enhanced/type/binary_spec.rb
|
158
|
+
- spec/active_record/oracle_enhanced/type/national_character_string_spec.rb
|
159
|
+
- spec/active_record/oracle_enhanced/type/raw_spec.rb
|
160
|
+
- spec/active_record/oracle_enhanced/type/float_spec.rb
|
161
|
+
- spec/active_record/oracle_enhanced/type/dirty_spec.rb
|
162
|
+
- spec/active_record/oracle_enhanced/type/json_spec.rb
|
163
|
+
- spec/active_record/oracle_enhanced/type/text_spec.rb
|
164
|
+
- spec/active_record/oracle_enhanced/type/boolean_spec.rb
|
165
|
+
- spec/spec_config.yaml.template
|
166
|
+
- spec/spec_helper.rb
|
167
|
+
- spec/support/create_oracle_enhanced_users.sql
|
168
|
+
- spec/support/alter_system_user_password.sql
|
169
|
+
- spec/support/alter_system_set_open_cursors.sql
|
data/.rspec
DELETED
data/Gemfile
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
group :development do
|
4
|
-
gem 'jeweler', '~> 1.8'
|
5
|
-
gem 'rspec', '~> 2.4'
|
6
|
-
gem 'rdoc'
|
7
|
-
|
8
|
-
if ENV['RAILS_GEM_VERSION']
|
9
|
-
gem 'activerecord', "=#{ENV['RAILS_GEM_VERSION']}"
|
10
|
-
gem 'actionpack', "=#{ENV['RAILS_GEM_VERSION']}"
|
11
|
-
gem 'activesupport', "=#{ENV['RAILS_GEM_VERSION']}"
|
12
|
-
case ENV['RAILS_GEM_VERSION']
|
13
|
-
when /^2.0/
|
14
|
-
gem 'composite_primary_keys', '=0.9.93'
|
15
|
-
when /^2.1/
|
16
|
-
gem 'composite_primary_keys', '=1.0.8'
|
17
|
-
when /^2.2/
|
18
|
-
gem 'composite_primary_keys', '=2.2.2'
|
19
|
-
when /^2.3.3/
|
20
|
-
gem 'composite_primary_keys', '=2.3.2'
|
21
|
-
when /^3/
|
22
|
-
gem 'railties', "=#{ENV['RAILS_GEM_VERSION']}"
|
23
|
-
end
|
24
|
-
else
|
25
|
-
%w(activerecord activemodel activesupport actionpack railties).each do |gem_name|
|
26
|
-
if ENV['RAILS_GEM_PATH']
|
27
|
-
gem gem_name, :path => File.join(ENV['RAILS_GEM_PATH'], gem_name)
|
28
|
-
else
|
29
|
-
gem gem_name, :git => "git://github.com/rails/rails"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
if ENV['AREL_GEM_PATH']
|
34
|
-
gem 'arel', :path => ENV['AREL_GEM_PATH']
|
35
|
-
else
|
36
|
-
gem 'arel', :git => "git://github.com/rails/arel"
|
37
|
-
end
|
38
|
-
|
39
|
-
if ENV['JOURNEY_GEM_PATH']
|
40
|
-
gem 'journey', :path => ENV['JOURNEY_GEM_PATH']
|
41
|
-
else
|
42
|
-
gem "journey", :git => "git://github.com/rails/journey"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
gem 'ruby-plsql', '>=0.4.4'
|
47
|
-
|
48
|
-
platforms :ruby do
|
49
|
-
gem 'ruby-oci8', '>=2.0.4'
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
data/RUNNING_TESTS.md
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
Creating the test database
|
2
|
-
--------------------------
|
3
|
-
|
4
|
-
You need Oracle database (version 10.2 or later) with SYS and SYSTEM user access.
|
5
|
-
|
6
|
-
If you are on a Mac OS X 10.6 then use [these instructions](http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard) to install local Oracle DB 10.2.0.4. Other option is to use Linux VM and install Oracle DB on it.
|
7
|
-
|
8
|
-
If you are on Linux (or will use Linux virtual machine) and need Oracle DB just for running tests then Oracle DB XE edition is enough. See [Oracle XE downloads page](http://www.oracle.com/technetwork/database/express-edition/downloads/index.html) for download links and instructions.
|
9
|
-
|
10
|
-
If you are getting ORA-12520 errors when running tests then it means that Oracle cannot create enough processes to handle many connections (as during tests many connections are created and destroyed). In this case you need to log in as SYSTEM user and execute e.g.
|
11
|
-
|
12
|
-
alter system set processes=200 scope=spfile;
|
13
|
-
|
14
|
-
to increase process limit and then restart the database (this will be necessary if Oracle XE will be used as default processes limit is 40).
|
15
|
-
|
16
|
-
Ruby versions
|
17
|
-
-------------
|
18
|
-
|
19
|
-
It is recommended to use [RVM](http://rvm.beginrescueend.com) to run tests with different Ruby implementations. oracle_enhanced is mainly tested with MRI 1.8.7 (all Rails versions) and 1.9.2 (Rails 3) and JRuby 1.6.
|
20
|
-
|
21
|
-
Running tests
|
22
|
-
-------------
|
23
|
-
|
24
|
-
* Create Oracle database schema for test purposes. Review `spec/spec_helper.rb` to see default schema/user names and database names (use environment variables to override defaults)
|
25
|
-
|
26
|
-
SQL> CREATE USER oracle_enhanced IDENTIFIED BY oracle_enhanced;
|
27
|
-
SQL> GRANT unlimited tablespace, create session, create table, create sequence, create procedure, create trigger, create view, create materialized view, create database link, create synonym, create type, ctxapp TO oracle_enhanced;
|
28
|
-
|
29
|
-
* If you use RVM then switch to corresponding Ruby (1.8.7, 1.9.2 or JRuby) and it is recommended to create isolated gemset for test purposes (e.g. rvm create gemset oracle_enhanced)
|
30
|
-
|
31
|
-
* Install bundler with
|
32
|
-
|
33
|
-
gem install bundler
|
34
|
-
|
35
|
-
* Set RAILS_GEM_VERSION to Rails version that you would like to use in oracle_enhanced tests, e.g.
|
36
|
-
|
37
|
-
export RAILS_GEM_VERSION=3.0.3
|
38
|
-
|
39
|
-
* Install necessary gems with
|
40
|
-
|
41
|
-
bundle install
|
42
|
-
|
43
|
-
* Run tests with
|
44
|
-
|
45
|
-
rake spec
|