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
There are a lot of options which are common for uploading and
presigning, and if an option is no...
In the S3 documentation it states that copying files larger than 5GB
requires `:multipart_copy` ...
Fixes #22
d67e2417266a468f2ce8e6b045407ba34bb87274 authored about 9 years ago by Janko Marohnić <[email protected]>
We can just use `SecureRandom.hex`, which generates a random
alphanumeric with double the length...
Pretty location generates shorter file IDs
7b4c6243e978149cd36b982a55377ee17fc580d0 authored about 9 years ago by Janko Marohnić <[email protected]>9965abd46efb50e5e60928e55865eb1656742e00 authored about 9 years ago by Janko Marohnić <[email protected]>
Generate a 10 character alpha numeric string for cleaner file URLs.
9743d94b17fb3f9cfa0d67ff43eaae97c9c27e66 authored about 9 years ago by Gerry Shaw <[email protected]>fbad7f266143a703ce7df3dd0a42fc4ff4d46e4c authored about 9 years ago by Janko Marohnić <[email protected]>
We got a bit paranoid with Pathname#join not working well with absolute
IDs, but we don't want t...
64cd0e6d3f9d91a1cf2038b009fc1ae27d8c8b54 authored about 9 years ago by Janko Marohnić <[email protected]>
When using the pretty_location plugin (or overriding
`Shrine#generate_location`), the IDs will a...
This changes reduces the possibility of some plugins being incompatible
with each other. We basi...
f163a3f8d4dcff2eff1aa89a5e7fc4c016535b25 authored about 9 years ago by Janko Marohnić <[email protected]>
To support this in base functionality complicates the conditionals when
trying to implement the ...
399adcecad64c66ca4ffb1b1619777ff8551e761 authored about 9 years ago by David Rodríguez <[email protected]>
ff50df40c2bfcb9c4aa970569af3bca205a326ec authored about 9 years ago by David Rodríguez <[email protected]>
8c7034fbe40723105998265157be74271b1af7ce authored about 9 years ago by Janko Marohnić <[email protected]>
c490aafd7b30fc01fca53e9ad747fb650a5d6648 authored about 9 years ago by David Rodríguez <[email protected]>
They won't work for PRs because Travis doesn't expose the ENV
credentials because of security re...
ActiveRecord versions 3.x and 4.x automatically silence errors in
callbacks, which makes debuggi...
09665d0a1c57916a2a1371a8cb725c67a856edf7 authored about 9 years ago by Janko Marohnić <[email protected]>
This is useful mostly for the around_upload hook, if the user wishes to
wrap the whole upload pr...
The bang methods example were for reducing copying, but it actually
doesn't work as it simply mo...
Fixes #15
c8f9257c57f519a8c915b4d6e9317a3c39346fb5 authored about 9 years ago by Janko Marohnić <[email protected]>3ab14cb1ad71e1254b025bf4ae721c3fed52a16f authored about 9 years ago by Janko Marohnić <[email protected]>
a43b009602edb8ad05689ed706fdfd3ab5cc0dd5 authored about 9 years ago by David Rodríguez <[email protected]>
ff191d5d53395edc505400caa9e998b2517923c6 authored about 9 years ago by Janko Marohnić <[email protected]>
Currently this hasn't worked with some plugins like versions. While we
can work around it by cal...
Get test suite working on Travis CI
c18956c921be8e8ee036e83a2b88dc8422bb6a5a authored about 9 years ago by Janko Marohnić <[email protected]>
1. We specify latest Ruby versions because for example for
"jruby-9.0.0.0" Travis chose jruby...
47484f9d9c7833b0bed228f8c0d887b7d33757de authored about 9 years ago by Janko Marohnić <[email protected]>
We also make sure we use aws-sdk version 2.1, because 2.2 throws
deprecation warnings, which we ...
For some reason I was getting an error about this before, but probably
because I was using a Sec...
1. On MRI `exit` effectively stops the require and continues on, but on
JRuby and Rubinius it...
This can be in a separate guide, but I don't know to be recommending any
particular JS implement...
Often users will want to configure presign options, in the direct_upload
endpoint as well. One n...
e307b24effc3298a3c5ead0efbd96b5af8e044af authored about 9 years ago by Janko Marohnić <[email protected]>
2a60064b9b61286e897267371917ed5a02d9b38a authored about 9 years ago by Janko Marohnić <[email protected]>
d3b216a9d8a9cfd85989a401b984c7ed404011a1 authored about 9 years ago by Janko Marohnić <[email protected]>
That method was only actually added for internal use, and I cannot
imagine it being useful for p...
This method is redundant, and requires more code in the base
functionality as well as other plug...
Since we're logging the word "PROCESS", it makes much more sense to say
how many files we are PR...
Although it doesn't increase the amount of lines for the base
functionality, it does increase co...
8eac431a231edbd9ec9d422cf20e1f401c7cfc36 authored about 9 years ago by Janko Marohnić <[email protected]>
0656864575b0987a33faf9b993db5909c9151f21 authored about 9 years ago by Janko Marohnić <[email protected]>
3456844828cbe21aa049cff3fb5f2e5ee478c79a authored about 9 years ago by Janko Marohnić <[email protected]>
Limiting the maximum file size should ultimately be set on the frontend
server (nginx, apache). ...
The Down gem had two bugs prior to this version. First one was that it
wasn't working with the p...
2dec6bcd88dd29e8a06ce5a0fb730874a26f48d1 authored about 9 years ago by Janko Marohnić <[email protected]>
f5f437ef4126e7396453f28928a987f8c407e28e authored about 9 years ago by Janko Marohnić <[email protected]>
Sequel has a "pg_json" plugin, which serializes and deserializes a
Postgres JSON column into a h...
2b7ed0e6aabd378a05346c13e8bf339922fc2da1 authored about 9 years ago by Janko Marohnić <[email protected]>
The migration_helpers plugin didn't properly detect that the file has
changed while executing a ...
e35d8bc8008b0ef9570baffbfbfb5068e14d4cbb authored about 9 years ago by Janko Marohnić <[email protected]>
The problem with this plugin is that, if the user resubmits an invalid
file, they will get an er...
There are couple of problems with deleting cached files. Firstly, when
using backgrounding it ca...
8087ffd99d177fa21d525aa30fc65fd3d20f4391 authored about 9 years ago by Janko Marohnić <[email protected]>
`Aws::S3::Client` accepts an `:endpoint` option, but unfortunately it
doesn't generate a correct...
Previously loading the recache plugin would cause an infinite loop while
saving the record, beca...
fb6bcf9228cfae261d5eb26267f0fb436dfec792 authored about 9 years ago by Janko Marohnić <[email protected]>
696fed3724ba745a1ee34aff32947108218912c5 authored about 9 years ago by Janko Marohnić <[email protected]>
Tempfiles from ImageProcessing previously weren't uploadable to S3 due
to some obscure error, so...
18c96d9565218c914e98d907c585d157c5199c5e authored about 9 years ago by Janko Marohnić <[email protected]>
73ea7a0936dd1ab615508cecc41a1e2eea8c64fd authored about 9 years ago by Janko Marohnić <[email protected]>
5b427850040aba71867e7d610a1fabf8c1a474d2 authored about 9 years ago by Janko Marohnić <[email protected]>
Fixes #6
41ddcaea68897900a41b4fea0fd9eb8303522620 authored about 9 years ago by Janko Marohnić <[email protected]>Fix typo
3e4c938f00d9ad59c0cb61258bc779bf15e3de37 authored about 9 years ago by Janko Marohnić <[email protected]>6729501f00466fcffd645fbe9a9fd8964690367f authored about 9 years ago by alpaca-tc <[email protected]>
10a68829abb87f567eb057501319a19f7b074c3a authored about 9 years ago by alpaca-tc <[email protected]>
When we send binary file contents like that, Ruby will assume it's
UTF-8, so we need to tell the...
Fix typo in Paperclip user guide
b5c182f484aad956add79fb5a97630c71dcee7d3 authored about 9 years ago by Janko Marohnić <[email protected]>5fbd72f10c876a9b7768fc3066b9ee410b5be30b authored about 9 years ago by Alex Coles <[email protected]>
60891dd6a9aa4d674ed548096ad1109f5641ef0a authored about 9 years ago by Janko Marohnić <[email protected]>
027706cc3037b41711661721b612bbd88a146197 authored about 9 years ago by Janko Marohnić <[email protected]>
We want to make the uploader resilient to changes, and if in some
situations it happens that an ...
Users will probably often be looking at this output, and currently it's
showing a lot of redunda...
I actually don't know if this is the right number, I saw that it's used
in CarrierWave and it ob...
File utility can also accept the file contents on standard input. The
reason why I didn't add it...
We currently assumed that if record exists, it will respond to #id.
That's always the case with ...
432601f08fe98e4f9fc16506667d9345a2fcba0c authored about 9 years ago by Janko Marohnić <[email protected]>
14b7c264bb3f5d6148e6a234f0fa38bcc4d35cfd authored about 9 years ago by Janko Marohnić <[email protected]>
ebc7eda10f4dfb0cde0a66ec537f10b136314069 authored about 9 years ago by Matija Marohnić <[email protected]>
2fc155730a4c345554163c92caaf81dfbb039c5b authored about 9 years ago by Matija Marohnić <[email protected]>
614a9c1c3615a3dd801f565bb09cf7603a1319b3 authored about 9 years ago by Janko Marohnić <[email protected]>
dbbdcfc4da4325808ab562777f241a14a325c1ab authored about 9 years ago by Janko Marohnić <[email protected]>
642994d2ab2faf905a2f9e512ab6d4ccf5912144 authored about 9 years ago by Janko Marohnić <[email protected]>
638a336c1e286698383fa947e82c395af40126e7 authored about 9 years ago by Janko Marohnić <[email protected]>
316ebdaf0c2dd07a40b8625e9ce2277e6b759507 authored about 9 years ago by Janko Marohnić <[email protected]>
9aa04531f9d6c47e4d202e9e6f16f5aef59e19d8 authored about 9 years ago by Janko Marohnić <[email protected]>
5965f8c749799c004dfaf1fa71fcbf744fd9c525 authored about 9 years ago by Janko Marohnić <[email protected]>
cfbfc6f5b307f29ac635fbc701b87824d537d201 authored about 9 years ago by Janko Marohnić <[email protected]>
7c67e757d356c77b0d51699dd201245b691772cf authored about 9 years ago by Janko Marohnić <[email protected]>
0dea8357822cf2e2a1518707077efa61264227fd authored about 9 years ago by Janko Marohnić <[email protected]>
2c0ff2a19847179dd0449df7c70e50e3f54f6b0a authored about 9 years ago by Janko Marohnić <[email protected]>
601e804be823e5e56454969526965754b369596e authored about 9 years ago by Janko Marohnić <[email protected]>
1677ff6ed35087f3ea6de1b04daeca8c031a58e5 authored about 9 years ago by Janko Marohnić <[email protected]>
89b8edf9836d66560e5661b564db670d36dc6863 authored about 9 years ago by Janko Marohnić <[email protected]>
3624166de35d8eacbeddfaa4ae6ce8c5a8e79467 authored about 9 years ago by Janko Marohnić <[email protected]>
93e405e33bfc8906f7c6433368d9b7fa4c912be1 authored about 9 years ago by Janko Marohnić <[email protected]>
5a6b7626bf77886d56d967ad00e533381cb39504 authored about 9 years ago by Matija Marohnić <[email protected]>