fog / fog-digitalocean

Fog for DigitalOcean Platform — Edit
MIT License
17 stars 18 forks source link

no implicit conversion of Symbol into Integer #28

Closed kalashnikovisme closed 2 years ago

kalashnikovisme commented 2 years ago

Hi, everyone!

Have this issue on starting rails server

config/initializers/carrierwave.rb

CarrierWave.configure do |config|
  config.asset_host = 'https://my-assets.ams3.digitaloceanspaces.com'

  config.fog_credentials = {
    provider: 'AWS',
    aws_access_key_id: ENV['DIGITAL_OCEAN_ACCESS_KEY'],
    aws_secret_access_key: ENV['DIGITAL_OCEAN_SECRET_KEY'],
    region: 'ams3',
    endpoint: 'https://ams3.digitaloceanspaces.com'
  }
  config.fog_directory  = 'my-directory'
  config.fog_attributes = { 'Cache-Control' => 'max-age=315576000' }
end

The issue disappears after removing fog-digitalocean gem.

gem 'fog', '0.7.2' gem 'fog-digitalocean', '0.4.0'

kalashnikovisme commented 2 years ago

Problem was solved by updating fog gem version..