activerecord-oracle_enhanced-adapter 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord-oracle_enhanced-adapter might be problematic. Click here for more details.

data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.7 2008-08-20
2
+
3
+ * Bug fixes:
4
+ * Fixed that adapter works without ruby-plsql gem (in this case just custom create/update/delete methods are not available)
5
+
1
6
  == 1.1.6 2008-08-19
2
7
 
3
8
  * Enhancements:
@@ -951,6 +951,10 @@ begin
951
951
 
952
952
  rescue LoadError
953
953
  # OCI8 driver is unavailable.
954
+ if defined?(RAILS_DEFAULT_LOGGER)
955
+ RAILS_DEFAULT_LOGGER.error "ERROR: ActiveRecord oracle_enhanced adapter could not load ruby-oci8 library. "+
956
+ "Please install ruby-oci8 library or gem."
957
+ end
954
958
  module ActiveRecord # :nodoc:
955
959
  class Base
956
960
  @@oracle_error_message = "Oracle/OCI libraries could not be loaded: #{$!.to_s}"
@@ -1,3 +1,9 @@
1
+ # define accessors before requiring ruby-plsql as these accessors are used in clob writing callback and should be
2
+ # available also if ruby-plsql could not be loaded
3
+ ActiveRecord::Base.class_eval do
4
+ class_inheritable_accessor :custom_create_method, :custom_update_method, :custom_delete_method
5
+ end
6
+
1
7
  require 'ruby_plsql'
2
8
  require 'activesupport'
3
9
 
@@ -95,7 +101,6 @@ end
95
101
 
96
102
  ActiveRecord::Base.class_eval do
97
103
  extend ActiveRecord::ConnectionAdapters::OracleEnhancedProcedures::ClassMethods
98
- class_inheritable_accessor :custom_create_method, :custom_update_method, :custom_delete_method
99
104
  end
100
105
 
101
106
  ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
@@ -3,7 +3,7 @@ module ActiveRecord #:nodoc:
3
3
  module OracleEnhancedVersion #:nodoc:
4
4
  MAJOR = 1
5
5
  MINOR = 1
6
- TINY = 6
6
+ TINY = 7
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-oracle_enhanced-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-19 00:00:00 +03:00
12
+ date: 2008-08-21 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15