I get an error using Figaro gem in Rails

Error messages refer to a line in the stone, but I suspect that my problem lies in my file .yml, which is here (with fake identifiers)

S3_KEY:ANGELINAANGELINA 

S3_SECRET:becaUSEILIKEherthatiswhy

S3_BUCKET:nameofmybucket

/home/tom/.rvm/gems/ruby-2.1.0/gems/figaro-0.7.0/lib/figaro.rb:39:in flatten': undefined methodreject 'for # ( NoMethodError)

+4
source share
3 answers

Well, if you just hand out green checks ... I'll take one! :)

Analysis error, space after each:

+3
source

S3_KEY: ANGELINAANGELINA

S3_SECRET: becaUSEILIKEherthatiswhy

S3_BUCKET: nameofmybucket

: figaro, yml

+1

Figaro does not analyze the tab space. This means that if you want padding, you will need to use single spaces. You can use the online parser to check the code and the game. Here is one: http://www.yamllint.com/

0
source

Source: https://habr.com/ru/post/1529097/


All Articles