Skip to content

Fixes/missing sample file error#40

Merged
bronzdoc merged 6 commits intomainfrom
fixes/missing-sample-file-management
Sep 20, 2021
Merged

Fixes/missing sample file error#40
bronzdoc merged 6 commits intomainfrom
fixes/missing-sample-file-management

Conversation

@etagwerker
Copy link
Copy Markdown
Member

Hi there,

This PR fixes #24.

Please check it out and let me know if you have any questions.

I will abide by the code of conduct.

Thanks!

If .env.sample is not found, we want to make sure that we raise an
error that guides the gem user into doing the right thing (they
will need to add an .env.sample file to their project)
Comment thread lib/dotenv_validator.rb
# Taken from Dotenv source code.
def self.root
root_or_pwd = Pathname.new(ENV["RAILS_ROOT"] || Dir.pwd)
root_or_pwd = Pathname.new(ENV['RAILS_ROOT'] || Dir.pwd)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why the change to single quotes is needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@bronzdoc If I did not change that, rubocop would complain.

@bronzdoc bronzdoc merged commit 0fe0497 into main Sep 20, 2021
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.

Raise exception if .env.sample file is not found?

2 participants