s3_options = {
access_key_id: "abc",
secret_access_key: "xyz",
region: "my-region",
bucket: "my-bucket",
}
Shrine::Storage::S3.new(prefix: "cache", **s3_options)
=> #<Shrine::Storage::S3:0x007ff5a9ec4db0 @prefix="cache", @s3=#<Aws::S3::Resource>, @bucket=#<Aws::S3::Bucket name="my-bucket">, @host=nil, @upload_options={}, @multipart_threshold=15728640>
=> #<Shrine::Storage::S3:0x007fb76d4e19f8 @prefix=nil, @s3=#<Aws::S3::Resource>, @bucket=#<Aws::S3::Bucket name="my-bucket">, @host=1, @upload_options={}, @multipart_threshold=15728640>
--
You received this message because you are subscribed to the Google Groups "Shrine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-shrine+unsubscribe@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-shrine/2a73c920-5477-43ca-be2e-18337bffa528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I tried to reproduce, and the Shrine::Storage::S3 was correctly initialized for me: https://gist.github.com/janko-m/a7975a31d1fa15228eb1606e66fe5064Could you try running that script and see if you are seeing this behaviour? If not, could you try to come up with a self-contained script which reproduces the bug?Kind regards,Janko
On Wed, Nov 9, 2016 at 2:25 AM, <pe...@sigut.net> wrote:
Hi,we are trying to get rid of fog-aws, because it is not longer needed in our Gemfile. We are using aws-sdk gem.If I initialize new S3 storage with fog-aws in my Gemfile:s3_options = {
access_key_id: "abc",
secret_access_key: "xyz",
region: "my-region",
bucket: "my-bucket",
}
Shrine::Storage::S3.new(prefix: "cache", **s3_options)
=> #<Shrine::Storage::S3:0x007ff5a9ec4db0 @prefix="cache", @s3=#<Aws::S3::Resource>, @bucket=#<Aws::S3::Bucket name="my-bucket">, @host=nil, @upload_options={}, @multipart_threshold=15728640>see that **prefix** is correctly set and **host** is nil, but when I do it without fog-aws in Gemfile:
=> #<Shrine::Storage::S3:0x007fb76d4e19f8 @prefix=nil, @s3=#<Aws::S3::Resource>, @bucket=#<Aws::S3::Bucket name="my-bucket">, @host=1, @upload_options={}, @multipart_threshold=15728640>the prefix is nil and the host is set to "1".The only difference is with and without fog-aws installed.I tried several aws-sdk versions, several shrine versions... I guess I am missing something but have no idea where to start. I appreciate any help.
--
You received this message because you are subscribed to the Google Groups "Shrine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-shrine...@googlegroups.com.