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

Forward `:upload_options` to presign on S3 storage

There are a lot of options which are common for uploading and
presigning, and if an option is no...

40faf52ae0a94b237f94865a0939b0b87f324f48 authored about 9 years ago by Janko Marohnić <[email protected]>
Do a multipart S3 copy if file is larger than 5GB

In the S3 documentation it states that copying files larger than 5GB
requires `:multipart_copy` ...

ff5e2b2d1946ed83956060b5c0185771f6d64d6c authored about 9 years ago by Janko Marohnić <[email protected]>
Add `:upload_options` to S3 storage

Fixes #22

d67e2417266a468f2ce8e6b045407ba34bb87274 authored about 9 years ago by Janko Marohnić <[email protected]>
Fixes to the previous commit

We can just use `SecureRandom.hex`, which generates a random
alphanumeric with double the length...

7d25da88c2062f1fbdc734800b961aab0bc15da2 authored about 9 years ago by Janko Marohnić <[email protected]>
Merge pull request #21 from gshaw/short-pretty-locations

Pretty location generates shorter file IDs

7b4c6243e978149cd36b982a55377ee17fc580d0 authored about 9 years ago by Janko Marohnić <[email protected]>
Update release date in CHANGELOG

9965abd46efb50e5e60928e55865eb1656742e00 authored about 9 years ago by Janko Marohnić <[email protected]>
Pretty location generates shorter file IDs

Generate a 10 character alpha numeric string for cleaner file URLs.

9743d94b17fb3f9cfa0d67ff43eaae97c9c27e66 authored about 9 years ago by Gerry Shaw <[email protected]>
Prepare for version 1.0.0

fbad7f266143a703ce7df3dd0a42fc4ff4d46e4c authored about 9 years ago by Janko Marohnić <[email protected]>
Remove FileSystem accepting IDs starting with "/"

We got a bit paranoid with Pathname#join not working well with absolute
IDs, but we don't want t...

f40d8a57687c54adcd0581a2b4f698ff27e8347d authored about 9 years ago by Janko Marohnić <[email protected]>
Improve versions documentation

64cd0e6d3f9d91a1cf2038b009fc1ae27d8c8b54 authored about 9 years ago by Janko Marohnić <[email protected]>
Improve Windows compatibility in FileSystem

When using the pretty_location plugin (or overriding
`Shrine#generate_location`), the IDs will a...

f9a034ad5717328c35c3d0d9f795f236711de3f5 authored about 9 years ago by Janko Marohnić <[email protected]>
Make plugins work better with each other

This changes reduces the possibility of some plugins being incompatible
with each other. We basi...

3eb3daf6dc76c782bd1d89f55211a5be11087376 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix keep_files plugin requiring context

f163a3f8d4dcff2eff1aa89a5e7fc4c016535b25 authored about 9 years ago by Janko Marohnić <[email protected]>
Extract parsed_json plugin

To support this in base functionality complicates the conditionals when
trying to implement the ...

78173d856816eaa838f3f9a75fade9a528cd88e8 authored about 9 years ago by Janko Marohnić <[email protected]>
Add test to prove that content is properly copied

399adcecad64c66ca4ffb1b1619777ff8551e761 authored about 9 years ago by David Rodríguez <[email protected]>
Add head versions to travis matrix

ff50df40c2bfcb9c4aa970569af3bca205a326ec authored about 9 years ago by David Rodríguez <[email protected]>
Use `bundle exec` on Travis after previous commit

8c7034fbe40723105998265157be74271b1af7ce authored about 9 years ago by Janko Marohnić <[email protected]>
Rake is a development dependency too

c490aafd7b30fc01fca53e9ad747fb650a5d6648 authored about 9 years ago by David Rodríguez <[email protected]>
Don't run S3 tests on Travis

They won't work for PRs because Travis doesn't expose the ENV
credentials because of security re...

