Skip to content
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

[Security] Bump i18n from 0.7.0 to 0.8.0 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps i18n from 0.7.0 to 0.8.0. This update includes security fixes.

Vulnerabilities fixed

Sourced from The Ruby Advisory Database.

i18n Gem for Ruby lib/i18n/core_ext/hash.rb Hash#slice() Function Hash Handling DoS
i18n Gem for Ruby contains a flaw in the Hash#slice() function in
lib/i18n/core_ext/hash.rb that is triggered when calling a hash when
:some_key is in keep_keys but not in the hash. This may allow an attacker
to cause the program to crash.

Patched versions: >= 0.8.0
Unaffected versions: none

Release notes

Sourced from i18n's releases.

v0.8.0

This release is the same as the v0.8.0.beta1 gem.

Notable changes

  • You can now set I18n.cache_key_digest to determine how cache keys are calculated. If you were seeing issues where the same value stored in a cache produced a different key, then this fix will interest you. For more information, see #285.
  • You can now override translate_format in I18n::Backend classes to customize how localize will perform. See https://github-redirect.dependabot.com/svenfuchs/i18n/pull/347#issuecomment-258963454 for more details.
  • You can now interpolate the value of a key inside another key. See #300 for more information.
  • The exists? method was added to the fallback backend, to match other backend implementations - #326
  • Added N_ to GetText::Helpers - #121
  • Added a :default option for I18n.localize - #251

Bug fixes

  • Reverted a commit which made it so that the great documentation for I18n.translate wasn't made visible through a yard documentation generation. - bc926ebf98a9ae8f2db843ce16a33a5282d18d35
  • I18n.MissingTranslation.new can now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295
  • I18n's Hash#slice method no longer fails if the hash does not have the specified key - #289
  • I18n::Backend::Metadata will now no longer attempt to set @translation_metadata on frozen objects - #305
  • Added missing many rule to pl translation rules - #346
  • Calling I18n.t(:foo, default: nil) Or I18n.t(:foo, default: false) will now return nil or false, rather than returning a missing translation exception - #144
  • Setting I18n.load_path via I18n.load_path= will now reset the @[@​available_locales_set](https://github.com/available_locales_set) setting. - #348 & #173
  • The subclasses of Hash when calling Hash#slice are maintained - #250
  • Fixed I18n.interpolate behaviour when it was passed an ActiveSupport::SafeBuffer object - #216

0.8.0.beta1

Notable changes

  • You can now set I18n.cache_key_digest to determine how cache keys are calculated. If you were seeing issues where the same value stored in a cache produced a different key, then this fix will interest you. For more information, see #285.
  • You can now override translate_format in I18n::Backend classes to customize how localize will perform. See https://github-redirect.dependabot.com/svenfuchs/i18n/pull/347#issuecomment-258963454 for more details.
  • You can now interpolate the value of a key inside another key. See #300 for more information.
  • The exists? method was added to the fallback backend, to match other backend implementations - #326
  • Added N_ to GetText::Helpers - #121
  • Added a :default option for I18n.localize - #251

Bug fixes

  • Reverted a commit which made it so that the great documentation for I18n.translate wasn't made visible through a yard documentation generation. - bc926ebf98a9ae8f2db843ce16a33a5282d18d35
  • I18n.MissingTranslation.new can now be called with two arguments. It will no longer raise a "TypeError: can't dup NilClass" exception - #295
  • I18n's Hash#slice method no longer fails if the hash does not have the specified key - #289
  • I18n::Backend::Metadata will now no longer attempt to set @translation_metadata on frozen objects - #305
  • Added missing many rule to pl translation rules - #346
  • Calling I18n.t(:foo, default: nil) Or I18n.t(:foo, default: false) will now return nil or false, rather than returning a missing translation exception - #144
  • Setting I18n.load_path via I18n.load_path= will now reset the @[@​available_locales_set](https://github.com/available_locales_set) setting. - #348 & #173
  • The subclasses of Hash when calling Hash#slice are maintained - #250
  • Fixed I18n.interpolate behaviour when it was passed an ActiveSupport::SafeBuffer object - #216
Commits
  • 529fc5b Bump to 0.8.0
  • d5fb5dd fix references to i18n in Gemfiles
  • 5cd5c9f Add link to i18n guide to README
  • 27d7ab7 Remove Gemfile.lock from source control
  • 4f0331d Bump dependencies
  • 210feb6 Update bundler
  • 7b205f2 Add issue template
  • 6f3a5bb Bump to 0.8.0.beta1
  • 5e1af91 Merge pull request #252 from Chipairon/fix-tests-for-stored-procs
  • e532e61 Merge pull request #216 from bogdan/interpolate-rails-safe-buffer
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.


Dependabot has been acquired by GitHub  🎉

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants