-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialize BigDecimal correctly from YAML using Psych #589
Conversation
For some reason it fails for Ruby 1.9.2 - maybe that version of Ruby does not have the code for deserializing BigDecimal. I don't have any 1.9.2 lying aroud to check that. |
+1 for merge |
Still not merged? Sigh. |
👍 |
This has several unrelated changes and don't use define_method. Use alias_method like the rest of the project. |
@albus522 What unrelated changes do you have in mind? If you mean the changes related with Windows platform then i don't see them as unrelated changes per se, because they were needed for me to make that patch since i'm developing on that platform. Also, |
They are unrelated to deserializing BigDecimal and again please use alias_method |
Okay, what's stopping this one from being merged? |
Did you read the comments? |
@albus522 I'm wondering if it's possible to remove this hack entirely, now that delayed_job targets ruby 1.9.3+ (correct me if I'm wrong on that, I'm going off what's tested in travis). How familiar are you with the history of this piece of the code? @bryckbost added this code back in 2012 (14cfa87). All the tests are still passing if I just remove what was done in 2012: https://github.com/scpike/delayed_job/compare/collectiveidea:master...remove-psych-extensions?expand=1 |
I like deleting code. |
@albus522 I appreciate your commitment to code quality :). I'm going to create a PR with the removal, and would appreciate suggestions on any additional tests you'd like to see added before you're comfortable merging it. |
+1 for deletion now that Ruby 1.8 and 1.9.2 are totally out of date. |
#679 should take care of this |
Fixes #588.