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

ruby-grape / grape / 13532061947

25 Feb 2025 10:18PM UTC coverage: 98.055% (-0.3%) from 98.389%
13532061947

Pull #2540

github

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

62 of 69 new or added lines in 14 files covered. (89.86%)

9 existing lines in 3 files now uncovered.

3580 of 3651 relevant lines covered (98.06%)

75597.56 hits per line

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

75.0
/lib/grape/extensions/active_support/hash_with_indifferent_access.rb
1
# frozen_string_literal: true
2

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

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

15
          def build_params
60✔
UNCOV
16
            ::ActiveSupport::HashWithIndifferentAccess.new(rack_params).tap do |params|
×
UNCOV
17
              params.deep_merge!(grape_routing_args) if env.key?(Grape::Env::GRAPE_ROUTING_ARGS)
×
18
            end
19
          end
20
        end
21
      end
22
    end
23
  end
24
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