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
2b5d99dc130fa62060f83fbea32c55937384b493 authored over 5 years ago by Janko Marohnić <[email protected]>
44b8233d18330581cab6e718891321af874fb0ca authored over 5 years ago by Janko Marohnić <[email protected]>
bd73114998870b58e4c512cca65d23689a04fad9 authored over 5 years ago by Janko Marohnić <[email protected]>
013588ed08341fc5a6bdde60fb04bdaf9a2eb237 authored over 5 years ago by Janko Marohnić <[email protected]>
bab7a1d8b4bc52b0d8a0d388d61d91565e6a02c3 authored over 5 years ago by Janko Marohnić <[email protected]>
bf38aa4b37bad22097c4ca5690bf5dbfb09d92c4 authored over 5 years ago by Janko Marohnić <[email protected]>
dd38bd1474c32cac4d30bed12de88ded91d06716 authored over 5 years ago by Janko Marohnić <[email protected]>
I thought at first that we'd want to stop supporting them, but people
might be using FileSystem ...
724909b72b9f048349e229ad9b5a3c1e8eae4312 authored over 5 years ago by Janko Marohnić <[email protected]>
4d3b61857b8e9cc57ed346a4bd962dcd70d32a0f authored over 5 years ago by Janko Marohnić <[email protected]>
4dd4e1cf326b001a20d77d08a3a047c09f4b40cf authored over 5 years ago by Janko Marohnić <[email protected]>
1f584de29c961ece49b8a5997aa568e67e31deae authored over 5 years ago by Janko Marohnić <[email protected]>
60528898c1b49cf3e45fe18a53d4a66b014dbcfa authored over 5 years ago by Janko Marohnić <[email protected]>
1bbbf178b81ce82f2a041abe73f51c77df536e72 authored over 5 years ago by Janko Marohnić <[email protected]>
e3d43d22a62fe43666247451cd8354e50f2909ee authored over 5 years ago by Janko Marohnić <[email protected]>
9c3bbc082d856bcc8a1b88b38377059120f8975f authored over 5 years ago by Janko Marohnić <[email protected]>
6692421fcb5d64e80501735e1c7f5ca2a59dfdb3 authored over 5 years ago by Janko Marohnić <[email protected]>
812969e3517b050fb778addfe081ed1454b3717e authored over 5 years ago by Janko Marohnić <[email protected]>
Now that we can rely on Aws::S3::Object#upload_stream existing, we can
always use that. We also ...
945ac98d3edfbbb61d858c7c2112b4a5f0ac8cc4 authored over 5 years ago by Janko Marohnić <[email protected]>
c261941dd5be99a633dceb41a270c30130fb1cce authored over 5 years ago by Janko Marohnić <[email protected]>
The presign_endpoint now requires Hashes or something that's convertable
to a Hash, so we don't ...
5da79593095b9beee7ae88438871409663c3c249 authored over 5 years ago by Janko Marohnić <[email protected]>
Users should use :response_content_disposition instead.
f74d904ac391a31d1437796d7d5377b5d58612a5 authored over 5 years ago by Janko Marohnić <[email protected]>
Users should use the ContentDisposition gem for generating properly
encoded Content-Disposition ...
1d57d33688f2f2dfb4d36164bc716343320ef0cc authored over 5 years ago by Janko Marohnić <[email protected]>
ec05f627196a72172a3e6837bcfe297708443cf2 authored over 5 years ago by Janko Marohnić <[email protected]>
676795788234cdd2570d5661256a870ae127ff24 authored over 5 years ago by Janko Marohnić <[email protected]>
That's the version that introduced Aws::S3::Object#upload_stream, which
we need for uploading la...
e16b6acb45d28c3255003b983667d4035040f39d authored over 5 years ago by Janko Marohnić <[email protected]>
eda05bc3189bc68e7f403bc11250100e4f0d6e34 authored over 5 years ago by Janko Marohnić <[email protected]>
d23f6915a38e12ba7bb094040ad09a6eb1d381ea authored over 5 years ago by Janko Marohnić <[email protected]>
5b0c7a3fbb6ca66acadad9fd6410972e824e9e85 authored over 5 years ago by Janko Marohnić <[email protected]>
2b92feed9d14cf1fe0d3a5ec7b1e32f89f8679bd authored over 5 years ago by Janko Marohnić <[email protected]>
The instrumentation plugin overrides Shrine#get_metadata method to add
instrumentation, so calli...
f71128a53461ad2c106258ad974dd185d7c24f75 authored over 5 years ago by Janko Marohnić <[email protected]>
25fff016438981d4c0f18d2b31b5f06acebaba6b authored over 5 years ago by Janko Marohnić <[email protected]>
698f65de53002e4298ff2f4b143e37769b35b24e authored over 5 years ago by Janko Marohnić <[email protected]>
The moving plugin has been deprecated, and storages are now encouraged
to implement moving as pa...
7a51db9251e6dfba0625f3d4d13152250024fd06 authored over 5 years ago by Janko Marohnić <[email protected]>
a03f99d0583c57fced350b387100ed55055884e0 authored over 5 years ago by Janko Marohnić <[email protected]>
1a498b5eeb8b76176f46d256d3476a4fa97679e5 authored over 5 years ago by David Revelo <[email protected]>
This class is public-facing, especially when the instrumentation plugin
is used, so we move it t...
This class is public-facing, especially when the instrumentation plugin
is used, so we move it t...
The backup plugin relies heavily on the Attacher implementation, which
will change in Shrine 3.0...
This is now the recommended analyzer.
a7dea97ad4eae99d400fd29b2ea67c4d8b8b8d02 authored over 5 years ago by Janko Marohnić <[email protected]>87dfebba224d2d8ec17ed0a107a51027f6d47e10 authored over 5 years ago by Janko Marohnić <[email protected]>
This works with moving & delete_raw plugins, as well as the new :move
option for FileSystem#uplo...
Users should now pass the `move: true` to FileSystem#upload. FileSystem
storage was the only one...
Users of the moving plugin should now switch to that option. This will
make it easier to reason ...
We've recently removed similar logic from the S3 storage, because it
wasn't worth the added cost...
ff4d2ea0e14e8b8c99da59c4a1188f963c0e461f authored over 5 years ago by Janko Marohnić <[email protected]>
The new instrumentation plugin provides much more visibility into Shrine
operations than the log...
When having metadata for which there aren't any file methods, you'd
retrieve them like this:
...
9871e104ae514f80ae723e7515efe972774dae4c authored over 5 years ago by Janko Marohnić <[email protected]>
I like that when I require `lib/shrine/uploaded_file.rb`, that file is
in charge of providing me...
While I decided that Shrine 3.0 will continue to not use an MIME type
analyzer by default, we ca...
8e8e447115620489b48ef1fe73682a8e3bdff71e authored over 5 years ago by Janko Marohnić <[email protected]>
b72ef84e5f9d05d44ffa6a7ef3b0435b6ab7da96 authored over 5 years ago by Janko Marohnić <[email protected]>
4d6b51104d0f7b9e00f68bbe6a4a4bbb35f34358 authored over 5 years ago by Janko Marohnić <[email protected]>
People should be able to have Shrine log anything into the Rails logger
when using Shrine inside...
e96e49e64a93142e07c0e7c2c712b7e7dacd9848 authored over 5 years ago by Janko Marohnić <[email protected]>
The copy plugin has had some undesired behaviour, mostly around its
`#initialize_copy` override ...
If metadata extraction is heavy, in tests people might want to skip it.
So we add support for th...
569836d73b001e8a25acbe13a405a8e8d05ac7d3 authored over 5 years ago by Janko Marohnić <[email protected]>
We can use lazy enumerators to do lazy selection, which is less verbose
than creating our own En...
This was possible before Shrine 2.18.0, although unintentionally. In
https://github.com/shrinerb...
95533749cd774ce041b1e1fe2496f2dc9c2e1f6c authored over 5 years ago by Barna <[email protected]>
56b0060057df4d2e45f92d29d21084602f726424 authored over 5 years ago by Janko Marohnić <[email protected]>
bcf324f26f272121c6216dbc59d6ac2949d10e2d authored over 5 years ago by Jeff Levin <[email protected]>
66120d7452b76aac03325038c7f72b4d5d97d055 authored over 5 years ago by Janko Marohnić <[email protected]>
I feel they are too technical for someone not familiar with Uppy, and
it's kind of out of the bl...
It would rarely be obvious how to use it, as people are in different
contexts for different feat...
This gives people more flexibility in what they want to delete, and
makes the API consistent wit...
It makes it stand out nicely when reading, which is desired as it's the
most important part of d...
This was removed with the simplification of the README, but it's very
important in understanding...
This test fails randomly on JRuby and I don't know why.
https://travis-ci.org/shrinerb/shrine/j...
9628ead1659ac2fe2442776697497f89fd004814 authored over 5 years ago by Janko Marohnić <[email protected]>This aliases
Shrine.determine_mime_type(io)
Shrine.extract_dimensions(io)
Shrine.calculat...
The validation_helpers plugin docs isn't the place for describing how
validation works, this is ...
validate_max_dimensions [5000, 5000]
validate_min_dimensions [100, 100]
# OR
validate_...
4dc04018200f438e69565947b32b07bedff5a537 authored over 5 years ago by Janko Marohnić <[email protected]>
This way the user knows what exists and doesn't have to guess by the
name of the validation method.
1b651ff1ba56f6b50f9ed7b3e065949b566b7b30 authored over 5 years ago by Janko Marohnić <[email protected]>
larger/smaller is about physical size, while greater/less is about
values, which is what we have...
If users want to provide both upper and lower constraints for a metadata
value, they can now do ...
63b07d206881f3e2853d299a2368f19006f2c353 authored over 5 years ago by Janko Marohnić <[email protected]>
In RDocs we want to be speaking in a precise low-level language, so that
there is no misinterpre...
In the vast majority of cases the user will only use a whitelist, so we
add shorthands for these...
Parentheses split the message into two parts, and it's not needed, we
can say everything at once...
It's not needed anymore now that upload_endpoint handles the default
`files[]` array.
a30c030575dabcac4405a50bc438f37dbb18d5db authored over 5 years ago by Janko Marohnić <[email protected]>
8c55368952f36c5b7314c837ac77d84ca7bf381b authored over 5 years ago by Janko Marohnić <[email protected]>
This is required on web servers other than Falcon.
00e7612948954aa4926d2675e404217a5c7733f5 authored over 5 years ago by Janko Marohnić <[email protected]>
According to article [1], the README is trying to be a "tutorial" type
of documentation. However...
Accidentally copy pasted this without noticing the mistake and ran into configuration issues.
5b644fb2366260ef489784d2d6500bd124d809e9 authored over 5 years ago by Jean Jacques Warmerdam <[email protected]>Fixes #388
62f4a7cfe34d76cd42cb9e116f58b95a711b8990 authored over 5 years ago by Janko Marohnić <[email protected]>6fdb567288994b591c82bce4e774fc5df58e4b4b authored over 5 years ago by Janko Marohnić <[email protected]>
fce3e1af49dbe397d9dffa196a1acbec9fa388be authored over 5 years ago by Janko Marohnić <[email protected]>
a2b36e232e315c9288a741574ce32c229dfdc509 authored over 5 years ago by Janko Marohnić <[email protected]>
* better linkage
* more Rails examples
This is needed when using :content_disposition presign option for PUT
presigns.
Now we can write
uploader = Shrine.new(:cache)
uploader.upload(file)
as
Shrine.upload(f...
2676f075092f825c4d64cc0a3f94f1d9da1951ac authored over 5 years ago by Janko Marohnić <[email protected]>