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

enriclluelles / route_translator / 692
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: bugfix/333-allow-raise-in-localized-block
DEFAULT BRANCH: master
Ran 19 Jul 2019 01:36PM CUT
Jobs 21
Files 13
Run time 115min
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

pending completion
692

push

travis-ci

tagliala
Do not raise from InvalidLocale error

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

That could potentially lead to a DOS attack (eg: a third-party exception
Notifier)

This change will prevent route_translator to set the locale if it is not
included in `I18n.available_locales`

Close: #196

4 of 4 new or added lines in 2 files covered. (100.0%)

308 of 310 relevant lines covered (99.35%)

17260.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 692.1 (2.3.8, gemfiles/rails_5.0.gemfile) 19 Jul 2019 01:36PM CUT 0
99.04
Travis Job 692.1
2 692.2 (2.3.8, gemfiles/rails_5.1.gemfile) 19 Jul 2019 03:31PM CUT 0
99.04
Travis Job 692.2
3 692.3 (2.3.8, gemfiles/rails_5.2.gemfile) 19 Jul 2019 01:36PM CUT 0
99.04
Travis Job 692.3
4 692.4 (2.4.6, gemfiles/rails_5.0.gemfile) 19 Jul 2019 01:36PM CUT 0
99.04
Travis Job 692.4
5 692.5 (2.4.6, gemfiles/rails_5.1.gemfile) 19 Jul 2019 01:36PM CUT 0
99.04
Travis Job 692.5
6 692.6 (2.4.6, gemfiles/rails_5.2.gemfile) 19 Jul 2019 01:38PM CUT 0
99.04
Travis Job 692.6
7 692.7 (2.5.5, gemfiles/rails_5.0.gemfile) 19 Jul 2019 01:38PM CUT 0
99.04
Travis Job 692.7
8 692.8 (2.5.5, gemfiles/rails_5.1.gemfile) 19 Jul 2019 01:38PM CUT 0
99.04
Travis Job 692.8
9 692.9 (2.5.5, gemfiles/rails_5.2.gemfile) 19 Jul 2019 01:38PM CUT 0
99.04
Travis Job 692.9
10 692.10 (2.5.5, gemfiles/rails_6.0.gemfile) 19 Jul 2019 01:40PM CUT 0
99.04
Travis Job 692.10
11 692.11 (2.6.3, gemfiles/rails_5.0.gemfile) 19 Jul 2019 01:40PM CUT 0
99.04
Travis Job 692.11
12 692.12 (2.6.3, gemfiles/rails_5.1.gemfile) 19 Jul 2019 01:41PM CUT 0
99.04
Travis Job 692.12
13 692.13 (2.6.3, gemfiles/rails_5.2.gemfile) 19 Jul 2019 01:40PM CUT 0
99.04
Travis Job 692.13
14 692.14 (2.6.3, gemfiles/rails_6.0.gemfile) 19 Jul 2019 01:42PM CUT 0
99.04
Travis Job 692.14
15 692.15 (2.5.5, gemfiles/rails_edge.gemfile) 19 Jul 2019 01:43PM CUT 0
80.71
Travis Job 692.15
16 692.16 (2.6.3, gemfiles/rails_edge.gemfile) 19 Jul 2019 01:44PM CUT 0
80.71
Travis Job 692.16
17 692.17 (ruby-head, gemfiles/rails_5.0.gemfile) 19 Jul 2019 01:43PM CUT 0
99.04
Travis Job 692.17
18 692.18 (ruby-head, gemfiles/rails_5.1.gemfile) 19 Jul 2019 01:44PM CUT 0
99.04
Travis Job 692.18
19 692.19 (ruby-head, gemfiles/rails_5.2.gemfile) 19 Jul 2019 01:45PM CUT 0
99.04
Travis Job 692.19
20 692.20 (ruby-head, gemfiles/rails_6.0.gemfile) 19 Jul 2019 01:45PM CUT 0
99.04
Travis Job 692.20
21 692.21 (ruby-head, gemfiles/rails_edge.gemfile) 19 Jul 2019 01:46PM CUT 0
80.71
Travis Job 692.21
Source Files on build 692
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next
  • Back to Repo
  • Travis Build #692
  • 166bd846 on github
  • Next Build on feature/do-not-raise-invalid-locale-errors (#704)
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

© 2025 Coveralls, Inc