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

ruby-grape / grape / 16249724556

13 Jul 2025 01:36PM UTC coverage: 98.197% (+0.001%) from 98.196%
16249724556

Pull #2582

github

web-flow
Merge 7b330f946 into 2dd0bd9d0
Pull Request #2582: Fix leaky slash when normalizing

3 of 3 new or added lines in 1 file covered. (100.0%)

3376 of 3438 relevant lines covered (98.2%)

50148.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/lib/grape/middleware/filter.rb
1
# frozen_string_literal: true
2

3
module Grape
44✔
4
  module Middleware
44✔
5
    # This is a simple middleware for adding before and after filters
6
    # to Grape APIs. It is used like so:
7
    #
8
    #     use Grape::Middleware::Filter, before: -> { do_something }, after: -> { do_something }
9
    class Filter < Base
44✔
10
      def before
44✔
11
        app.instance_eval(&options[:before]) if options[:before]
×
12
      end
13

14
      def after
44✔
15
        app.instance_eval(&options[:after]) if options[:after]
×
16
      end
17
    end
18
  end
19
end
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