Skip to content
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

Merged
merged 4 commits into from
Jun 29, 2017
Merged

Patch rubocop #173

merged 4 commits into from
Jun 29, 2017

Conversation

ykws
Copy link
Collaborator

@ykws ykws commented Jun 28, 2017

fixes #172

@orta
Copy link
Owner

orta commented Jun 28, 2017

Thanks @ykws - we really need to keep ruby 2.0 support around - any chance you can add activesupport < 5 to the Gemfile?

@ykws
Copy link
Collaborator Author

ykws commented Jun 29, 2017

@orta Thank you for the review. I tried it.
Success bundle exec rake spec

@@ -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?
Copy link
Owner

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 )

Copy link
Collaborator Author

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.

@orta
Copy link
Owner

orta commented Jun 29, 2017

Amazing! Thanks!

@orta orta merged commit 83b0c3f into orta:master Jun 29, 2017
@ykws ykws deleted the patch-rubocop branch June 30, 2017 00:38
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.

rake spec has any offenses detected
2 participants