-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass through includePendingStatus to the 'pacts for verification…
…' API when it is false
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Pact | ||
module HashRefinements | ||
refine Hash do | ||
def compact | ||
h = {} | ||
each do |key, value| | ||
h[key] = value unless value == nil | ||
end | ||
h | ||
end unless Hash.method_defined? :compact | ||
|
||
def compact! | ||
reject! {|_key, value| value == nil} | ||
end unless Hash.method_defined? :compact! | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters