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
ebedee632d3609828893b004a56f6d14f234e87d authored over 6 years ago by Janko Marohnić <[email protected]>
6a961fb51dfecb454cf497d4ddd51db1d760f06e authored over 6 years ago by Janko Marohnić <[email protected]>
f3ce5ad95568cc36906618eb40174f8b931c7bb8 authored over 6 years ago by Hiren Mistry <[email protected]>
e93dfef9b29c6ac37a69e050ce86f4f95a8119fe authored over 6 years ago by Janko Marohnić <[email protected]>
Closes #279.
c4676177b855c51e45716cb44258722d4896642a authored over 6 years ago by Hiren Mistry <[email protected]>Addresses #276
0b0ee7a19c4a37c5e464723875d7e4e96eedd73f authored over 6 years ago by hmistry <[email protected]>
Thread#join will already make the exception re-raised in the main
thread, so we don't need to se...
34cb5adf73a240be1ae14f9d31b8fbfbbde26ddf authored over 6 years ago by Janko Marohnić <[email protected]>
Changes the filesize in the error message to a more human readable version with units upto YB. F...
b567d29af63df7a64aaefc111080dbfba11e8a56 authored over 6 years ago by Hiren Mistry <[email protected]>
On subclassing the dynamic storage resolvers are currently not being
inherited from the Shrine s...
ba204ea2b462e02b0ac6f30255bc0a0b71ced5c5 authored over 6 years ago by Janko Marohnić <[email protected]>
By using a Shrine::UploadedFile#download block we ensure the original
file will be closed and de...
This was deprecated because it could potentially be abused since version
names are not whitelist...
1f68be4880905199bb294da08858f8b1c99d532f authored over 6 years ago by Janko Marohnić <[email protected]>
* Update Active Record dependency to >= 5.2
* Remove version constraint in jruby sqlite adapt...
c7d9d3ba4639c94fbc2d6c6fb430154e54637f8a authored over 6 years ago by Hiren Mistry <[email protected]>1f11094ac9e4966e86d6ca22b5af2b9161de272c authored over 6 years ago by Janko Marohnić <[email protected]>
0b9a037eaf264a4b6e41505ca3009e89d503dcdb authored over 6 years ago by Janko Marohnić <[email protected]>
0dc93c19860211ff750f0196f5fe13b15d09b2fa authored over 6 years ago by Janko Marohnić <[email protected]>
This is more change positive, because in the future Attacher#assign will
probably accept uploade...
In certain cases one might need to pass downloader options dynamically
in the controller. For ex...
The :redirect option makes the download endpoint to redirect to the
direct URL of the uploaded f...
f6f61bc787974ff7aacb2c305734591538b853dd authored over 6 years ago by Janko Marohnić <[email protected]>
bab353c651b92b119969f6cd641f8275d4ba0bfe authored over 6 years ago by Janko Marohnić <[email protected]>
245f5b9a05266d8cc9148e472e1b54cda7d8c26a authored over 6 years ago by Janko Marohnić <[email protected]>
Files always have to be opened in binary mode, otherwise encoding issues
can happen and copying ...
8727f8f4a77a9deeee619d6cfeefd9293358c459 authored over 6 years ago by Janko Marohnić <[email protected]>
629b147dee23e111776cc03021a6325c498c9286 authored over 6 years ago by Janko Marohnić <[email protected]>
That allows preventing Down::ChunkedIO to cache read content to disk in
case the user doesn't ne...
While we're here, we also correct some examples from guides.
6b1f3bba27dc550a59aa4b6c41fe0c7a19863bc9 authored over 6 years ago by Janko Marohnić <[email protected]>
Since most of the versions update the minor version, we can omit the
patch version if it's 0.
W...
4b15b955475dda655917683967fc8fd0594a77e8 authored over 6 years ago by Janko Marohnić <[email protected]>ed8b34b45b43ff65f0967dbcb29353ca4e071164 authored over 6 years ago by Janko Marohnić <[email protected]>
9bbf051eb42f7b0ef55fa2edf0f43edbf1bef1dd authored over 6 years ago by Janko Marohnić <[email protected]>
It seems that the StringIO object (and maybe some other IO objects as
well) raise an "IOError: c...
Previously UploadedFile#open would always open a new IO object when
block was given, otherwise i...
b4dda44b16b2b25cd1bd2b6a5be52afee3c36810 authored over 6 years ago by Janko Marohnić <[email protected]>
4154fbed54d9739807b9d20e0a7bbbca575b7322 authored over 6 years ago by Janko Marohnić <[email protected]>
Forme automatically adds a CSRF hidden input when it detects you're
using rack_csrf.
Using a form generator makes forms more readable.
a486cd3378db87abd63a84c7d923349598b87dac authored over 6 years ago by Janko Marohnić <[email protected]>20304cb64bcea60e2c465d3fba6a6dfec99755cf authored over 6 years ago by Janko Marohnić <[email protected]>
9bdef1339202bfa71adb092e9616eca4eed88026 authored over 6 years ago by Janko Marohnić <[email protected]>
bb6afb02585970e04c57ea57ea084beebe0948a2 authored over 6 years ago by Janko Marohnić <[email protected]>
af8cacf7fd465a16482bcb15ca4cc8f4022f5011 authored over 6 years ago by Janko Marohnić <[email protected]>
145fbe89adcf1e8476f9ded20bc11efc94663d92 authored over 6 years ago by Janko Marohnić <[email protected]>
c97ccb36840994cf50e29f6b6e6f4f3306b32952 authored over 6 years ago by Janko Marohnić <[email protected]>
f0372e16c5c5d8f24d17dfd9afe3a30614c7b857 authored over 6 years ago by Janko Marohnić <[email protected]>
0dffac6f57e9cb4868655f65515f318fbde9f07f authored over 6 years ago by Janko Marohnić <[email protected]>
Selected files are uploaded asynchronously and only their JSON data
should be submitted with the...
15597359f9c1f3eccca7233862d5fcad65821b02 authored over 6 years ago by Janko Marohnić <[email protected]>
58751f13979504efcc435c3a4120304efb603378 authored over 6 years ago by Janko Marohnić <[email protected]>
6c2a6fbe96435ae423a962745806a66d7f9d1e6b authored over 6 years ago by Janko Marohnić <[email protected]>
cbcdd97c8c748603b43d155bfe88c80802463fbc authored over 6 years ago by Janko Marohnić <[email protected]>
* Add Shrine highlights
* Write "Advantages of Shrine" guide
* Write "File Processing" guide
* W...
1538b3d2ff032c2edb9627e7827ac0336d19de2c authored over 6 years ago by Janko Marohnić <[email protected]>
This functionality is useful in metadata extraction, when an analyzer is
used that requires a fi...
* Remove duplication of the file hash
* Recommend using PUT direct uploads
* Add section for usi...
RDoc only has syntax highlighting for Ruby, so we convert all examples
to be written in pure Rub...
That should fix the failures in S3 storage due to Numeric#step yielding
Floats instead of Integers.
Some storages generate presign data for POST uploads (AWS S3, Cloudinary,
Uploadcare), and other...
AWS SDK has two methods of generating presigned data for direct uploads.
One method is using #pr...
f95d0580bdaf15a0679115e9e8239055d9d7f8e2 authored over 6 years ago by Janko Marohnić <[email protected]>
Now that presign_endpoint supports Storage#presign returning a Hash
object, we deprecate returni...
We want to migrate away from returning custom objects in
Storage#presign, so we're recommending ...
Having Storage#presign return an object that responds to #url and #fields is
only convenient for...
Using checksums when uploading files ensures file integrity. Bytes can
always get lost when sent...
209b1a93b9d3cb987187156ab910ac926e3748c1 authored over 6 years ago by Janko Marohnić <[email protected]>
This is consistent with other tests.
dddb1e372be2ed0674f1c3abf82db0147253cb0c authored over 6 years ago by Janko Marohnić <[email protected]>da8e5c36eec4680bd5f86f40fbcd79449722c4f1 authored over 6 years ago by Janko Marohnić <[email protected]>
The aws-sdk-s3 gem supports various ways of authenticating other than
providing credentials dire...
When creating a pair of AWS credentials, it's good practice to limit
their permissions to only t...
All metadata are extracted regardless of the type of file, which means
that dimensions analyzers...
b6308efdb9f96c913f553da783c7024f8d42334b authored over 6 years ago by Patrick Crowley <[email protected]>
The reason we currently strip away the bucket name from the path is
because when bucket name has...
d8df6279e28cf813e473d71d6fb78d5c1af0567b authored almost 7 years ago by Janko Marohnić <[email protected]>
87eecbc3cd874a7d842319ee4598606e7db8fd47 authored almost 7 years ago by edward sharp <[email protected]>
The file command version 5.14 has a bug where if empty content is given
on standard input, it wi...
8bc27b9f37cb2f7c9cdf03cbc980b84ce199b758 authored almost 7 years ago by Janko Marohnić <[email protected]>
The new UploadedFile#stream has the feature that when the uploaded file
is already opened, the c...
This can be useful when the user wants to write file content into an
existing writable object.
...
0545accce6237070f896eeb56a4f760339708844 authored almost 7 years ago by Janko Marohnić <[email protected]>5f0b7a5814d35aaac5172f7c6f7679efdc590867 authored almost 7 years ago by Janko Marohnić <[email protected]>
Prior to version 2.7.0, :mime_types and :mini_mime MIME type
analyzers would correctly determine...
c0a9c9660d20e33eab1c5d974ef394b20e72db29 authored almost 7 years ago by Janko Marohnić <[email protected]>
The upload_endpoint and presign_endpoint plugins that were extracted
from the direct_upload plug...
83599e498ffe0e0ddf4afc5e70032402e562c273 authored almost 7 years ago by Janko Marohnić <[email protected]>
8b2eae27d33cd600f1d53cbc0f4943308794d117 authored almost 7 years ago by Janko Marohnić <[email protected]>
753757e45c22b117c178bf4969ab4aee4b779b48 authored almost 7 years ago by Janko Marohnić <[email protected]>
2838ac5d95f68650aa52644e12f1cb775e5f75b6 authored almost 7 years ago by Janko Marohnić <[email protected]>
c2872f38bf8936d7e6bd064caa68f9798317fde5 authored almost 7 years ago by Janko Marohnić <[email protected]>
7a167bc8d5b2c725b3fa4f323398cf447c6b4711 authored almost 7 years ago by Janko Marohnić <[email protected]>
de106e461a8f42cf679a503bc9f377da584df631 authored almost 7 years ago by Janko Marohnić <[email protected]>
000b021749c541fd07426306416aa6272ab65eb7 authored almost 7 years ago by Janko Marohnić <[email protected]>
a64645a4ead344bc83504f7fa729c9760c3842bb authored almost 7 years ago by Janko Marohnić <[email protected]>
fbd517d4f79f4e73350455ba5a5aca2cbea6ed36 authored almost 7 years ago by Patrick Crowley <[email protected]>
ef466acbe8abbec80c311bb4b9ceaf5a8d31e259 authored almost 7 years ago by Janko Marohnić <[email protected]>
b2d0b5160cea3dfcd0def9e3358a064e552c08a8 authored almost 7 years ago by Janko Marohnić <[email protected]>
624e5e648356c738ccc9930f21c3ce6e588fa4c4 authored almost 7 years ago by Janko Marohnić <[email protected]>
There is no reason :mini_magick and :ruby_vips dimensions analyzers
should be restricted to just...
The extensions in Rack::Mime::MIME_TYPES are just listed in alphabetical
order, they are not ord...
7ff07482c4b4119e5efebd005e3ed35723a22317 authored almost 7 years ago by Janko Marohnić <[email protected]>
It provides a nicer UX, because the user doesn't have to go look in the
docs.
06de126233c4e0c61ea4be1f35d8a9dc9310b604 authored almost 7 years ago by Janko Marohnić <[email protected]>