-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add included_keys filter (tests broken atm) #140
base: master
Are you sure you want to change the base?
Conversation
315b6ab
to
e40a2bd
Compare
Hi @h0jeZvgoxFepBQ2C , I'm back online, I'll take a look at this PR later this week. |
@h0jeZvgoxFepBQ2C could you update PR with rebased master? |
a1d4255
to
b56cb93
Compare
b56cb93
to
386fe28
Compare
Rebased it again, would be cool if you could take a look, thanks! |
386fe28
to
bc67a3b
Compare
I've rebased the PR, would be great if someone could take a look at it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@h0jeZvgoxFepBQ2C I think the only remark I have is how variable is called. What do you think?
@@ -10,6 +10,7 @@ module Lit | |||
mattr_accessor :humanize_key | |||
mattr_accessor :humanize_key_ignored_keys | |||
mattr_accessor :humanize_key_ignored | |||
mattr_accessor :included_keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this variable name is misleading. How about only_accepted_keys
?
Adds a filter to only include specified keys (see #139).
If ignored_keys is specified too, it will search for keys which are included, but are not ignored.
Tests are not running through, but I don't understand why exactly.
It seems that
Lit.included_keys
is not reset during test runs, even when the loader is set to nil?Do you maybe have an idea @mlitwiniuk ?