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
We want to allow users to convert custom HTTP exceptions into validation
errors in their downloa...
We removed them when we wanted to simplify everything, but they're
actually useful, as they help...
4a6b976b11c6633ed388a69d920666f1f36f3a93 authored over 5 years ago by Janko Marohnić <[email protected]>
099cd4763608e7b26203ea48a1034d5dbc8085f7 authored over 5 years ago by Janko Marohnić <[email protected]>
44e7c172bf554f69be18daa6992dfc63f3d7d931 authored over 5 years ago by Janko Marohnić <[email protected]>
fe032dbb28d3be814ae35a2a1752a024d512af87 authored over 5 years ago by Janko Marohnić <[email protected]>
77ef3071048b9a992ca6faf67c514ae3c2fe41b9 authored over 5 years ago by Janko Marohnić <[email protected]>
This adds the API for calling the mirror upload/delete block:
file = Shrine.upload(io, :store...
e5570f535efae3f31aa80adc5496408396045a50 authored over 5 years ago by Janko Marohnić <[email protected]>
With the recent backgrounding change, it's not possible anymore to use
attacher_options plugin t...
Previously Attacher#promote and Attacher#destroy would be synchronous or
asynchronous depending ...
53bfe64f8d9c6b4f2d385a7f5a545b9ff73e62c9 authored over 5 years ago by Janko Marohnić <[email protected]>
18165f06816d8460cd7ee6af19e4304d73cbdef3 authored over 5 years ago by Janko Marohnić <[email protected]>
3db50e0ab60321e968eb67f74145e88b801efcb6 authored over 5 years ago by Janko Marohnić <[email protected]>
This allows Rails uses who use an authentication framework that doesn't
support route-level auth...
In Active Record 6.0 this setting doesn't exist anymore, in 5.x it
defaults to true, and AFAIK i...
The discussion forum has moved from Google Groups to Discourse. The
reason is nicer UI and relia...
* Improve the derivatives guide
* Update derivatives documentation based on feedback
* Cla...
a8792f317a91a1e6bc98b4ac58d98ff03065a26e authored over 5 years ago by Hiren Mistry <[email protected]>a61e44c518eccdd4669acddd9b00e44ba3a9e07b authored over 5 years ago by h0jeZvgoxFepBQ2C <[email protected]>
That makes testing easier, as well as playing on the console. It also
eliminates an additional i...
51ad13ef8835e2f7bef5fd0709c1d03ca26903b9 authored over 5 years ago by Janko Marohnić <[email protected]>
2075630f3f5e14449995b1c091c16f93c0d16301 authored over 5 years ago by Janko Marohnić <[email protected]>
In ROM we don't have a way to determine whether an entity attribute will
return a Hash or not. S...
This simplifies Attacher's #inspect output, and our code as well.
c8624a9677f804569d7d3c02a5a33bff95ecf58e authored over 5 years ago by Janko Marohnić <[email protected]>
The Shrine::Attacher rewrite broke support for JSON columns in
activerecord plugin. JSON column ...
The mirroring plugin adds the ability to replicate uploads and deletes
to other storages. This ...
56b627f651883cf7769192da19ba4d9a59baa744 authored over 5 years ago by Janko Marohnić <[email protected]>
JRuby has some obscure error on Travis that I don't have time to fix
right now, so we'll allow t...
3de94b705c0887195b2313e47ca60e26e638d9e5 authored over 5 years ago by Janko Marohnić <[email protected]>
d568930cc2db24ca133cadb2e9d399ffbd003bc8 authored over 5 years ago by Hiren Mistry <[email protected]>
Closes #401
1a771d3275af5333a625051567f72f85c69bc508 authored over 5 years ago by Janko Marohnić <[email protected]>
* add back lost comments
* use fastimage for image extraction
* remove derivatives eversions com...
82283c91f3ead034b783cc9d00c7a2ff1d6df713 authored over 5 years ago by Hiren Mistry <[email protected]>
The `type: :entity` approach isn't very clean, because it implies that
we have multiple types, w...
We explain both Shrine::Attachment and Shrine::Attacher usage,
emphasizing that `#<name>_data` r...
What Active Record calls "callbacks", Sequel calls "hooks". We want to
respect Sequel's terminol...
07fb7fa35039b0398a3c6bfce6f9a85169589e9e authored over 5 years ago by Janko Marohnić <[email protected]>
If the user wants to use an UploadedFile object as the source file for
processing derivatives, I...
da5dc99d775f02dc5621c969931888507b1e784b authored over 5 years ago by Janko Marohnić <[email protected]>
When we're using backgrounding, we pass current attached file data to
the background job, so tha...
The .<name>_attacher class method returns the Attacher instance without
the model/entity instanc...
ba2f38dcf0fec3f4cc4cf37ada8c102c8b9aabed authored over 5 years ago by Janko Marohnić <[email protected]>
3807366ccf56aaf1b7c42337df1a2241e381f761 authored over 5 years ago by Janko Marohnić <[email protected]>
The :name and :args values in the payload were redundant, it's enough to
send only :derivation.
...
872417c87f70ea3e04067bdc0e6b8376a84a956d authored over 5 years ago by Janko Marohnić <[email protected]>
Currently the dynamic storage block accepts record & name arguments. I
think this is limiting an...
66b8082ee082d3ec0b79f05735de068208e85e48 authored over 5 years ago by Janko Marohnić <[email protected]>
7a339322c4e8ddedf6805919f2264e691249f630 authored over 5 years ago by Janko Marohnić <[email protected]>
For each of the Attacher#persist, Attacher#atomic_persist and
Attacher#atomic_promote methods, w...
7f194282bc6cc1e562a6a6f5c115b3b5d36aa8c9 authored over 5 years ago by Janko Marohnić <[email protected]>
4333b18ce37258163fd81e3a2d501285877050d2 authored over 5 years ago by Janko Marohnić <[email protected]>
4b2ae0c638f70e762fe698c139959db64f68cc86 authored over 5 years ago by Miral Achmed <[email protected]>
When users are generating derivatives in their controller, this will be
the most common way:
...
5fa08d9d6b134e4ad19164f094976f59b899c33f authored over 5 years ago by Janko Marohnić <[email protected]>136ffbe26b2768adc8a00b38d7d467456f57c976 authored over 5 years ago by Janko Marohnić <[email protected]>
The same can already be achieved with Attacher#assign_options from the
attacher_options plugin:
...
This removes some boilerplate around plugins defining methods only for
models. Now plugins can d...
To generate derivatives in the controller, the user currently needs to
call Attacher#create_deri...
I think it will be much more common for people to want to pass arguments
to the processor than t...
6b43d81f36510864032aaac170ca3f8684bed0a5 authored over 5 years ago by Janko Marohnić <[email protected]>
3fadfc23d9aed4ec39114f4aca54ece663d3cd34 authored over 5 years ago by Janko Marohnić <[email protected]>
The user will likely want to find out very soon if they can configure
derivatives to be uploaded...
3be9960a68145175bb513152437483a141b0033d authored over 5 years ago by Janko Marohnić <[email protected]>
c145ddc6174aadc3358f7b19fae974db3d6ccb31 authored over 5 years ago by Janko Marohnić <[email protected]>
c3fb5141902a2679058a9d42b28cb2274bb4a4e7 authored over 5 years ago by Janko Marohnić <[email protected]>
817edff96359bc7e1b591d274296340ad53fac66 authored over 5 years ago by Janko Marohnić <[email protected]>
This is useful when you want to assign attachment from form params but
don't want to create a fo...
5c4bae3ceb8aae50e6502588269a145629630275 authored over 5 years ago by Janko Marohnić <[email protected]>
adde26844f06fc64a551ea2249987fd5fcded580 authored over 5 years ago by Janko Marohnić <[email protected]>
d2dcc584ac5f174bbf6dc3f15fe8a12d2a0e2958 authored over 5 years ago by Janko Marohnić <[email protected]>
The method hierarchy is now as follows:
* Attacher#create_derivatives
* Attacher#process_deri...
There is no need to use strings, it was just for remembering that they
will be integers in the d...
We're deleting uploaded files in multiple places (derivatives,
derivation_endpoint), so we add t...
dbbdee5bef26e14fdf1b3f4c6fd5b0546b82e0b3 authored over 5 years ago by Janko Marohnić <[email protected]>
We want to return object's content length in S3#open, so that
UploadedFile#size can retrieve it ...
Now that Storage#open is required to raise Shrine::FileNotFound if file
is not found, we don't n...
When :upload is set but no :upload_redirect, we're always first checking
whether the derivation ...
Now that derivation block is evaluated in context of a
Shrine::Derivation instance, the source U...
It's not needed anymore now that derivation blocks are evaluated in
context of a Shrine::Derivat...
It is not useful at all to evaluate it in context of an uploader
instance, because this doesn't ...
Now that storages should raise Shrine::FileNotFound when file was not
found, we don't need the :...
In download_endpoint and derivation_endpoint it would be really useful
to know when Storage#open...
I've wanted to use it in migration scripts where I have access to the
attacher instance. It was ...
I've wanted the :metadata information on the top level for the
upload.shrine event. In addition ...
It recently added support for Shrine.
15c08631f36c454da530fbeef8f2359fb993aa11 authored over 5 years ago by Janko Marohnić <[email protected]>Any /:storage/:id file URLs will now return a 404.
29e7310051e2354f1ce6879de96e532db2a4f454 authored over 5 years ago by Janko Marohnić <[email protected]>e63b7c3b4f90406d0f7fb7a9b783ba8e31158902 authored over 5 years ago by Janko Marohnić <[email protected]>
Instead of Attacher#add_derivatives and Attacher#upload_derivatives
optionally accepting a proce...
Because derivatives plugin requires explicit triggering of processing,
we don't need to use two ...
The :derivative option will only be available for derivative uploads,
otherwise that option won'...
e1db7c44586adc216a550fde2a8622995b8d2851 authored over 5 years ago by Janko Marohnić <[email protected]>
6c9d46c3df8a9347fa8eb356deb5fed72c532359 authored over 5 years ago by Janko Marohnić <[email protected]>
When Shrine::Attachment module is used on a model/entity,
Attacher.retrieve would fail with Shri...
Currently UploadedFile#== allows the uploader class of the file on the
right hand side to be a s...
cc0b0e8be398de1fc00b8f37af83f35926a77429 authored over 5 years ago by Janko Marohnić <[email protected]>
We add the missing Attacher#merge_derivatives layer between
Attacher#add_derivatives and Attache...
9f6a91b3304a858150f5c4eb53d360e4259b7f46 authored over 5 years ago by Janko Marohnić <[email protected]>
0518b23302291f10791214c9a72a29cde9132a13 authored over 5 years ago by Janko Marohnić <[email protected]>
There could be use cases where the user still wants to use the raw
file after it has been upload...
ea2df8d0b32effb19610f16b7306d0096fa2b928 authored over 5 years ago by Janko Marohnić <[email protected]>
This doesn't get us to 100% yet, but the rest is not so important.
ee405cbaac368778b55f80f8c7884465ef578fef authored over 5 years ago by Janko Marohnić <[email protected]>4f7850e69652d4c08cdbc5ed654861bd04dbc902 authored over 5 years ago by Janko Marohnić <[email protected]>