Sha256: 6b9217961a4d8ab342045dcaa2d9b8f667165ab30fd6588938d62627216fa649

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "../lib")
$: << File.join(File.dirname(__FILE__), "../ext")

require 'oj'
require 'bigdecimal'

stuff = [
  BigDecimal.new('10'),
  Date.today,
  Time.now,
  DateTime.now
]

puts Oj.dump(stuff, :mode => :strict)
puts Oj.dump(stuff, :mode => :compat)
puts Oj.dump(stuff, :mode => :object)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oj-1.3.4 test/bug.rb
oj-1.3.0 test/bug.rb
oj-1.2.13 test/bug.rb
oj-1.2.12 test/bug.rb
oj-1.2.10 test/bug.rb