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

Remove MAUTH_CONFIG_YML from spec_helper.rb #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ykitamura-mdsol
Copy link
Contributor

no longer reading config file

@ykitamura-mdsol
Copy link
Contributor Author

@ejennings-mdsol

Comment on lines -100 to -102
is_win = RUBY_PLATFORM =~ /mswin|windows|mingw32|cygwin/i
null_device = is_win ? 'NUL' : '/dev/null'
::Logger.new(File.open(null_device, File::WRONLY))
Copy link
Contributor

Choose a reason for hiding this comment

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

What changed that this is no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rubocop doesn't like NUL and /dev/null:
https://github.com/mdsol/mauth-client-ruby/actions/runs/12077251048/job/33679854702?pr=70

lib/mauth/client.rb:101:34: C: [Correctable] Style/FileNull: Use File::NULL instead of NUL.
          null_device = is_win ? 'NUL' : '/dev/null'
                                 ^^^^^
lib/mauth/client.rb:101:42: C: [Correctable] Style/FileNull: Use File::NULL instead of /dev/null.
          null_device = is_win ? 'NUL' : '/dev/null'
                                         ^^^^^^^^^^^

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.

2 participants