Skip to content

Commit

Permalink
chore: drop deprecated instance vars support
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Dec 28, 2020
1 parent f7adcf3 commit f81a443
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master

- Drop deprecated `attr_config` instance variables support.

Config setters no longer write instance variables.

- Add `config.anyway_config.future` to allow enabling upcoming features. ([@palkan][])

For smoother upgrades, we provide a mechanism to opt-out to the new defaults beforehand.
Expand Down
3 changes: 1 addition & 2 deletions lib/anyway/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ def define_config_accessor(*names)
accessors_module.module_eval <<~RUBY, __FILE__, __LINE__ + 1
def #{name}=(val)
__trace__&.record_value(val, \"#{name}\", **Tracing.current_trace_source)
# DEPRECATED: instance variable set will be removed in 2.1
@#{name} = values[:#{name}] = val
values[:#{name}] = val
end
def #{name}
Expand Down
2 changes: 1 addition & 1 deletion lib/anyway/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Anyway # :nodoc:
VERSION = "2.0.6"
VERSION = "2.1.0"
end

0 comments on commit f81a443

Please sign in to comment.