b2363c67b15ba97196f6ebfb8e88b5c10322a744 authored about 9 years ago by Janko Marohnić <[email protected]>
Recommend enabling errors for AR callbacks

ActiveRecord versions 3.x and 4.x automatically silence errors in
callbacks, which makes debuggi...

9766bccf843aeecf8565226c999cbcf85f4b2b2a authored about 9 years ago by Janko Marohnić <[email protected]>
Link example Rails app on the website

09665d0a1c57916a2a1371a8cb725c67a856edf7 authored about 9 years ago by Janko Marohnić <[email protected]>
Add (before|around|after)_upload to hooks plugin

This is useful mostly for the around_upload hook, if the user wishes to
wrap the whole upload pr...

5520124dd5e70d974bf5cae1ff59403d7b45e0d1 authored about 9 years ago by Janko Marohnić <[email protected]>
Always use non-bang processing methods in docs

The bang methods example were for reducing copying, but it actually
doesn't work as it simply mo...

fe4f578931fa263a5207614a662f327825dc1bcc authored about 9 years ago by Janko Marohnić <[email protected]>
"process_to_limit" => "resize_to_limit"

Fixes #15

c8f9257c57f519a8c915b4d6e9317a3c39346fb5 authored about 9 years ago by Janko Marohnić <[email protected]>
Note in the README that attachment is a Module

3ab14cb1ad71e1254b025bf4ae721c3fed52a16f authored about 9 years ago by Janko Marohnić <[email protected]>
Documentation improvements

a43b009602edb8ad05689ed706fdfd3ab5cc0dd5 authored about 9 years ago by David Rodríguez <[email protected]>
Fix running S3 test with ENVs already set

ff191d5d53395edc505400caa9e998b2517923c6 authored about 9 years ago by Janko Marohnić <[email protected]>
Make Sequel's JSON support work with versions

Currently this hasn't worked with some plugins like versions. While we
can work around it by cal...

8b678d7b9444bcdd83ff78ea3434fab3594802df authored about 9 years ago by Janko Marohnić <[email protected]>
Merge pull request #11 from janko-m/travis

Get test suite working on Travis CI

c18956c921be8e8ee036e83a2b88dc8422bb6a5a authored about 9 years ago by Janko Marohnić <[email protected]>
Get the test suite working on Travis CI

1. We specify latest Ruby versions because for example for
"jruby-9.0.0.0" Travis chose jruby...

918e01582224b3c42c800d71580ab918f2106fb6 authored about 9 years ago by Janko Marohnić <[email protected]>
Note in the readme that we're supporting Rubinius

47484f9d9c7833b0bed228f8c0d887b7d33757de authored about 9 years ago by Janko Marohnić <[email protected]>
Fix S3#multi_delete and #clear! not using prefix

We also make sure we use aws-sdk version 2.1, because 2.2 throws
deprecation warnings, which we ...

3870d91d8327c51b006c72c19223fbafba7e92e2 authored about 9 years ago by Janko Marohnić <[email protected]>
SecureRandom.hex already returns a string

For some reason I was getting an error about this before, but probably
because I was using a Sec...

8c2ca9e1a356cbe2344dbf87941c2df9fc76b134 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix tests and make them work on all Ruby versions

1. On MRI `exit` effectively stops the require and continues on, but on
JRuby and Rubinius it...

bf75ba6f3836aca989ddc01039a6af3cdccced61 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove JavaScript example in direct_upload docs

This can be in a separate guide, but I don't know to be recommending any
particular JS implement...

e455e41cec3a977da45e990fbc4f2cb88c9a6ee1 authored about 9 years ago by Janko Marohnić <[email protected]>
Enable passing presign options in direct_upload

Often users will want to configure presign options, in the direct_upload
endpoint as well. One n...

3b1af85a2cf972b594a7bcfbab8c982686b54293 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove the `max_size` option from direct_upload

e307b24effc3298a3c5ead0efbd96b5af8e044af authored about 9 years ago by Janko Marohnić <[email protected]>
Add SimpleCov

