fb_adapter 0.5.5 → 0.5.6

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.5"
8
- s.date = "2008-02-27"
7
+ s.version = "0.5.6"
8
+ s.date = "2008-04-04"
9
9
  s.summary = "ActiveRecord Firebird Adapter"
10
10
  s.requirements = "Firebird library fb"
11
11
  s.require_path = 'lib'
@@ -218,13 +218,14 @@ module ActiveRecord
218
218
  case value
219
219
  when String
220
220
  "@#{Base64.encode64(value).chop}@"
221
- when Float, Fixnum, Bignum then quote_number(value)
222
- when Date then quote_date(value)
223
- when Time, DateTime then quote_timestamp(value)
224
- when NilClass then "NULL"
225
- when TrueClass then (column && column.type == :integer ? '1' : quoted_true)
226
- when FalseClass then (column && column.type == :integer ? '0' : quoted_false)
227
- else quote_object(value)
221
+ when Float, Fixnum,
222
+ Bignum, BigDecimal then quote_number(value)
223
+ when Date then quote_date(value)
224
+ when Time, DateTime then quote_timestamp(value)
225
+ when NilClass then "NULL"
226
+ when TrueClass then (column && column.type == :integer ? '1' : quoted_true)
227
+ when FalseClass then (column && column.type == :integer ? '0' : quoted_false)
228
+ else quote_object(value)
228
229
  end
229
230
  end
230
231
 
@@ -420,6 +421,7 @@ module ActiveRecord
420
421
  :text => { :name => "blob sub_type text" },
421
422
  :integer => { :name => "integer" },
422
423
  :float => { :name => "float" },
424
+ :decimal => { :name => "decimal" },
423
425
  :datetime => { :name => "timestamp" },
424
426
  :timestamp => { :name => "timestamp" },
425
427
  :time => { :name => "time" },
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.5
4
+ version: 0.5.6
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-02-27 00:00:00 -07:00
12
+ date: 2008-04-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15