laserlemon / figaro

Simple Rails app configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 1.1.1 did not work for me

Hasna1 opened this issue · comments

Hey Guys!

I encountered with an issue today with figaro. I have config/application.yml like

development:
  user_name: bloggingwebsite
  password: 'mypassword'

and in Gemfile I had

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
  gem 'figaro'
end

Then it installed the version 1.1.1. When I tried to access the ENV['user_name'] it returned nil.

To fix this I had to fix my version to 1.0.0 explicitly.
Now its fixed..

So could you please find out what the problem is?

Thanks!

Are you using Spring? If so, restart Spring and let me know if that works.

commented

Thoughts on me adding this to README.md in a PR? May be helpful for less Rails like peeps like me when they're wondering why the ENV vars are stale on their tests.

Cheers! 😄

Just logging this in case it helps someone else: it's not working either for me today, in a pure ruby app, using latest release (1.1.1). I tried using the v2 branch but go other problems which I hadn't got the time to investigate.