2a60064b9b61286e897267371917ed5a02d9b38a authored about 9 years ago by Janko Marohnić <[email protected]>
Move module_include plugins to correct category

d3b216a9d8a9cfd85989a401b984c7ed404011a1 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove Shrine.io!

That method was only actually added for internal use, and I cannot
imagine it being useful for p...

874ce733106103f5b17fc23fdadbb4dc483f8851 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove Shrine.delete

This method is redundant, and requires more code in the base
functionality as well as other plug...

340c64515ed2a5533684bff5c1127f00977a005f authored about 9 years ago by Janko Marohnić <[email protected]>
Log number of input processed files, not output

Since we're logging the word "PROCESS", it makes much more sense to say
how many files we are PR...

2d3eef0d2d375697e68aca4fa828606b9ac92295 authored about 9 years ago by Janko Marohnić <[email protected]>
Move supporting JSON columns into sequel plugin

Although it doesn't increase the amount of lines for the base
functionality, it does increase co...

c91d5fbed9b5ea20f8a1b4378798e4a392fbe3d4 authored about 9 years ago by Janko Marohnić <[email protected]>
Add default_url_options plugin

8eac431a231edbd9ec9d422cf20e1f401c7cfc36 authored about 9 years ago by Janko Marohnić <[email protected]>
Add module_include plugin

0656864575b0987a33faf9b993db5909c9151f21 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove the delete_invalid plugin from website

3456844828cbe21aa049cff3fb5f2e5ee478c79a authored about 9 years ago by Janko Marohnić <[email protected]>
Don't require :max_size option in direct_upload

Limiting the maximum file size should ultimately be set on the frontend
server (nginx, apache). ...

e49660723cfc46e085be2a7d8874ca9beddb9b21 authored about 9 years ago by Janko Marohnić <[email protected]>
Bump the "down" dependency to ">= 1.0.3"

The Down gem had two bugs prior to this version. First one was that it
wasn't working with the p...

cb4532282ce32793c0ae1daf483383a73fe4e889 authored about 9 years ago by Janko Marohnić <[email protected]>
Tweak a changelog description

2dec6bcd88dd29e8a06ce5a0fb730874a26f48d1 authored about 9 years ago by Janko Marohnić <[email protected]>
Tweak style of declaring direct upload routes

f5f437ef4126e7396453f28928a987f8c407e28e authored about 9 years ago by Janko Marohnić <[email protected]>
Add support for Sequel's Postgres JSON column

Sequel has a "pg_json" plugin, which serializes and deserializes a
Postgres JSON column into a h...

d195ddcf680d491c47a95832484747da63728fa8 authored about 9 years ago by Janko Marohnić <[email protected]>
Make a lot of improvements to the documentation

2b7ed0e6aabd378a05346c13e8bf339922fc2da1 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix migration_helpers not detecting change

The migration_helpers plugin didn't properly detect that the file has
changed while executing a ...

d941e7b8482be76ac6e228c5cd34f468bfad13ce authored about 9 years ago by Janko Marohnić <[email protected]>
Add `:public` option to S3 storage for public URLs

e35d8bc8008b0ef9570baffbfbfb5068e14d4cbb authored about 9 years ago by Janko Marohnić <[email protected]>
Remove delete_invalid plugin

The problem with this plugin is that, if the user resubmits an invalid
file, they will get an er...

3a5fd889c7b485bc8c6cff9e947ea046146a5a26 authored about 9 years ago by Janko Marohnić <[email protected]>
Don't delete cached files

There are couple of problems with deleting cached files. Firstly, when
using backgrounding it ca...

560ebf1ad4c72aaab3bb013ea5f6e054414edcc9 authored about 9 years ago by Janko Marohnić <[email protected]>
Add changelog entry to the previous commit

