activerecord-oracle_enhanced-adapter 6.0.3 → 6.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +7 -0
- data/VERSION +1 -1
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_creation.rb +1 -1
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_definitions.rb +1 -1
- data/lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb +10 -10
- data/spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb +1 -1
- data/spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb +2 -1
- metadata +30 -31
- data/lib/ojdbc8.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecb6a81d928e0b751feb92c6eddbf1f11ae67ff269430216611f0d8871a3de7f
|
4
|
+
data.tar.gz: 345cfa5a563fdb93d59404b13177bdf39f837f3d3338956b5b242ba85d95cca0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44789c82df86d977714f00ef4a90b08c2d554c9e9b0cd3e2f39854ed89e69c02ade149990d1c16fe0630e91f0b13960e5263340d430e182f05791cabbb82d515
|
7
|
+
data.tar.gz: c1dad68beacf2a519ab0819b41c3249902f64b6ba61c440aa0cc8f566d0e9820e12a4f45d2dd52e733a076c267016cf9fa895f7774f8b36c19c756b375f55a6b
|
data/History.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 6.0.4 / 2020-08-18
|
2
|
+
|
3
|
+
* Changes and bug fixes
|
4
|
+
* create_table_definition and add_column take keyword arguments [#1942, #2043]
|
5
|
+
* Fix keyword arguments errors for Ruby 2.8.0-dev [#1977,#2043]
|
6
|
+
* Fix a build errors when using Ruby 2.8.0-dev [#1983, #2043]
|
7
|
+
|
1
8
|
## 6.0.3 / 2020-06-16
|
2
9
|
|
3
10
|
* Changes and bug fixes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.0.
|
1
|
+
6.0.4
|
@@ -7,7 +7,7 @@ module ActiveRecord
|
|
7
7
|
private
|
8
8
|
|
9
9
|
def visit_ColumnDefinition(o)
|
10
|
-
if [:blob, :clob, :nclob].include?(sql_type = type_to_sql(o.type,
|
10
|
+
if [:blob, :clob, :nclob].include?(sql_type = type_to_sql(o.type, **o.options).downcase.to_sym)
|
11
11
|
if (tablespace = default_tablespace_for(sql_type))
|
12
12
|
@lob_tablespaces ||= {}
|
13
13
|
@lob_tablespaces[o.name] = tablespace
|
@@ -17,7 +17,7 @@ module ActiveRecord
|
|
17
17
|
].each do |column_type|
|
18
18
|
module_eval <<-CODE, __FILE__, __LINE__ + 1
|
19
19
|
def #{column_type}(*args, **options)
|
20
|
-
args.each { |name| column(name, :#{column_type}, options) }
|
20
|
+
args.each { |name| column(name, :#{column_type}, **options) }
|
21
21
|
end
|
22
22
|
CODE
|
23
23
|
end
|
@@ -198,7 +198,7 @@ module ActiveRecord
|
|
198
198
|
|
199
199
|
def create_table(table_name, **options)
|
200
200
|
create_sequence = options[:id] != false
|
201
|
-
td = create_table_definition table_name, options
|
201
|
+
td = create_table_definition table_name, **options
|
202
202
|
|
203
203
|
if options[:id] != false && !options[:as]
|
204
204
|
pk = options.fetch(:primary_key) do
|
@@ -208,7 +208,7 @@ module ActiveRecord
|
|
208
208
|
if pk.is_a?(Array)
|
209
209
|
td.primary_keys pk
|
210
210
|
else
|
211
|
-
td.primary_key pk, options.fetch(:id, :primary_key), options
|
211
|
+
td.primary_key pk, options.fetch(:id, :primary_key), **options
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
@@ -288,7 +288,7 @@ module ActiveRecord
|
|
288
288
|
end
|
289
289
|
|
290
290
|
def add_index(table_name, column_name, options = {}) #:nodoc:
|
291
|
-
index_name, index_type, quoted_column_names, tablespace, index_options = add_index_options(table_name, column_name, options)
|
291
|
+
index_name, index_type, quoted_column_names, tablespace, index_options = add_index_options(table_name, column_name, **options)
|
292
292
|
execute "CREATE #{index_type} INDEX #{quote_column_name(index_name)} ON #{quote_table_name(table_name)} (#{quoted_column_names})#{tablespace} #{index_options}"
|
293
293
|
if index_type == "UNIQUE"
|
294
294
|
unless /\(.*\)/.match?(quoted_column_names)
|
@@ -402,14 +402,14 @@ module ActiveRecord
|
|
402
402
|
execute "DROP SYNONYM #{quote_table_name(name)}"
|
403
403
|
end
|
404
404
|
|
405
|
-
def add_reference(table_name,
|
406
|
-
OracleEnhanced::ReferenceDefinition.new(
|
405
|
+
def add_reference(table_name, ref_name, **options)
|
406
|
+
OracleEnhanced::ReferenceDefinition.new(ref_name, **options).add_to(update_table_definition(table_name, self))
|
407
407
|
end
|
408
408
|
|
409
|
-
def add_column(table_name, column_name, type, options
|
409
|
+
def add_column(table_name, column_name, type, **options) #:nodoc:
|
410
410
|
type = aliased_types(type.to_s, type)
|
411
411
|
at = create_alter_table table_name
|
412
|
-
at.add_column(column_name, type, options)
|
412
|
+
at.add_column(column_name, type, **options)
|
413
413
|
add_column_sql = schema_creation.accept at
|
414
414
|
add_column_sql << tablespace_for((type_to_sql(type).downcase.to_sym), nil, table_name, column_name)
|
415
415
|
execute add_column_sql
|
@@ -453,7 +453,7 @@ module ActiveRecord
|
|
453
453
|
end
|
454
454
|
|
455
455
|
td = create_table_definition(table_name)
|
456
|
-
cd = td.new_column_definition(column.name, type, options)
|
456
|
+
cd = td.new_column_definition(column.name, type, **options)
|
457
457
|
change_column_stmt = schema_creation.accept cd
|
458
458
|
change_column_stmt << tablespace_for((type_to_sql(type).downcase.to_sym), nil, options[:table_name], options[:column_name]) if type
|
459
459
|
change_column_sql = "ALTER TABLE #{quote_table_name(table_name)} MODIFY #{change_column_stmt}"
|
@@ -619,8 +619,8 @@ module ActiveRecord
|
|
619
619
|
OracleEnhanced::SchemaCreation.new self
|
620
620
|
end
|
621
621
|
|
622
|
-
def create_table_definition(*args)
|
623
|
-
OracleEnhanced::TableDefinition.new(self, *args)
|
622
|
+
def create_table_definition(*args, **options)
|
623
|
+
OracleEnhanced::TableDefinition.new(self, *args, **options)
|
624
624
|
end
|
625
625
|
|
626
626
|
def new_column_from_field(table_name, field)
|
@@ -21,7 +21,7 @@ describe "OracleEnhancedAdapter schema dump" do
|
|
21
21
|
def create_test_posts_table(options = {})
|
22
22
|
options[:force] = true
|
23
23
|
schema_define do
|
24
|
-
create_table :test_posts, options do |t|
|
24
|
+
create_table :test_posts, **options do |t|
|
25
25
|
t.string :title
|
26
26
|
t.timestamps null: true
|
27
27
|
end
|
@@ -80,7 +80,8 @@ describe "OracleEnhancedAdapter schema definition" do
|
|
80
80
|
describe "sequence creation parameters" do
|
81
81
|
def create_test_employees_table(sequence_start_value = nil)
|
82
82
|
schema_define do
|
83
|
-
|
83
|
+
options = sequence_start_value ? { sequence_start_value: sequence_start_value } : {}
|
84
|
+
create_table :test_employees, **options do |t|
|
84
85
|
t.string :first_name
|
85
86
|
t.string :last_name
|
86
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-oracle_enhanced-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -86,7 +86,6 @@ files:
|
|
86
86
|
- lib/active_record/type/oracle_enhanced/timestampltz.rb
|
87
87
|
- lib/active_record/type/oracle_enhanced/timestamptz.rb
|
88
88
|
- lib/activerecord-oracle_enhanced-adapter.rb
|
89
|
-
- lib/ojdbc8.jar
|
90
89
|
- spec/active_record/connection_adapters/emulation/oracle_adapter_spec.rb
|
91
90
|
- spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb
|
92
91
|
- spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
|
@@ -121,7 +120,7 @@ homepage: http://github.com/rsim/oracle-enhanced
|
|
121
120
|
licenses:
|
122
121
|
- MIT
|
123
122
|
metadata: {}
|
124
|
-
post_install_message:
|
123
|
+
post_install_message:
|
125
124
|
rdoc_options: []
|
126
125
|
require_paths:
|
127
126
|
- lib
|
@@ -137,37 +136,37 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
136
|
version: 1.8.11
|
138
137
|
requirements: []
|
139
138
|
rubygems_version: 3.1.2
|
140
|
-
signing_key:
|
139
|
+
signing_key:
|
141
140
|
specification_version: 4
|
142
141
|
summary: Oracle enhanced adapter for ActiveRecord
|
143
142
|
test_files:
|
144
|
-
- spec/
|
145
|
-
- spec/
|
146
|
-
- spec/
|
147
|
-
- spec/active_record/
|
148
|
-
- spec/active_record/oracle_enhanced/type/float_spec.rb
|
149
|
-
- spec/active_record/oracle_enhanced/type/raw_spec.rb
|
150
|
-
- spec/active_record/oracle_enhanced/type/national_character_string_spec.rb
|
151
|
-
- spec/active_record/oracle_enhanced/type/binary_spec.rb
|
152
|
-
- spec/active_record/oracle_enhanced/type/character_string_spec.rb
|
153
|
-
- spec/active_record/oracle_enhanced/type/decimal_spec.rb
|
154
|
-
- spec/active_record/oracle_enhanced/type/json_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/dirty_spec.rb
|
158
|
-
- spec/active_record/oracle_enhanced/type/integer_spec.rb
|
159
|
-
- spec/active_record/oracle_enhanced/type/text_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- spec/spec_config.yaml.template
|
145
|
+
- spec/active_record/connection_adapters/emulation/oracle_adapter_spec.rb
|
146
|
+
- spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
|
160
147
|
- spec/active_record/connection_adapters/oracle_enhanced/database_tasks_spec.rb
|
161
|
-
- spec/active_record/connection_adapters/oracle_enhanced/dbms_output_spec.rb
|
162
|
-
- spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb
|
163
|
-
- spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
|
164
|
-
- spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb
|
165
|
-
- spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb
|
166
148
|
- spec/active_record/connection_adapters/oracle_enhanced/schema_statements_spec.rb
|
167
149
|
- spec/active_record/connection_adapters/oracle_enhanced/quoting_spec.rb
|
150
|
+
- spec/active_record/connection_adapters/oracle_enhanced/schema_dumper_spec.rb
|
151
|
+
- spec/active_record/connection_adapters/oracle_enhanced/dbms_output_spec.rb
|
152
|
+
- spec/active_record/connection_adapters/oracle_enhanced/connection_spec.rb
|
168
153
|
- spec/active_record/connection_adapters/oracle_enhanced/procedures_spec.rb
|
169
|
-
- spec/active_record/connection_adapters/
|
154
|
+
- spec/active_record/connection_adapters/oracle_enhanced/structure_dump_spec.rb
|
155
|
+
- spec/active_record/connection_adapters/oracle_enhanced/context_index_spec.rb
|
170
156
|
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
171
|
-
- spec/active_record/
|
172
|
-
- spec/
|
173
|
-
- spec/
|
157
|
+
- spec/active_record/oracle_enhanced/type/decimal_spec.rb
|
158
|
+
- spec/active_record/oracle_enhanced/type/national_character_string_spec.rb
|
159
|
+
- spec/active_record/oracle_enhanced/type/dirty_spec.rb
|
160
|
+
- spec/active_record/oracle_enhanced/type/boolean_spec.rb
|
161
|
+
- spec/active_record/oracle_enhanced/type/json_spec.rb
|
162
|
+
- spec/active_record/oracle_enhanced/type/raw_spec.rb
|
163
|
+
- spec/active_record/oracle_enhanced/type/binary_spec.rb
|
164
|
+
- spec/active_record/oracle_enhanced/type/text_spec.rb
|
165
|
+
- spec/active_record/oracle_enhanced/type/timestamp_spec.rb
|
166
|
+
- spec/active_record/oracle_enhanced/type/national_character_text_spec.rb
|
167
|
+
- spec/active_record/oracle_enhanced/type/character_string_spec.rb
|
168
|
+
- spec/active_record/oracle_enhanced/type/integer_spec.rb
|
169
|
+
- spec/active_record/oracle_enhanced/type/float_spec.rb
|
170
|
+
- spec/support/alter_system_set_open_cursors.sql
|
171
|
+
- spec/support/alter_system_user_password.sql
|
172
|
+
- spec/support/create_oracle_enhanced_users.sql
|
data/lib/ojdbc8.jar
DELETED
Binary file
|