Open Alexander-Andrade opened 1 year ago
I have the same problem. It doesn't seem addressed at all by this gem and Ruby 3.1 was released almost a year ago.
Anyone have a fix for this?
I have decided to fork this gem, so that its inspiration may live again. The new gem is called figjam
.
It can be found here: https://github.com/hlascelles/figjam
It is a drop-in replacement (sans heroku) for Figaro (with Figjam
module aliasing to Figaro
too)
I will apply this PR to it, unless you want to open the same PR there. I will attribute this author,
When trying to run
rails c
, orrails s
after migration from ruby3.0.0
to ruby3.1.2
got thisSeems the problem is in
/home/burbulis/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/figaro-1.2.0/lib/figaro/application.rb:59
YAML.load
has the next value "# ------------------------------------------------------------------------------\n# App configuration through environment variables\n# ------------------------------------------------------------------------------\n# Copy this template to config/application.yml and adjust as needed\n#\n# - Please ONLY use this file to add values that CANNOT be configured as:\n# Encrypted credentials\n# Configuration through Rails.application.config_for\n#\n# - Please add a clear description for each variable\n#\n# - Please keep this template and your local copy synchronized with actual variables\n# in the corresponding environment\n# ------------------------------------------------------------------------------\n\n# Values shared for all environments\nshared: &shared\n\ndevelopment:\n <<: shared\n # Set to false to enable OneSignal notifications to be sent in development\n DISABLE_ONE_SIGNAL: false\n\nstaging:\n <<: shared\n\nproduction:\n <<: *shared\n"