8087ffd99d177fa21d525aa30fc65fd3d20f4391 authored about 9 years ago by Janko Marohnić <[email protected]>
Add ability to specify CDN for S3 storage

`Aws::S3::Client` accepts an `:endpoint` option, but unfortunately it
doesn't generate a correct...

a2dc84444f237b3d1b372d9cc075b4f15e0f8d28 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix infinite loop with recache plugin

Previously loading the recache plugin would cause an infinite loop while
saving the record, beca...

d1c0de5ed387daa94ea9a1412c406716256884eb authored about 9 years ago by Janko Marohnić <[email protected]>
Specify the test command in Travis without Bundler

fb6bcf9228cfae261d5eb26267f0fb436dfec792 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix APT packages on Travis

696fed3724ba745a1ee34aff32947108218912c5 authored about 9 years ago by Janko Marohnić <[email protected]>
Remove test with ImageProcessing tempfile on S3

Tempfiles from ImageProcessing previously weren't uploadable to S3 due
to some obscure error, so...

5f71a09e691399bf54d516621790b878c39c8aef authored about 9 years ago by Janko Marohnić <[email protected]>
Fix an incorrect copy-paste

18c96d9565218c914e98d907c585d157c5199c5e authored about 9 years ago by Janko Marohnić <[email protected]>
Fix a typo in Paperclip guide

73ea7a0936dd1ab615508cecc41a1e2eea8c64fd authored about 9 years ago by Janko Marohnić <[email protected]>
Split plugins into categories

5b427850040aba71867e7d610a1fabf8c1a474d2 authored about 9 years ago by Janko Marohnić <[email protected]>
Setup Travis CI

Fixes #6

41ddcaea68897900a41b4fea0fd9eb8303522620 authored about 9 years ago by Janko Marohnić <[email protected]>
Merge pull request #3 from alpaca-tc/fix_typo

Fix typo

3e4c938f00d9ad59c0cb61258bc779bf15e3de37 authored about 9 years ago by Janko Marohnić <[email protected]>
Fixed typo

6729501f00466fcffd645fbe9a9fd8964690367f authored about 9 years ago by alpaca-tc <[email protected]>
Replace `unless` with an else to `if`

10a68829abb87f567eb057501319a19f7b074c3a authored about 9 years ago by alpaca-tc <[email protected]>
Fix an encoding error in determine_mime_type

When we send binary file contents like that, Ruby will assume it's
UTF-8, so we need to tell the...

4481788e4ac836452c944021d65e4082e5146eb2 authored about 9 years ago by Janko Marohnić <[email protected]>
Merge pull request #2 from myabc/patch-1

Fix typo in Paperclip user guide

b5c182f484aad956add79fb5a97630c71dcee7d3 authored about 9 years ago by Janko Marohnić <[email protected]>
Fix typo in Paperclip user guide

5fbd72f10c876a9b7768fc3066b9ee410b5be30b authored about 9 years ago by Alex Coles <[email protected]>
Fix script for testing across Ruby versions

60891dd6a9aa4d674ed548096ad1109f5641ef0a authored about 9 years ago by Janko Marohnić <[email protected]>
Move requiring mocha to test helper

027706cc3037b41711661721b612bbd88a146197 authored about 9 years ago by Janko Marohnić <[email protected]>
Make UploadedFile store fact that it was deleted

We want to make the uploader resilient to changes, and if in some
situations it happens that an ...

87666ee0889963255f066c9a0b6343bac5acd90d authored about 9 years ago by Janko Marohnić <[email protected]>
Make UploadedFile#inspect cleaner

Users will probably often be looking at this output, and currently it's
showing a lot of redunda...

e00b487d2a6312163760527a4a60c6d857aee44a authored about 9 years ago by Janko Marohnić <[email protected]>
Extract byte number for magic header to a constant

I actually don't know if this is the right number, I saw that it's used
in CarrierWave and it ob...

e2650e99adacd64c1c22bb6c2b19d7eeaea47363 authored about 9 years ago by Janko Marohnić <[email protected]>
Make file utility able to accept non-files

