Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

suppress hashie log#17

Merged
icco merged 1 commit into
icco:masterfrom
zhu1230:suppress_hashie_log
Jan 13, 2018
Merged

suppress hashie log#17
icco merged 1 commit into
icco:masterfrom
zhu1230:suppress_hashie_log

Conversation

@zhu1230
Copy link
Copy Markdown

@zhu1230 zhu1230 commented Jan 13, 2018

This PR is for getting rid of the warning message from Hashie.
Also, cleaned up the logger.

Thanks!

module Instagram
class HashieWrapper < ::Hashie::Mash
disable_warnings
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end at 6, 2 is not aligned with class at 4, 1.

Comment thread lib/instagram/hashie_wrapper.rb Outdated

module Instagram
class HashieWrapper < ::Hashie::Mash
disable_warnings
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tab detected.
Trailing whitespace detected.

Comment thread lib/instagram/hashie_wrapper.rb Outdated
require 'hashie'

module Instagram
class HashieWrapper < ::Hashie::Mash
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 (not 1) spaces for indentation.
Tab detected.
Missing top-level class documentation comment.
Trailing whitespace detected.

Comment thread lib/instagram/hashie_wrapper.rb Outdated
@@ -0,0 +1,7 @@
require 'hashie'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Comment thread lib/instagram/connection.rb Outdated
}.merge(connection_options)

FaradayMiddleware::Mashify.mash_class = HashieWrapper

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

Comment thread lib/instagram/hashie_wrapper.rb Outdated
class HashieWrapper < ::Hashie::Mash
disable_warnings
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at module body end.

Comment thread lib/instagram/hashie_wrapper.rb Outdated
module Instagram
# Custom hashie mash class so that it suppresses the log on warnings.
class HashieWrapper < ::Hashie::Mash
disable_warnings
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 (not 1) spaces for indentation.
Tab detected.
Trailing whitespace detected.

@zhu1230 zhu1230 force-pushed the suppress_hashie_log branch from 31c35a3 to 4a8e426 Compare January 13, 2018 00:15
@icco icco merged commit 55b3b56 into icco:master Jan 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants