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

ruby-grape / grape / 13552872935

26 Feb 2025 08:34PM UTC coverage: 98.108% (-0.3%) from 98.389%
13552872935

Pull #2540

github

web-flow
Merge 625d752a2 into 0f57e01dc
Pull Request #2540: Deprecates Grape's Extensions for ParamsBuilder in favor of build_with

58 of 63 new or added lines in 13 files covered. (92.06%)

9 existing lines in 3 files now uncovered.

3578 of 3647 relevant lines covered (98.11%)

75684.01 hits per line

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

57.14
/lib/grape/extensions/hash.rb
1
# frozen_string_literal: true
2

3
module Grape
60✔
4
  module Extensions
60✔
5
    module Hash
60✔
6
      module ParamBuilder
60✔
7
        extend ::ActiveSupport::Concern
60✔
8

9
        included do
60✔
10
          Grape.deprecator.warn 'This concern has been deprecated. Use `build_with` with one of the following short_name (:hash, :hash_with_indifferent_access, :hashie_mash) instead.'
49✔
NEW
11
          namespace_inheritable(:build_params_with, :hash)
×
12
        end
13

14
        def build_params
60✔
UNCOV
15
          rack_params.deep_dup.tap do |params|
×
UNCOV
16
            params.deep_symbolize_keys!
×
17

UNCOV
18
            if env.key?(Grape::Env::GRAPE_ROUTING_ARGS)
×
UNCOV
19
              grape_routing_args.deep_symbolize_keys!
×
UNCOV
20
              params.deep_merge!(grape_routing_args)
×
21
            end
22
          end
23
        end
24
      end
25
    end
26
  end
27
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