README.md in massive-0.2.0 vs README.md in massive-0.3.0

- old
+ new

@@ -166,26 +166,24 @@ process.file.gather_info! ``` We also didn't have to specify how the job would iterate through each row, it is already defined. We just get a CSV::Row, which will be a Hash-like structure where the header of the CSV is the key, so we can just pass it to `User.create`. Of course this is a simple example, you should protect the attributes, or even pass only the ones you want from the CSV. -The `Massive::File` has support for [Fog::Storage][http://fog.io/storage/]. To use it yoy must define the `fog_credentials` and optionally the `fog_directory` and `fog_authenticated_url_expiration`: +The `Massive::File` has support for getting files from Amazon AWS S3 service. To use it you must define the `storage_config`: ```ruby - Massive.fog_credentials = { - provider: 'AWS', - aws_access_key_id: 'INSERT-YOUR-AWS-KEY-HERE', - aws_secret_access_key: 'INSERT-YOUR-AWS-SECRET-HERE' + Massive.storage_config = { + key: 'INSERT-YOUR-AWS-KEY-HERE', + secret: 'INSERT-YOUR-AWS-SECRET-HERE' + directory: 'your-bucket-here', # defaults to 'massive' + expiration: 30.minutes # defaults to 1.hour } - - Massive.fog_directory = 'your-bucket-here' # defaults to 'massive' - Massive.fog_authenticated_url_expiration = 30.minutes # defaults to 1.hour ``` Then set the `filename` field when creating the `Massive::File` instead of setting its `url`. Notice that the filename should point to the full path within the bucket, not just the actual filename. ```ruby - process = Massive::FileProcess.new(file_attributes: { filename: '/path/to/my/file.csv' }) + process = Massive::FileProcess.new(file_attributes: { filename: 'path/to/my/file.csv' }) ``` ## Contributing 1. Fork it