Skip to content

Commit

Permalink
Fix method redefinition warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 21, 2022
1 parent 5e6da6e commit 4663cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* Deprecate `Redis#queue` and `Redis#commit`. See #1059.

* Fix `zpopmax` and `zpopmin` when called inside a pipeline. See #1055.
* `Redis#synchronize` is now private like it should always have been.

* Add `Redis.silence_deprecations=` to turn off deprecation warnings.
If you don't wish to see warnings yet, you can set `Redis.silence_deprecations = false`.
Expand Down
6 changes: 2 additions & 4 deletions lib/redis/pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ def commands
end
end

DeprecatedPipeline = DelegateClass(Pipeline)
class DeprecatedPipeline
class DeprecatedPipeline < DelegateClass(Pipeline)
def initialize(pipeline)
super(pipeline)
@deprecation_displayed = false
Expand All @@ -203,8 +202,7 @@ def __getobj__
end
end

DeprecatedMulti = DelegateClass(Pipeline::Multi)
class DeprecatedMulti
class DeprecatedMulti < DelegateClass(Pipeline::Multi)
def initialize(pipeline)
super(pipeline)
@deprecation_displayed = false
Expand Down

0 comments on commit 4663cb6

Please sign in to comment.