fb_adapter 0.5.6 → 0.5.7

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/fb_adapter.gemspec CHANGED
@@ -4,8 +4,8 @@ require 'rubygems'
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.author = "Brent Rowland"
6
6
  s.name = "fb_adapter"
7
- s.version = "0.5.6"
8
- s.date = "2008-04-04"
7
+ s.version = "0.5.7"
8
+ s.date = "2008-12-02"
9
9
  s.summary = "ActiveRecord Firebird Adapter"
10
10
  s.requirements = "Firebird library fb"
11
11
  s.require_path = 'lib'
@@ -52,7 +52,7 @@ module ActiveRecord
52
52
  def default
53
53
  if @default
54
54
  sql = "SELECT CAST(#{@default} AS #{column_def}) FROM RDB$DATABASE"
55
- connection = ActiveRecord::Base.active_connections.values.detect { |conn| conn && conn.adapter_name == 'Fb' }
55
+ connection = ActiveRecord::Base.connection
56
56
  if connection
57
57
  type_cast connection.select_one(sql)['cast']
58
58
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Rowland
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-04 00:00:00 -07:00
12
+ date: 2008-12-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - Firebird library fb
48
48
  rubyforge_project: fblib
49
- rubygems_version: 1.0.1
49
+ rubygems_version: 1.3.1
50
50
  signing_key:
51
51
  specification_version: 2
52
52
  summary: ActiveRecord Firebird Adapter