[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73955] [Ruby trunk Bug#12105] JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value
From:
zyrenthelichlord@...
Date:
2016-02-24 00:54:40 UTC
List:
ruby-core #73955
Issue #12105 has been reported by Adnan Abdulally.
----------------------------------------
Bug #12105: JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value
https://bugs.ruby-lang.org/issues/12105
* Author: Adnan Abdulally
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: 2.3.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
As the title states, JSON.pretty_generate throws a TypeError when there is a BigDecimal object as a value. This used to work in ruby 2.0 before upgrading in development. I havent tested to see how far back in ruby versions the error goes.
Example console log of how to replicate:
`
[17] pry(main)> hash = {"x" => BigDecimal('50.0')}
=> {"x"=>#<BigDecimal:1befe50,'0.5E2',9(18)>}
[18] pry(main)> JSON.pretty_generate(hash)
TypeError: wrong argument type Float (expected String)
from /home/adnan/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/object/json.rb:34:in `to_json'
`
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>