title: Figaro syntax error, unexpected tSYMBEG, expecting '}' (SyntaxError)
body: <p><strong>Update September 3rd</strong> this is not working either.....</p>
  
  <pre><code>CarrierWave.configure do |config|
    config.fog_credentials = {
      :provider               =&gt; 'AWS'                           # required
      :aws_access_key_id      =&gt; ENV["AWS_ACCESS_KEY_ID"]        # required
      :aws_secret_access_key  =&gt; ENV["AWS_SECRET_ACCESS_KEY"]    # required
    }
    config.fog_directory  = ENV["AWS_S3_BUCKET"]                 # required
  end
  </code></pre>
  
  <hr>
  
  <p>I am using the figaro gem to store env variables of my aws credentials. </p>
  
  <p>here is my initializers/carrierwave.rb file </p>
  
  <pre><code>CarrierWave.configure do |config|
    config.fog_credentials = {
      :provider               =&gt; 'AWS'                       # required
      :aws_access_key_id      =&gt; ENV[AWS_ACCESS_KEY_ID]        # required
      :aws_secret_access_key  =&gt; ENV[AWS_SECRET_ACCESS_KEY]    # required
      #:region                 =&gt; 'us-east-1',                  # optional, defaults to 'us-east-1'
      #:host                   =&gt; 's3.example.com',             # optional, defaults to nil
      #:endpoint               =&gt; 'https://s3.example.com:8080' # optional, defaults to nil
    }
    config.fog_directory  = ENV[AWS_S3_BUCKET]                 # required
  end
  </code></pre>
  
  <p>when I do rails s I am getting this error</p>
  
  <pre><code>/initializers/carrierwave.rb:6: syntax error, unexpected tSYMBEG, expecting '}' (SyntaxError)
      :aws_access_key_id      =&gt; ENV...
       ^
  /Users/judyngai/tryagain_newproject/onemonth/lintong/config/initializers/carrierwave.rb:7: syntax error, unexpected =&gt;, expecting keyword_end
      :aws_secret_access_key  =&gt; ENV[AWS_SECRET_ACCESS_KEY]  ...
  </code></pre>
  
  <p>here is my application.yml as generated by the figaro gem </p>
  
  <pre><code> AWS_ACCESS_KEY_ID: "blahblahblahblah"                   
   AWS_SECRET_ACCESS_KEY: "blahblahblahblah"
   AWS_S3_BUCKET: "blahblahblahblah"
  </code></pre>
  
  <p>what am I doing wrong?</p>