activerecord-oracle_enhanced-adapter 1.3.0 → 1.3.1
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.
- data/.gitignore +3 -1
- data/Gemfile +37 -0
- data/History.txt +17 -0
- data/README.rdoc +9 -4
- data/RUNNING_TESTS.rdoc +28 -0
- data/VERSION +1 -1
- data/activerecord-oracle_enhanced-adapter.gemspec +13 -6
- data/lib/active_record/connection_adapters/oracle_enhanced.rake +32 -24
- data/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +19 -793
- data/lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb +79 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_column.rb +106 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_context_index.rb +32 -2
- data/lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb +3 -44
- data/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb +2 -2
- data/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb +4 -2
- data/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb +19 -3
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb +14 -6
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb +331 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb +46 -14
- data/lib/active_record/connection_adapters/oracle_enhanced_structure_dump.rb +290 -0
- data/lib/active_record/connection_adapters/oracle_enhanced_tasks.rb +15 -10
- data/lib/activerecord-oracle_enhanced-adapter.rb +25 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb +51 -19
- data/spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb +1 -1
- data/spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb +31 -2
- data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +152 -11
- data/spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb +27 -0
- data/spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb +19 -1
- data/spec/active_record/connection_adapters/{oracle_enhanced_schema_spec.rb → oracle_enhanced_schema_statements_spec.rb} +44 -1
- data/spec/active_record/connection_adapters/{oracle_enhanced_adapter_structure_dumper_spec.rb → oracle_enhanced_structure_dump_spec.rb} +49 -1
- data/spec/spec_helper.rb +60 -53
- metadata +15 -8
@@ -151,7 +151,8 @@ describe "OracleEnhancedAdapter schema dump" do
|
|
151
151
|
|
152
152
|
after(:each) do
|
153
153
|
schema_define do
|
154
|
-
remove_foreign_key :test_comments, :test_posts
|
154
|
+
remove_foreign_key :test_comments, :test_posts rescue nil
|
155
|
+
remove_foreign_key :test_comments, :name => 'comments_posts_baz_fooz_fk' rescue nil
|
155
156
|
end
|
156
157
|
end
|
157
158
|
after(:all) do
|
@@ -210,6 +211,23 @@ describe "OracleEnhancedAdapter schema dump" do
|
|
210
211
|
standard_dump(:ignore_tables => [ /test_posts/i ]).should =~ /add_foreign_key "test_comments"/
|
211
212
|
end
|
212
213
|
|
214
|
+
it "should include composite foreign keys" do
|
215
|
+
schema_define do
|
216
|
+
add_column :test_posts, :baz_id, :integer
|
217
|
+
add_column :test_posts, :fooz_id, :integer
|
218
|
+
|
219
|
+
execute <<-SQL
|
220
|
+
ALTER TABLE TEST_POSTS
|
221
|
+
ADD CONSTRAINT UK_FOOZ_BAZ UNIQUE (BAZ_ID,FOOZ_ID)
|
222
|
+
SQL
|
223
|
+
|
224
|
+
add_column :test_comments, :baz_id, :integer
|
225
|
+
add_column :test_comments, :fooz_id, :integer
|
226
|
+
|
227
|
+
add_foreign_key :test_comments, :test_posts, :columns => ["baz_id", "fooz_id"], :name => 'comments_posts_baz_fooz_fk'
|
228
|
+
end
|
229
|
+
standard_dump.should =~ /add_foreign_key "test_comments", "test_posts", :columns => \["baz_id", "fooz_id"\], :name => "comments_posts_baz_fooz_fk"/
|
230
|
+
end
|
213
231
|
end
|
214
232
|
|
215
233
|
describe "synonyms" do
|
@@ -489,6 +489,49 @@ describe "OracleEnhancedAdapter schema definition" do
|
|
489
489
|
TestPost.delete(p.id)
|
490
490
|
TestComment.find_by_id(c.id).test_post_id.should be_nil
|
491
491
|
end
|
492
|
+
|
493
|
+
it "should add a composite foreign key" do
|
494
|
+
schema_define do
|
495
|
+
add_column :test_posts, :baz_id, :integer
|
496
|
+
add_column :test_posts, :fooz_id, :integer
|
497
|
+
|
498
|
+
execute <<-SQL
|
499
|
+
ALTER TABLE TEST_POSTS
|
500
|
+
ADD CONSTRAINT UK_FOOZ_BAZ UNIQUE (BAZ_ID,FOOZ_ID)
|
501
|
+
SQL
|
502
|
+
|
503
|
+
add_column :test_comments, :baz_id, :integer
|
504
|
+
add_column :test_comments, :fooz_id, :integer
|
505
|
+
|
506
|
+
add_foreign_key :test_comments, :test_posts, :columns => ["baz_id", "fooz_id"]
|
507
|
+
end
|
508
|
+
|
509
|
+
lambda do
|
510
|
+
TestComment.create(:body => "test", :fooz_id => 1, :baz_id => 1)
|
511
|
+
end.should raise_error() {|e| e.message.should =~
|
512
|
+
/ORA-02291.*\.TES_COM_BAZ_ID_FOO_ID_FK/}
|
513
|
+
end
|
514
|
+
|
515
|
+
it "should add a composite foreign key with name" do
|
516
|
+
schema_define do
|
517
|
+
add_column :test_posts, :baz_id, :integer
|
518
|
+
add_column :test_posts, :fooz_id, :integer
|
519
|
+
|
520
|
+
execute <<-SQL
|
521
|
+
ALTER TABLE TEST_POSTS
|
522
|
+
ADD CONSTRAINT UK_FOOZ_BAZ UNIQUE (BAZ_ID,FOOZ_ID)
|
523
|
+
SQL
|
524
|
+
|
525
|
+
add_column :test_comments, :baz_id, :integer
|
526
|
+
add_column :test_comments, :fooz_id, :integer
|
527
|
+
|
528
|
+
add_foreign_key :test_comments, :test_posts, :columns => ["baz_id", "fooz_id"], :name => 'comments_posts_baz_fooz_fk'
|
529
|
+
end
|
530
|
+
|
531
|
+
lambda do
|
532
|
+
TestComment.create(:body => "test", :baz_id => 1, :fooz_id => 1)
|
533
|
+
end.should raise_error() {|e| e.message.should =~ /ORA-02291.*\.COMMENTS_POSTS_BAZ_FOOZ_FK/}
|
534
|
+
end
|
492
535
|
|
493
536
|
it "should remove foreign key by table name" do
|
494
537
|
schema_define do
|
@@ -786,7 +829,7 @@ describe "OracleEnhancedAdapter schema definition" do
|
|
786
829
|
@conn.instance_variable_set :@would_execute_sql, @would_execute_sql=''
|
787
830
|
class <<@conn
|
788
831
|
def execute(sql,name=nil); @would_execute_sql << sql << ";\n"; end
|
789
|
-
def
|
832
|
+
def index_name_exists?(table_name, index_name, default); default; end
|
790
833
|
end
|
791
834
|
end
|
792
835
|
|
@@ -29,6 +29,12 @@ describe "OracleEnhancedAdapter structure dump" do
|
|
29
29
|
@conn.execute "DROP TRIGGER test_post_trigger" rescue nil
|
30
30
|
@conn.execute "DROP TYPE TEST_TYPE" rescue nil
|
31
31
|
@conn.execute "DROP TABLE bars" rescue nil
|
32
|
+
@conn.execute "ALTER TABLE foos drop CONSTRAINT UK_BAZ" rescue nil
|
33
|
+
@conn.execute "ALTER TABLE foos drop CONSTRAINT UK_FOOZ_BAZ" rescue nil
|
34
|
+
@conn.execute "ALTER TABLE foos drop column fooz_id" rescue nil
|
35
|
+
@conn.execute "ALTER TABLE foos drop column baz_id" rescue nil
|
36
|
+
@conn.execute "ALTER TABLE test_posts drop column fooz_id" rescue nil
|
37
|
+
@conn.execute "ALTER TABLE test_posts drop column baz_id" rescue nil
|
32
38
|
end
|
33
39
|
|
34
40
|
it "should dump single primary key" do
|
@@ -60,6 +66,48 @@ describe "OracleEnhancedAdapter structure dump" do
|
|
60
66
|
dump.split('\n').length.should == 1
|
61
67
|
dump.should =~ /ALTER TABLE \"?TEST_POSTS\"? ADD CONSTRAINT \"?FK_TEST_POST_FOO\"? FOREIGN KEY \(\"?FOO_ID\"?\) REFERENCES \"?FOOS\"?\(\"?ID\"?\)/i
|
62
68
|
end
|
69
|
+
|
70
|
+
it "should dump foreign keys when reference column name is not 'id'" do
|
71
|
+
@conn.add_column :foos, :baz_id, :integer
|
72
|
+
|
73
|
+
@conn.execute <<-SQL
|
74
|
+
ALTER TABLE FOOS
|
75
|
+
ADD CONSTRAINT UK_BAZ UNIQUE (BAZ_ID)
|
76
|
+
SQL
|
77
|
+
|
78
|
+
@conn.add_column :test_posts, :baz_id, :integer
|
79
|
+
|
80
|
+
@conn.execute <<-SQL
|
81
|
+
ALTER TABLE TEST_POSTS
|
82
|
+
ADD CONSTRAINT fk_test_post_baz FOREIGN KEY (baz_id) REFERENCES foos(baz_id)
|
83
|
+
SQL
|
84
|
+
|
85
|
+
dump = ActiveRecord::Base.connection.structure_dump_fk_constraints
|
86
|
+
dump.split('\n').length.should == 1
|
87
|
+
dump.should =~ /ALTER TABLE \"?TEST_POSTS\"? ADD CONSTRAINT \"?FK_TEST_POST_BAZ\"? FOREIGN KEY \(\"?BAZ_ID\"?\) REFERENCES \"?FOOS\"?\(\"?BAZ_ID\"?\)/i
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should dump composite foreign keys" do
|
91
|
+
@conn.add_column :foos, :fooz_id, :integer
|
92
|
+
@conn.add_column :foos, :baz_id, :integer
|
93
|
+
|
94
|
+
@conn.execute <<-SQL
|
95
|
+
ALTER TABLE FOOS
|
96
|
+
ADD CONSTRAINT UK_FOOZ_BAZ UNIQUE (BAZ_ID,FOOZ_ID)
|
97
|
+
SQL
|
98
|
+
|
99
|
+
@conn.add_column :test_posts, :fooz_id, :integer
|
100
|
+
@conn.add_column :test_posts, :baz_id, :integer
|
101
|
+
|
102
|
+
@conn.execute <<-SQL
|
103
|
+
ALTER TABLE TEST_POSTS
|
104
|
+
ADD CONSTRAINT fk_test_post_fooz_baz FOREIGN KEY (baz_id,fooz_id) REFERENCES foos(baz_id,fooz_id)
|
105
|
+
SQL
|
106
|
+
|
107
|
+
dump = ActiveRecord::Base.connection.structure_dump_fk_constraints
|
108
|
+
dump.split('\n').length.should == 1
|
109
|
+
dump.should =~ /ALTER TABLE \"?TEST_POSTS\"? ADD CONSTRAINT \"?FK_TEST_POST_FOOZ_BAZ\"? FOREIGN KEY \(\"?BAZ_ID\"?\,\"?FOOZ_ID\"?\) REFERENCES \"?FOOS\"?\(\"?BAZ_ID\"?\,\"?FOOZ_ID\"?\)/i
|
110
|
+
end
|
63
111
|
|
64
112
|
it "should not error when no foreign keys are present" do
|
65
113
|
dump = ActiveRecord::Base.connection.structure_dump_fk_constraints
|
@@ -108,7 +156,7 @@ describe "OracleEnhancedAdapter structure dump" do
|
|
108
156
|
add CONSTRAINT uk_foo_foo_id UNIQUE (foo, foo_id)
|
109
157
|
SQL
|
110
158
|
dump = ActiveRecord::Base.connection.structure_dump_unique_keys("test_posts")
|
111
|
-
dump.should == [" CONSTRAINT UK_FOO_FOO_ID UNIQUE (FOO,FOO_ID)"]
|
159
|
+
dump.should == ["ALTER TABLE TEST_POSTS ADD CONSTRAINT UK_FOO_FOO_ID UNIQUE (FOO,FOO_ID)"]
|
112
160
|
|
113
161
|
dump = ActiveRecord::Base.connection.structure_dump
|
114
162
|
dump.should =~ /CONSTRAINT UK_FOO_FOO_ID UNIQUE \(FOO,FOO_ID\)/
|
data/spec/spec_helper.rb
CHANGED
@@ -1,55 +1,47 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
# Set up gems listed in the Gemfile.
|
4
|
+
gemfile = File.expand_path('../../Gemfile', __FILE__)
|
5
|
+
begin
|
6
|
+
ENV['BUNDLE_GEMFILE'] = gemfile
|
7
|
+
require 'bundler'
|
8
|
+
Bundler.setup
|
9
|
+
rescue Bundler::GemNotFound => e
|
10
|
+
STDERR.puts e.message
|
11
|
+
STDERR.puts "Try running `bundle install`."
|
12
|
+
exit!
|
13
|
+
end if File.exist?(gemfile)
|
4
14
|
|
5
15
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
6
16
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
elsif
|
13
|
-
|
14
|
-
gem 'actionpack', '=2.1.2'
|
15
|
-
gem 'activesupport', '=2.1.2'
|
16
|
-
gem 'composite_primary_keys', '=1.0.8'
|
17
|
-
elsif ENV['RAILS_GEM_VERSION'] =~ /^2.2/
|
18
|
-
gem 'activerecord', '=2.2.2'
|
19
|
-
gem 'actionpack', '=2.2.2'
|
20
|
-
gem 'activesupport', '=2.2.2'
|
21
|
-
gem 'composite_primary_keys', '=2.2.2'
|
22
|
-
elsif ENV['RAILS_GEM_VERSION'] =~ /^2.3.3/
|
23
|
-
gem 'activerecord', '=2.3.3'
|
24
|
-
gem 'actionpack', '=2.3.3'
|
25
|
-
gem 'activesupport', '=2.3.3'
|
26
|
-
gem 'composite_primary_keys', '=2.3.2'
|
27
|
-
elsif ENV['RAILS_GEM_VERSION'] =~ /^2.3.5/
|
28
|
-
gem 'activerecord', '=2.3.5'
|
29
|
-
gem 'actionpack', '=2.3.5'
|
30
|
-
gem 'activesupport', '=2.3.5'
|
31
|
-
NO_COMPOSITE_PRIMARY_KEYS = true
|
32
|
-
elsif ENV['RAILS_GEM_VERSION'] =~ /^2.3/
|
33
|
-
gem 'activerecord', '=2.3.8'
|
34
|
-
gem 'actionpack', '=2.3.8'
|
35
|
-
gem 'activesupport', '=2.3.8'
|
36
|
-
NO_COMPOSITE_PRIMARY_KEYS = true
|
37
|
-
else
|
38
|
-
# uses local copy of Rails 3 gems
|
39
|
-
['rails/activerecord', 'rails/activemodel', 'rails/activesupport', 'arel', 'rails/actionpack', 'rails/railties'].each do |library|
|
40
|
-
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../' + library + '/lib'))
|
41
|
-
end
|
42
|
-
ENV['RAILS_GEM_VERSION'] ||= '3.0'
|
43
|
-
NO_COMPOSITE_PRIMARY_KEYS = true
|
17
|
+
require 'spec'
|
18
|
+
|
19
|
+
if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
|
20
|
+
puts "==> Running specs with MRI version #{RUBY_VERSION}"
|
21
|
+
require 'oci8'
|
22
|
+
elsif RUBY_ENGINE == 'jruby'
|
23
|
+
puts "==> Running specs with JRuby version #{JRUBY_VERSION}"
|
44
24
|
end
|
45
25
|
|
26
|
+
ENV['RAILS_GEM_VERSION'] ||= '3.0.0'
|
27
|
+
NO_COMPOSITE_PRIMARY_KEYS = true if ENV['RAILS_GEM_VERSION'] >= '2.3.5'
|
28
|
+
|
29
|
+
puts "==> Running specs with Rails version #{ENV['RAILS_GEM_VERSION']}"
|
30
|
+
|
46
31
|
require 'active_record'
|
47
32
|
|
48
33
|
if ENV['RAILS_GEM_VERSION'] >= '3.0'
|
49
34
|
require 'action_dispatch'
|
50
35
|
require 'active_support/core_ext/module/attribute_accessors'
|
51
|
-
|
52
|
-
|
36
|
+
|
37
|
+
if ENV['RAILS_GEM_VERSION'] =~ /^3.0.0.beta/
|
38
|
+
require "rails/log_subscriber"
|
39
|
+
require 'active_record/railties/log_subscriber'
|
40
|
+
else
|
41
|
+
require "active_support/log_subscriber"
|
42
|
+
require 'active_record/log_subscriber'
|
43
|
+
end
|
44
|
+
|
53
45
|
require 'logger'
|
54
46
|
elsif ENV['RAILS_GEM_VERSION'] =~ /^2.3/
|
55
47
|
require 'action_pack'
|
@@ -59,13 +51,6 @@ elsif ENV['RAILS_GEM_VERSION'] <= '2.3'
|
|
59
51
|
require 'action_pack'
|
60
52
|
require 'action_controller/session/active_record_store'
|
61
53
|
end
|
62
|
-
if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
|
63
|
-
gem 'ruby-oci8', '>=2.0.4'
|
64
|
-
require 'oci8'
|
65
|
-
elsif RUBY_ENGINE == 'jruby'
|
66
|
-
gem 'activerecord-jdbc-adapter'
|
67
|
-
require 'active_record/connection_adapters/jdbc_adapter'
|
68
|
-
end
|
69
54
|
|
70
55
|
require 'active_record/connection_adapters/oracle_enhanced_adapter'
|
71
56
|
require 'ruby-plsql'
|
@@ -73,18 +58,31 @@ require 'ruby-plsql'
|
|
73
58
|
module LoggerSpecHelper
|
74
59
|
def set_logger
|
75
60
|
@logger = MockLogger.new
|
61
|
+
@old_logger = ActiveRecord::Base.logger
|
76
62
|
|
77
|
-
if ENV['RAILS_GEM_VERSION']
|
63
|
+
if ENV['RAILS_GEM_VERSION'] =~ /^3.0.0.beta/
|
78
64
|
queue = ActiveSupport::Notifications::Fanout.new
|
79
65
|
@notifier = ActiveSupport::Notifications::Notifier.new(queue)
|
80
66
|
|
81
67
|
Rails::LogSubscriber.colorize_logging = false
|
82
68
|
|
83
69
|
ActiveRecord::Base.logger = @logger
|
70
|
+
@old_notifier = ActiveSupport::Notifications.notifier
|
84
71
|
ActiveSupport::Notifications.notifier = @notifier
|
85
72
|
|
86
73
|
Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new)
|
87
74
|
|
75
|
+
elsif ENV['RAILS_GEM_VERSION'] >= '3.0'
|
76
|
+
@notifier = ActiveSupport::Notifications::Fanout.new
|
77
|
+
|
78
|
+
ActiveSupport::LogSubscriber.colorize_logging = false
|
79
|
+
|
80
|
+
ActiveRecord::Base.logger = @logger
|
81
|
+
@old_notifier = ActiveSupport::Notifications.notifier
|
82
|
+
ActiveSupport::Notifications.notifier = @notifier
|
83
|
+
|
84
|
+
ActiveRecord::LogSubscriber.attach_to(:active_record)
|
85
|
+
|
88
86
|
else # ActiveRecord 2.x
|
89
87
|
if ActiveRecord::Base.respond_to?(:connection_pool)
|
90
88
|
ActiveRecord::Base.connection_pool.clear_reloadable_connections!
|
@@ -133,8 +131,14 @@ module LoggerSpecHelper
|
|
133
131
|
end
|
134
132
|
|
135
133
|
def clear_logger
|
136
|
-
ActiveRecord::Base.logger = @
|
137
|
-
|
134
|
+
ActiveRecord::Base.logger = @old_logger
|
135
|
+
@logger = nil
|
136
|
+
|
137
|
+
if ENV['RAILS_GEM_VERSION'] >= '3.0'
|
138
|
+
ActiveSupport::Notifications.notifier = @old_notifier
|
139
|
+
@notifier = nil
|
140
|
+
end
|
141
|
+
|
138
142
|
end
|
139
143
|
|
140
144
|
# Wait notifications to be published (for Rails 3.0)
|
@@ -156,8 +160,8 @@ module SchemaSpecHelper
|
|
156
160
|
end
|
157
161
|
|
158
162
|
DATABASE_NAME = ENV['DATABASE_NAME'] || 'orcl'
|
159
|
-
DATABASE_HOST = ENV['DATABASE_HOST']
|
160
|
-
DATABASE_PORT = ENV['DATABASE_PORT']
|
163
|
+
DATABASE_HOST = ENV['DATABASE_HOST']
|
164
|
+
DATABASE_PORT = ENV['DATABASE_PORT']
|
161
165
|
DATABASE_USER = ENV['DATABASE_USER'] || 'oracle_enhanced'
|
162
166
|
DATABASE_PASSWORD = ENV['DATABASE_PASSWORD'] || 'oracle_enhanced'
|
163
167
|
DATABASE_SYS_PASSWORD = ENV['DATABASE_SYS_PASSWORD'] || 'admin'
|
@@ -166,6 +170,7 @@ CONNECTION_PARAMS = {
|
|
166
170
|
:adapter => "oracle_enhanced",
|
167
171
|
:database => DATABASE_NAME,
|
168
172
|
:host => DATABASE_HOST,
|
173
|
+
:port => DATABASE_PORT,
|
169
174
|
:username => DATABASE_USER,
|
170
175
|
:password => DATABASE_PASSWORD
|
171
176
|
}
|
@@ -174,6 +179,7 @@ SYS_CONNECTION_PARAMS = {
|
|
174
179
|
:adapter => "oracle_enhanced",
|
175
180
|
:database => DATABASE_NAME,
|
176
181
|
:host => DATABASE_HOST,
|
182
|
+
:port => DATABASE_PORT,
|
177
183
|
:username => "sys",
|
178
184
|
:password => DATABASE_SYS_PASSWORD,
|
179
185
|
:privilege => "SYSDBA"
|
@@ -183,6 +189,7 @@ SYSTEM_CONNECTION_PARAMS = {
|
|
183
189
|
:adapter => "oracle_enhanced",
|
184
190
|
:database => DATABASE_NAME,
|
185
191
|
:host => DATABASE_HOST,
|
192
|
+
:port => DATABASE_PORT,
|
186
193
|
:username => "system",
|
187
194
|
:password => DATABASE_SYS_PASSWORD
|
188
195
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-oracle_enhanced-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 1
|
10
|
+
version: 1.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Raimonds Simanovskis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-09 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,9 +47,11 @@ extra_rdoc_files:
|
|
47
47
|
- README.rdoc
|
48
48
|
files:
|
49
49
|
- .gitignore
|
50
|
+
- Gemfile
|
50
51
|
- History.txt
|
51
52
|
- License.txt
|
52
53
|
- README.rdoc
|
54
|
+
- RUNNING_TESTS.rdoc
|
53
55
|
- Rakefile
|
54
56
|
- VERSION
|
55
57
|
- activerecord-oracle_enhanced-adapter.gemspec
|
@@ -57,6 +59,8 @@ files:
|
|
57
59
|
- lib/active_record/connection_adapters/oracle_enhanced.rake
|
58
60
|
- lib/active_record/connection_adapters/oracle_enhanced_activerecord_patches.rb
|
59
61
|
- lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
|
62
|
+
- lib/active_record/connection_adapters/oracle_enhanced_base_ext.rb
|
63
|
+
- lib/active_record/connection_adapters/oracle_enhanced_column.rb
|
60
64
|
- lib/active_record/connection_adapters/oracle_enhanced_connection.rb
|
61
65
|
- lib/active_record/connection_adapters/oracle_enhanced_context_index.rb
|
62
66
|
- lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb
|
@@ -67,11 +71,13 @@ files:
|
|
67
71
|
- lib/active_record/connection_adapters/oracle_enhanced_procedures.rb
|
68
72
|
- lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb
|
69
73
|
- lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb
|
74
|
+
- lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb
|
70
75
|
- lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb
|
76
|
+
- lib/active_record/connection_adapters/oracle_enhanced_structure_dump.rb
|
71
77
|
- lib/active_record/connection_adapters/oracle_enhanced_tasks.rb
|
72
78
|
- lib/active_record/connection_adapters/oracle_enhanced_version.rb
|
79
|
+
- lib/activerecord-oracle_enhanced-adapter.rb
|
73
80
|
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
74
|
-
- spec/active_record/connection_adapters/oracle_enhanced_adapter_structure_dumper_spec.rb
|
75
81
|
- spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
|
76
82
|
- spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb
|
77
83
|
- spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb
|
@@ -82,7 +88,8 @@ files:
|
|
82
88
|
- spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
|
83
89
|
- spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb
|
84
90
|
- spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb
|
85
|
-
- spec/active_record/connection_adapters/
|
91
|
+
- spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb
|
92
|
+
- spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb
|
86
93
|
- spec/spec.opts
|
87
94
|
- spec/spec_helper.rb
|
88
95
|
has_rdoc: true
|
@@ -121,7 +128,6 @@ specification_version: 3
|
|
121
128
|
summary: Oracle enhanced adapter for ActiveRecord
|
122
129
|
test_files:
|
123
130
|
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
124
|
-
- spec/active_record/connection_adapters/oracle_enhanced_adapter_structure_dumper_spec.rb
|
125
131
|
- spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
|
126
132
|
- spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb
|
127
133
|
- spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb
|
@@ -132,5 +138,6 @@ test_files:
|
|
132
138
|
- spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
|
133
139
|
- spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb
|
134
140
|
- spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb
|
135
|
-
- spec/active_record/connection_adapters/
|
141
|
+
- spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb
|
142
|
+
- spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb
|
136
143
|
- spec/spec_helper.rb
|