Skip to content

Commit

Permalink
Fixes HTTP verb method proxies for kwargs in ruby 3+
Browse files Browse the repository at this point in the history
  • Loading branch information
aalong-tr committed Jun 13, 2023
1 parent 7eadeba commit f6ac5a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
3.0.5
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.7] - 2023-06-13
### Changed
- Bumps target ruby version to 3.0.5
- Fixes kwargs forwarding for Ruby 3

## [0.0.6] - 2022-03-16
### Changed

Expand Down
8 changes: 4 additions & 4 deletions lib/tests_doc/record_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ def recording_api_interaction(path: nil, key: nil, description: nil, whitelist:
TestsDoc.interaction_options = nil
end

def get(*)
def get(*, **)
record_interaction { super }
end

def post(*)
def post(*, **)
record_interaction { super }
end

def put(*)
def put(*, **)
record_interaction { super }
end

def delete(*)
def delete(*, **)
record_interaction { super }
end

Expand Down
2 changes: 1 addition & 1 deletion lib/tests_doc/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TestsDoc
VERSION = "0.0.6"
VERSION = "0.0.7"
end

0 comments on commit f6ac5a8

Please sign in to comment.