-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from dry-rb/add-flags-to-suppress-deprecation…
…-warnings Add flags to control deprecation notices
- Loading branch information
Showing
3 changed files
with
79 additions
and
20 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
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,19 @@ | ||
# frozen_string_literal: true | ||
|
||
require "dry/core/class_attributes" | ||
|
||
module Dry | ||
module Configurable | ||
extend Core::ClassAttributes | ||
|
||
# Set to false to suppress deprecation warning when a setting default is provided as a | ||
# positional argument | ||
defines :warn_on_setting_positional_default | ||
warn_on_setting_positional_default true | ||
|
||
# Set to false to suppress deprecation warning when a setting constructor is provided | ||
# as a block | ||
defines :warn_on_setting_constructor_block | ||
warn_on_setting_constructor_block true | ||
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