File utility can also accept the file contents on standard input. The
reason why I didn't add it...

0b0611d742307a8dcdf7289421e0eeae8e94cbf5 authored about 9 years ago by Janko Marohnić <[email protected]>
Make logging plugin accept PORO instances

We currently assumed that if record exists, it will respond to #id.
That's always the case with ...

f37fe92f2c59f0e04978b7baafb0abf9accec122 authored about 9 years ago by Janko Marohnić <[email protected]>
Website spacing tweak

432601f08fe98e4f9fc16506667d9345a2fcba0c authored about 9 years ago by Janko Marohnić <[email protected]>
RDoc only public methods

14b7c264bb3f5d6148e6a234f0fa38bcc4d35cfd authored about 9 years ago by Janko Marohnić <[email protected]>
Style definition list inline

ebc7eda10f4dfb0cde0a66ec537f10b136314069 authored about 9 years ago by Matija Marohnić <[email protected]>
Style links and definition list

2fc155730a4c345554163c92caaf81dfbb039c5b authored about 9 years ago by Matija Marohnić <[email protected]>
Questions => Help

614a9c1c3615a3dd801f565bb09cf7603a1319b3 authored about 9 years ago by Janko Marohnić <[email protected]>
Shortly describe each plugin on the website

dbbdcfc4da4325808ab562777f241a14a325c1ab authored about 9 years ago by Janko Marohnić <[email protected]>
Add "Shrine for Paperclip Users" guide

642994d2ab2faf905a2f9e512ab6d4ccf5912144 authored about 9 years ago by Janko Marohnić <[email protected]>
Write a "Shrine for CarrierWave Users" guide

638a336c1e286698383fa947e82c395af40126e7 authored about 9 years ago by Janko Marohnić <[email protected]>
Improve documentation

316ebdaf0c2dd07a40b8625e9ce2277e6b759507 authored about 9 years ago by Janko Marohnić <[email protected]>
Emphasize that google group is for questions also

9aa04531f9d6c47e4d202e9e6f16f5aef59e19d8 authored about 9 years ago by Janko Marohnić <[email protected]>
Update the renamed plugin in the readme

5965f8c749799c004dfaf1fa71fcbf744fd9c525 authored about 9 years ago by Janko Marohnić <[email protected]>
Rephrase

cfbfc6f5b307f29ac635fbc701b87824d537d201 authored about 9 years ago by Janko Marohnić <[email protected]>
Add link to the blog post

7c67e757d356c77b0d51699dd201245b691772cf authored about 9 years ago by Janko Marohnić <[email protected]>
Don't require AWS creds in direct_upload_test

0dea8357822cf2e2a1518707077efa61264227fd authored about 9 years ago by Janko Marohnić <[email protected]>
Add rack_file plugin

2c0ff2a19847179dd0449df7c70e50e3f54f6b0a authored about 9 years ago by Janko Marohnić <[email protected]>
Fix wrong plugin link

601e804be823e5e56454969526965754b369596e authored about 9 years ago by Janko Marohnić <[email protected]>
Remove version from webiste for now

1677ff6ed35087f3ea6de1b04daeca8c031a58e5 authored about 9 years ago by Janko Marohnić <[email protected]>
Comment out empty titles in the website

89b8edf9836d66560e5661b564db670d36dc6863 authored about 9 years ago by Janko Marohnić <[email protected]>
Change phase names to be better

3624166de35d8eacbeddfaa4ae6ce8c5a8e79467 authored about 9 years ago by Janko Marohnić <[email protected]>
Add section about custom metadata to README

93e405e33bfc8906f7c6433368d9b7fa4c912be1 authored about 9 years ago by Janko Marohnić <[email protected]>
Add GitHub link

5a6b7626bf77886d56d967ad00e533381cb39504 authored about 9 years ago by Matija Marohnić <[email protected]>