• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

enriclluelles / route_translator / 712 / 15
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: chore/improve-specs
DEFAULT BRANCH: master
Ran 21 Jul 2019 04:35PM UTC
Files 13
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jul 2019 04:20PM UTC coverage: 99.01% (-0.02%) from 99.032%
2.5.5, gemfiles/rails_edge.gemfile

push

travis-ci

tagliala
Do not raise InvalidLocale errors

When a user passes an invalid locale to an unlocalized route (such as
ActiveStorage routes or routes outside the `localized` block),
`route_translator` does not check if the locale is included in the
available locales list and a default Rails configuration will raise
an InvalidLocale error.

This behavior could potentially open to DOS attacks (eg: flooding an
exception tracker)

This commit will prevent to set locales that are not included in
`I18n.available_locales`

Close: #196

300 of 303 relevant lines covered (99.01%)

1030.64 hits per line

Source Files on job 712.15 (2.5.5, gemfiles/rails_edge.gemfile)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 705
  • Travis Job 712.15
  • 90a59b93 on github
  • Prev Job for 2.5.5, gemfiles/rails_edge.gemfile on feature/do-not-raise-invalid-locale-errors (#704.15)
  • Next Job for 2.5.5, gemfiles/rails_edge.gemfile on feature/do-not-raise-invalid-locale-errors (#717.15)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc