-
Notifications
You must be signed in to change notification settings - Fork 94
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
Patch rubocop #173
Patch rubocop #173
Conversation
Thanks @ykws - we really need to keep ruby 2.0 support around - any chance you can add |
@orta Thank you for the review. I tried it. |
lib/keyring_liberator.rb
Outdated
@@ -63,7 +63,7 @@ def self.get_all_keyrings | |||
end | |||
|
|||
def self.get_keyring_at_path(path) | |||
Keyring.from_hash(YAML.load(path.read)) if path.file? | |||
Keyring.from_hash(YAML.safe_load(path.read)) if path.file? |
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.
any chance you can check for YAML.safe_load
's existence before using it? in the CI it doesn't seem to exist (could be a ruby 2.0 thing )
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.
sorry. my local ruby was 2.4 . I changed it to ruby 2.0 and retry bundle exec rake spec
and succeeded.
Amazing! Thanks! |
fixes #172