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
d045c351c050833ba42cde3f7e91eec157cb9112 authored about 5 years ago by Janko Marohnić <[email protected]>
5c1741d71780552264b51323872dfbd6a3ae3943 authored about 5 years ago by Janko Marohnić <[email protected]>
Sometimes people might want to calculate signature from a non-rewindable
IO object (for example ...
53989e4aa23392f8c7044c6486d090561cfbe0f4 authored about 5 years ago by Janko Marohnić <[email protected]>
6ec15fc1535e087c74eba83e8c384d2424b0717f authored about 5 years ago by Janko Marohnić <[email protected]>
I noticed a peformance degradation in rendering documents when we
switched to the highlights lib...
1b9369bbb6279373d353230c344e533b65babe2a authored about 5 years ago by Janko Marohnić <[email protected]>
Lint/ShadowingOuterLocalVariable is a rubocop lint error
https://www.rubydoc.info/gems/ruboco...
20a3f4ca03bc55ad90dccf0e443b83ea39da1d7c authored about 5 years ago by Tobias L. Maier <[email protected]>Now we can shorten
Attacher.derivatives_processor do |original|
# ...
end
to just
A...
44a3d7e03a0be56bf2fe3ca56a4145f147c9b4c5 authored about 5 years ago by Janko Marohnić <[email protected]>
It seems it's not obvious from the existing example, and it would cause
errors if :original was ...
Shrine::Storage::Memory is now built-in, so we recommend using that for
examples as it's much ea...
afc896fc18757413d15cbee74c4c74e96360932d authored about 5 years ago by Janko Marohnić <[email protected]>
a131dca9f48ea8962081711b1b6534c2535f1744 authored about 5 years ago by Janko Marohnić <[email protected]>
Docusaurus isn't properly handling "&" in titles, so we split "Metadata
& Validation" into two s...
0f61cc9d53d50330dfc9ab3d0ba3b9d113ce1361 authored about 5 years ago by Janko Marohnić <[email protected]>
Highlight.js sometimes doesn't tokenize ruby code correctly (e.g. it
doesn't detect constants). ...
Closes #422
668431b6330a7bdd37a3b27e63743f4706cbbefa authored about 5 years ago by Janko Marohnić <[email protected]>5717019f3f439c22908f4e4afc2b88edd5264b0d authored about 5 years ago by Janko Marohnić <[email protected]>
6c5ce28dabc75910190796b656bdd302b0b6cdd9 authored about 5 years ago by Janko Marohnić <[email protected]>
I've tried to handle this scenario, but with incorrect code. Since I
forgot to add tests for it,...
Since Shrine::UploadedFile is a value object, it doesn't really make
sense for its #inspect outp...
Concerns #420
7ea0e70122e0c8637366f13350fd46acfc2fc802 authored about 5 years ago by Janko Marohnić <[email protected]>
Usually people would get inspected JSON data with double quotes escaped,
which is not so readabl...
69c1eb904ac612f0621b0793d3817cd8a503c51d authored about 5 years ago by Janko Marohnić <[email protected]>
f4720575e8d73342056ec293bbc3ea094e6b0a8b authored about 5 years ago by Janko Marohnić <[email protected]>
abef5e3ff56df3abc6c031689c4cad8023905a95 authored about 5 years ago by Janko Marohnić <[email protected]>
Some people think that CHANGELOG.md is the only source of truth for what
has changed, when in fa...
43b8188df1b8d8d1030303f8e9cf685c89d8070a authored about 5 years ago by Janko Marohnić <[email protected]>
It's good to have some code in the README, so we duplicate the "Quick
Start" section from the "G...
f4419a5fe9277898bd726d94db0ab929de0d7b6a authored about 5 years ago by Janko Marohnić <[email protected]>
37c75a0b84861ffbcd3635cff4d607a43f64ede6 authored about 5 years ago by Janko Marohnić <[email protected]>
dc52f91affc5020d0ee1b98292a48e9f0519fbeb authored about 5 years ago by Janko Marohnić <[email protected]>
e808b69cbc9d3ec79d4347e41fe04c5a02fe0174 authored about 5 years ago by Janko Marohnić <[email protected]>
08b008bc6e417ca2020520bb697b4eff6be28aa2 authored about 5 years ago by Janko Marohnić <[email protected]>
ff5feb85b2ec1c32824a294c502d58377258e131 authored about 5 years ago by Janko Marohnić <[email protected]>
It's more useful to have the check already done before attacher callback
methods are called, as ...
This wasn't the case prior to moving `action: :cache` parameter from
Attacher#promote_cached to ...
The old Jekyll version of the website was just a list of links, and over time we outgrew that.
...
Taken from https://github.com/shrinerb/shrine/commit/cea01426d01fb375e74392f78ec3e664514f3966
27cee32fa0a06c319ccf7eec85d0941cb9b59562 authored about 5 years ago by Anton Rieder <[email protected]>
This was removed previously because it was difficult to support with
existing logic. But now tha...
That way the uploader knows where the upload is coming from, allowing
further customization. For...
This allows passing options to destroy block. This is consistent with
Attacher#promote_background.
We don't want to be coupling regular promotion with background
promotion. People will almost cer...
If this is done on the Attacher#promote_cached level, then it won't be
passed with backgrounding...
46546d97bc35e3b86230a53e9924f2942817fc57 authored about 5 years ago by Janko Marohnić <[email protected]>
ba4ec35b586b590d7e9b519f2aab22e1b054a22d authored about 5 years ago by Janko Marohnić <[email protected]>
463d3f688d1f52726872892cb0a267e9ae0280b6 authored over 5 years ago by Janko Marohnić <[email protected]>
a7ba2db0f7f73b13339f08ddf7f93b176228014f authored over 5 years ago by Janko Marohnić <[email protected]>
ROM and Hanami::Model don't classify themselves as an ORM, and Mongoid
classifies itself as an *...
Previously we limited column serialization only to strings, which could
be limiting if some pers...
This makes usage with ROM easier. When we're creating a new record,
we want to avoid duplicating...
44c87764d86d9aa2f295bca17f3ee39b2fa85a8a authored over 5 years ago by Janko Marohnić <[email protected]>
0c2b66791f480e7f5793ffee968f9a5c71be021b authored over 5 years ago by Janko Marohnić <[email protected]>
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
6952eaa5b8f12cb0c46fd0c85b72a38ae4f8f475 authored over 5 years ago by Anton Rieder <[email protected]>
This was original part of https://github.com/shrinerb/shrine/pull/413,
but I've removed it becau...
b3283c008a80c3f26527f5b20a58018a87a5b990 authored over 5 years ago by Janko Marohnić <[email protected]>
This adds one more way of creating an attachment module:
class Photo
include Shrine::Atta...
e0221c2f9fff817e953122e1e4339585edab6aad authored over 5 years ago by Janko Marohnić <[email protected]>
d108946eac69918887fe4ed43b35f469bb84bd98 authored over 5 years ago by Janko Marohnić <[email protected]>
90a7a0292e9c0a2a6bcbc8e133f77426f4f33132 authored over 5 years ago by Janko Marohnić <[email protected]>
ddf82f30d9563644c0054c61bf44fa66dbdfa5b0 authored over 5 years ago by Janko Marohnić <[email protected]>
d1018234e6491358ec3322053ecb57eebbae12d7 authored over 5 years ago by Janko Marohnić <[email protected]>
75ef19e9bdb9d7c0133cb52ce246055bf45e453c authored over 5 years ago by Janko Marohnić <[email protected]>
9a77ebfbf0195090f5ccf06aaadff1e77c00d506 authored over 5 years ago by Janko Marohnić <[email protected]>
49c7955f6f86f14647537fdf13202ec6e4ff32aa authored over 5 years ago by Janko Marohnić <[email protected]>
The Storage#delete_prefixed method, taken from Active Storage, deletes all files in specified di...
becdea5e18bb981de5deac99fdaf0b8e96c77f0b authored over 5 years ago by Jonathan Rochkind <[email protected]>
Active Job 6.0 cannot yet serialize class/module names. I've seen that
functionality on Rails ma...
4d83c2606bf7ae92d975426eaa1c74b64dd0c9c6 authored over 5 years ago by Janko Marohnić <[email protected]>
8d92a9fc2ab6d742f1a022af2dc65fb11dbb0408 authored over 5 years ago by Jonathan Rochkind <[email protected]>
5d4cb4bbf201a1145a9bc2c03278d082d26766ab authored over 5 years ago by Janko Marohnić <[email protected]>
The string "nonexisting" is not a valid file ID for each storage, so we
allow storages to pass t...
998928fed4e0c595d6a6d2bbb7bdcb9d07a1a526 authored over 5 years ago by Janko Marohnić <[email protected]>
This allows users to affect the file extension by passing `filename`
metadata:
file = uploade...
ccd4ff64815334c1a99e43275c9a51ce38c4c219 authored over 5 years ago by Janko Marohnić <[email protected]>46880a57ffec6ce676fcf1ce7e6502bc89c0d934 authored over 5 years ago by Jonathan Rochkind <[email protected]>
0fd9b32a4f6b744b9ce15f1ad46a0a38b83a47aa authored over 5 years ago by Uysim <[email protected]>
Down 5.0 introduced nice performance improvements and better exceptions.
2b7fad37dbaa955a7d3b82e9e05eaacb3506b4ba authored over 5 years ago by Janko Marohnić <[email protected]>c1c62d13472ef6fb52b34458978d6d74d2b4a7e1 authored over 5 years ago by Janko Marohnić <[email protected]>
8f0fa55a0a8e18274e174008c76a467769de8470 authored over 5 years ago by Janko Marohnić <[email protected]>
565be5a67d6c43d1aaf2a78295f78465129103a2 authored over 5 years ago by Janko Marohnić <[email protected]>
b1871f7a8cab544bb74c4c0947d6844db53bb9a7 authored over 5 years ago by Janko Marohnić <[email protected]>
584553cb8ca99c007114b975fabb6925a9ea1e15 authored over 5 years ago by Janko Marohnić <[email protected]>
bf31a237f1c80461e00a214eb4746b46ce86a769 authored over 5 years ago by Janko Marohnić <[email protected]>
dd6a5745c703988e0d0a8523e59891d2ee9a2f6f authored over 5 years ago by Janko Marohnić <[email protected]>
4eeda0e2e04e64a26fe4a2f01d1cfc505ff75207 authored over 5 years ago by Janko Marohnić <[email protected]>
e21faacb4ff75f828c0621d9f61dcb7f78681eff authored over 5 years ago by Janko Marohnić <[email protected]>
0a7f8235616c0a2c499d294841787389444a208b authored over 5 years ago by Janko Marohnić <[email protected]>
e1abe20c9d7e25c3b68a801bee3adc13a604e539 authored over 5 years ago by Janko Marohnić <[email protected]>
979203fecf79b7a7b70db2a2adee5341e956270e authored over 5 years ago by Janko Marohnić <[email protected]>
30c092c731746cfd4a1839f996cc457d4b4059af authored over 5 years ago by Janko Marohnić <[email protected]>
The multi_cache plugin allows an attacher to accept files from
additional temporary storages.
...
6c21d92f3512a1de9d393bc63f904b1efbd2cad5 authored over 5 years ago by Janko Marohnić <[email protected]>b84ba65ba7b48b06402a48a428bd273fa7cf0917 authored over 5 years ago by Janko Marohnić <[email protected]>
This was possible in Shrine 2.x when Aws::S3::Object#upload_file was
used, as in this case the c...
11a105a3b8243f354a4e0d19f858df8ce295d2d9 authored over 5 years ago by Janko Marohnić <[email protected]>
It makes the code a little easier to read. It also makes it possible for
users to override Shrin...
* recommend passing attacher class to backgrounding
* update Active Job's automatic record seria...
We do the same kind of massaging of derivatives as we do for derivation
results in derivation_en...
9b30f94202e5af4d4d2b8c3544cf92076cf21c95 authored over 5 years ago by Janko Marohnić <[email protected]>
It adds unnecessary complication to accept paths as well. So we limit it
to opened file objects....
5f4a1ea7ba1f81515593518a9ef8a52cec2b044d authored over 5 years ago by Janko Marohnić <[email protected]>
In the most common case the user will have one derivatives processor for
a given uploader:
cl...
6c717b50563b32d20c34e7747cff4f143812eac2 authored over 5 years ago by Janko Marohnić <[email protected]>