Skip to content

Parse imported JSON rates with JSON.parse - #1227

Merged
yukideluxe merged 1 commit into
RubyMoney:mainfrom
lenamonj:import-rates-json-parse
Sep 16, 2026
Merged

yukideluxe merged 1 commit into
RubyMoney:mainfrom
lenamonj:import-rates-json-parse

Conversation

@lenamonj

@lenamonj lenamonj commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

import_rates(:json, ...) parsed with JSON.load, which honours json_class keys and instantiates any class carrying a json_create hook, while the method's own warning offers :json as a safe alternative to :ruby.

It now parses with JSON.parse. The new spec fails on main and passes with the change; rspec and rubocop are clean. CHANGELOG and AUTHORS updated.

@sunny sunny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨

@yukideluxe yukideluxe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒

@yukideluxe
yukideluxe merged commit 015ca05 into RubyMoney:main Sep 16, 2026
9 checks passed
@lenamonj
lenamonj deleted the import-rates-json-parse branch September 16, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants