Skip to content

Fix many deprecation warnings, tests#8

Open
wjessop wants to merge 6 commits intochrisvfritz:masterfrom
wjessop:master
Open

Fix many deprecation warnings, tests#8
wjessop wants to merge 6 commits intochrisvfritz:masterfrom
wjessop:master

Conversation

@wjessop
Copy link

@wjessop wjessop commented Jul 1, 2022

Some small modernisations and deprecation fixes. Each commit makes sense in isolation and should be fairly self-explanatory.

Includes a fix for the tests which were failing.

wjessop added 6 commits July 1, 2022 18:28
Fixes all the deprecations in the form:

    language_filter/test/lib/language_filter/version_test.rb:6. Use _(obj).wont_be_nil instead. This will fail in Minitest 6.
File.exists? is a deprecated name, use File.exist? instead
We don't need to use attr_accessor to handle assignment when we define a method_name= method in the class that will override it.

language_filter/lib/language_filter.rb:44: warning: method redefined; discarding old matchlist=
language_filter/lib/language_filter.rb:54: warning: method redefined; discarding old exceptionlist=
language_filter/lib/language_filter.rb:62: warning: method redefined; discarding old replacement=
lib/language_filter.rb:184: warning: assigned but unused variable - first_char_done
@wjessop
Copy link
Author

wjessop commented Sep 27, 2022

Any chance of a merge/release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant