Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/shrinerb/shrine
File Attachment toolkit for Ruby applications
https://github.com/shrinerb/shrine
a07b8941746bb6278cb30a368cb46a478854c82e authored about 7 years ago
8ca70fcf6cd0f10c00d62e48526274b177dc7590 authored about 7 years ago
951131b91762a927b37c0aa11d52a5e5ed7070cf authored about 7 years ago
6e3f3fd23dfbb814961b19f145063d4b5acc0490 authored about 7 years ago
0405fcd831cb67c8f558842e9309d8397f7164b4 authored about 7 years ago
Previously if neither aws-sdk-s3 nor aws-sdk were present, a deprecation
warning for "aws-sdk 2....
11c3b0540ddfa05cc97e2eb3a79444b9d40e8ebb authored about 7 years ago
015ce657f501bb297d20ce5de71cabadd56bbe2d authored about 7 years ago
f3293ab312a8697918cf33eab4e22bf14a509d95 authored about 7 years ago
As a heavy user of `bundle open` I really appreciate it if the CHANGELOG is part of the gem.
b1dcc2425d91f3d7cece5b99777c9323c932b473 authored about 7 years ago75647f1327206a88e919c099bb0f72204713d8c0 authored over 7 years ago
4a239c6d09ada2511dc558e0b20542e277b3f568 authored over 7 years ago
I've never tried Attache, but honestly it looks very bloated to me.
Dragonfly has been around fo...
4dc52969b06c6287496be5a053afadd81b1e66a4 authored over 7 years ago
Amazon S3 will by default complain about the "allow_any" parameter, so it
might be that it has t...
Closes #200
98141415b1cdaca7f92183724ce8f9d85bc5694a authored over 7 years ago51a3cc43cf4602b7a987794c9bd99fa005e16aa1 authored over 7 years ago
Previously if you would want to change the temporary/permanent storage
of the Shrine::Attacher, ...
ff84c7a951364e6405686be42d28de7db8444b80 authored over 7 years ago
1c585bf7d06ed8550281544b0d6fca57f397eeed authored over 7 years ago
4c4bdd8f83cb414433a5ba9089fbbe5d8a2d67af authored over 7 years ago
f2b3c09b0a87440cc498c68cb3a19c8deae2e44b authored over 7 years ago
4798a1c6a5b0c446b6d838f62367911bbd180afe authored over 7 years ago
Travis CI has issues installing the latest JRuby version, so we
explicitly specify the latest pr...
ed0ce8feeaf4dbe6eff6490ea386762f6490786d authored over 7 years ago
624af83d63b4dfff3065f65a02ca736f5ee0d9f0 authored over 7 years ago
e0ecc2cc1bceb5595a026a5f62842db1f02b0591 authored over 7 years ago
In Rails daemon mode (`rails server -d`) the PWD (current working
directory) changes from the Ra...
When ActiveSupport is loaded, it overrides `#to_json` with its own
implementation. We don't want...
When ActiveSupport is loaded, it monkey-patches #to_json on each object
and replaces it with its...
It isn't worth using FileMagic#io, because it was added only later on in
FileMagic development, ...
The Shrine::Storage::S3#clear! method now accepts a block, which yields
each S3 object in the st...
We also move handling of the :default mime type analyzer to the class
method, where we duplicate...
10f9426bdf7329f0f546045ad35f9355772a9fb3 authored over 7 years ago
When FileMagic.open receives a block, it closes the file descriptor at
the end of the block in a...
Instead of speculating how much bytes of the IO content we will give to
the file command, we str...
0251da32e2cb735b9479bbfd962ea187ffbf4713 authored over 7 years ago
54466b7f658aead1bf00b736198292d64bb78345 authored over 7 years ago
8eb24cac5b38fd6b7b4ccf9d3d3bf60af519059a authored over 7 years ago
We don't want to return "Accept-Ranges: bytes" when user isn't even
passing in :range, because i...
8742c74db73414e23fbbf25ea4dba0b7253d0a8c authored over 7 years ago
75eb0504e8a78461d7fdbb0cc71de2a08fd59bab authored over 7 years ago
347310562a9be2a09ba7d40381f015a742a2f75b authored over 7 years ago
ec8509643d3c40ff726d1b6a33c9d32fcdea82f5 authored over 7 years ago
5502e18e2d34e354fa75214c9632a651f6296e64 authored over 7 years ago
This brings consistency into the UploadedFile#extension method, because
the developer now doesn'...
We want upload locations to have the file extension in consistent
casing, regardless of whether ...
Users can now avoid the <attachment>_* prefix on the record attributes
they want to have synced ...
This way users can load the plugin and specify the mappings all in a
single call.
plugin :met...
997b4ea962cf37ce6a4c07cacf54ef5145fcc912 authored over 7 years ago60caae40d9d43f493d1ec26e48b9bfa5d3a6639a authored over 7 years ago
278680f40fac69dab4021cdc811b07de1600f047 authored over 7 years ago
The rack_response and download_endpoint can now return partial
responses:
status, headers, bo...
e78ffddc19c59958460016a2ef518125011c0cfa authored over 7 years ago24747bb183652641d1846194a93474cc271e0282 authored over 7 years ago
2fd10163b0c3887bf5a80d21ed90ff999fa13e2d authored over 7 years ago
Storages now have the ability to accept options in #open and #download,
and users can pass in th...
5a86b0c93afc4ddd070a84033fb5a1b440772324 authored over 7 years ago
35db9644790b83ea3dc03176463fde6733b94877 authored over 7 years ago
d9ea427dcf087962784e9e46fb47e79e73a92f87 authored over 7 years ago
af2b34712c4fe6b26a9c5a569d9e90137bbd280b authored over 7 years ago
72c42b0b2151e0fc45fe6077424d68537e3d6b68 authored over 7 years ago
5f43df547dbff2fcc17a6e8661335bd0628b6eb7 authored over 7 years ago
357dea7f5ff761dba9df47915526ac45a3d37ce8 authored over 7 years ago
a65dcbaae45a0dc6c47ba4b56ebf976a86bc6933 authored over 7 years ago
Ruby 2.1 doesn't allow overriding keyword arguments, so we switch to
regular Hash#merge.
For symmetry with the `upload_endpoint` and `presign_endpoint` plugins,
we add `Shrine.download_...
2944490e1c7af869b9064806f2a8dfc63f7cd56d authored over 7 years ago
1f62389df1ea2a221bae6ea899903a3870a06aa6 authored over 7 years ago
03e31eb7c7b04e6bc2015361c3eb4d9293aca630 authored over 7 years ago
The direct_upload plugin consists of two separate endpoints: upload
endpoint and presign endpoin...
effbbbaa675ad1e1186fe03c98f0d990e2003a04 authored over 7 years ago
50d7b525b0ca4478c7e69ce631d8e24aeabca40d authored over 7 years ago
b9040fa61abf26759990f8afa858c06e6f20fc3f authored over 7 years ago
24244232b1f0767576f52b1f973933da2160dc76 authored over 7 years ago
5e39c7f71396307f96a0151ed73071e296a0ea8b authored over 7 years ago
67294bc645ba855e135ec7c80d0fdd8c31e59b1e authored over 7 years ago
b6f1c8543d81126398ca2b11b79864cb1661d156 authored over 7 years ago
On aws-sdk-s3 versions 1.0 and 1.1 Aws::S3::Object#get doesn't support
content streaming, which ...
c2f5cb137692c9bf0497fcc3e20b0be4f1a5606f authored over 7 years ago
0f13d9ef77ea7aa7c8d180efe4f142c5e2474a44 authored over 7 years ago
1f846a2f9ead44f2fb49805508bee157b5d4840d authored over 7 years ago
edc627a87923d8d38842c480bca6805339be936f authored over 7 years ago
In my experience FakeS3 hasn't really worked even for simple cases, so
it's better not to recomm...
If a developer wants to authenticate downloads, it's difficult for them
to do it with the `downl...
Roda 3 will remove EventMachine support, making the streaming plugin
essentially only syntactic ...
Since same URL will always point to the same file, and files are
immutable by Shrine recommendat...
Otherwise we would just let a storage-specific exception to propagate
and return a 500 response.
91c85ff87ce0e130f0b83e35bc8e47809b6069de authored over 7 years ago
This modifies the download_endpoint to serialize the whole uploaded file
data in the URL, in ord...
I experimented a while ago which web servers handle streaming downloads
well (i.e. are not vulne...
When making a presign request with query parameters in the URL, the
upload URL would be incorrec...
6d0bbe1fb17214b13a21532c2fdd3da527158ec4 authored over 7 years ago
376df6f9fd8da40694de4face868fae9b954450c authored over 7 years ago
3366e1de7af9218d11378207bef320f7d830e481 authored over 7 years ago
f17acdd4401135c1529c9934d3a1a1aca3dbce6b authored over 7 years ago
07be779aae9416c367ec77a68498c26f7992a8f6 authored over 7 years ago
788e09fc13dbe8402188532a363965e1412a4966 authored over 7 years ago
6f572b0076f57de0acadcd52fb1af53c8df24275 authored over 7 years ago
54814ec93dffcef853bcd85f975b9e0e25913ac8 authored over 7 years ago
ceb66c753686095c07d7cb654a6d6e737b8464d8 authored over 7 years ago
:file -> "cannot open: No such file or directory"
:filemagic -> TypeError by passing nil to buff...