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

Remove deprecated :storages option in download_endpoint

2b5d99dc130fa62060f83fbea32c55937384b493 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated :filename data_uri plugin option

44b8233d18330581cab6e718891321af874fb0ca authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated :older_than option in FileSystem#clear!

bd73114998870b58e4c512cca65d23689a04fad9 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated cached_attachment_data= setter

013588ed08341fc5a6bdde60fb04bdaf9a2eb237 authored over 5 years ago by Janko Marohnić <[email protected]>
Don't accept a block anymore in FileSystem#open

bab7a1d8b4bc52b0d8a0d388d61d91565e6a02c3 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated FileSystem#download method

bf38aa4b37bad22097c4ca5690bf5dbfb09d92c4 authored over 5 years ago by Janko Marohnić <[email protected]>
Make FileSystem#movable? and #move methods private

dd38bd1474c32cac4d30bed12de88ded91d06716 authored over 5 years ago by Janko Marohnić <[email protected]>
Stop ignoring unrecognized options in FileSystem#upload

I thought at first that we'd want to stop supporting them, but people
might be using FileSystem ...

5b49ae724abdaea35588478480d87aa20f4c0f02 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated :host option for FileSystem#initialize

724909b72b9f048349e229ad9b5a3c1e8eae4312 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated moving plugin

4d3b61857b8e9cc57ed346a4bd962dcd70d32a0f authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated multi_delete plugin

4dd4e1cf326b001a20d77d08a3a047c09f4b40cf authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated direct_upload plugin

1f584de29c961ece49b8a5997aa568e67e31deae authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated backup plugin

60528898c1b49cf3e45fe18a53d4a66b014dbcfa authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated background_helpers plugin

1bbbf178b81ce82f2a041abe73f51c77df536e72 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated migration_helpers plugin

e3d43d22a62fe43666247451cd8354e50f2909ee authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated copy plugin

9c3bbc082d856bcc8a1b88b38377059120f8975f authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated logging plugin

6692421fcb5d64e80501735e1c7f5ca2a59dfdb3 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove unused requires in s3_test.rb

812969e3517b050fb778addfe081ed1454b3717e authored over 5 years ago by Janko Marohnić <[email protected]>
Simplify upload logic in S3 storage

Now that we can rely on Aws::S3::Object#upload_stream existing, we can
always use that. We also ...

246d86998fc5aa37420975a09e7ec12746bd1d42 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated S3#download method

945ac98d3edfbbb61d858c7c2112b4a5f0ac8cc4 authored over 5 years ago by Janko Marohnić <[email protected]>
Drop support for non Hash-like presign objects in presign_endpoint

c261941dd5be99a633dceb41a270c30130fb1cce authored over 5 years ago by Janko Marohnić <[email protected]>
Return a hash in S3#presign when method is POST

The presign_endpoint now requires Hashes or something that's convertable
to a Hash, so we don't ...

eb9bc3434f23ddfbeee61a29cdb24d86c4adcf57 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecate S3#stream method

5da79593095b9beee7ae88438871409663c3c249 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove :download option in S3#url

Users should use :response_content_disposition instead.

f74d904ac391a31d1437796d7d5377b5d58612a5 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove support for non URI-encoded content disposition values in S3 storage

Users should use the ContentDisposition gem for generating properly
encoded Content-Disposition ...

c9506c3a6cf67a6aa748eaa2f46a9aa0ddd0e1cb authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated S3#s3 method

1d57d33688f2f2dfb4d36164bc716343320ef0cc authored over 5 years ago by Janko Marohnić <[email protected]>
Remove support for integer :multipart_threshold in S3#initialize

ec05f627196a72172a3e6837bcfe297708443cf2 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove deprecated :host option on S3#initialize

676795788234cdd2570d5661256a870ae127ff24 authored over 5 years ago by Janko Marohnić <[email protected]>
Drop support for aws-sdk-s3 lower than 1.14

That's the version that introduced Aws::S3::Object#upload_stream, which
we need for uploading la...

38af59db5aae10f0935e6e41770d0eee63a39e01 authored over 5 years ago by Janko Marohnić <[email protected]>
Drop support for aws-sdk 2.x in S3 storage

e16b6acb45d28c3255003b983667d4035040f39d authored over 5 years ago by Janko Marohnić <[email protected]>
Bump to 2.19.0

eda05bc3189bc68e7f403bc11250100e4f0d6e34 authored over 5 years ago by Janko Marohnić <[email protected]>
Deprecate unrecognized options in FileSystem#upload

d23f6915a38e12ba7bb094040ad09a6eb1d381ea authored over 5 years ago by Janko Marohnić <[email protected]>
Update documentation for #pretty_location method

5b0c7a3fbb6ca66acadad9fd6410972e824e9e85 authored over 5 years ago by Janko Marohnić <[email protected]>
Test that refresh_metadata plugin triggers metadata event

2b92feed9d14cf1fe0d3a5ec7b1e32f89f8679bd authored over 5 years ago by Janko Marohnić <[email protected]>
Make refresh_metadata plugin trigger metadata instrumentation

The instrumentation plugin overrides Shrine#get_metadata method to add
instrumentation, so calli...

c93ca5c5f2e2ec04fcf8c7a62ee266c664be05b4 authored over 5 years ago by Janko Marohnić <[email protected]>
Extract default derivation storage into a method

f71128a53461ad2c106258ad974dd185d7c24f75 authored over 5 years ago by Janko Marohnić <[email protected]>
Add table of contents for derivation_endpoint docs

25fff016438981d4c0f18d2b31b5f06acebaba6b authored over 5 years ago by Janko Marohnić <[email protected]>
Remove unnecessary Rack::File#dup call

698f65de53002e4298ff2f4b143e37769b35b24e authored over 5 years ago by Janko Marohnić <[email protected]>
Remove #move checking from the storage linter

The moving plugin has been deprecated, and storages are now encouraged
to implement moving as pa...

4672ccf72b3cdae7ea4bcbfa9b0ed4b0901def7b authored over 5 years ago by Janko Marohnić <[email protected]>
Fix typo in pretty_location docs

7a51db9251e6dfba0625f3d4d13152250024fd06 authored over 5 years ago by Janko Marohnić <[email protected]>
Simplify style of pretty_location plugin and add changelog entry

a03f99d0583c57fced350b387100ed55055884e0 authored over 5 years ago by Janko Marohnić <[email protected]>
Allow setting the identifier in pretty location plugin (#392)

1a498b5eeb8b76176f46d256d3476a4fa97679e5 authored over 5 years ago by David Revelo <[email protected]>
Soft-move data URI file class to Shrine::DataFile

This class is public-facing, especially when the instrumentation plugin
is used, so we move it t...

6fecfde74d1ef654fdd7e284aa27d89c00e76cb6 authored over 5 years ago by Janko Marohnić <[email protected]>
Soft-move rack file class to Shrine::RackFile

This class is public-facing, especially when the instrumentation plugin
is used, so we move it t...

c2a9692104488d82de7d91ff8c77476b55cf95db authored over 5 years ago by Janko Marohnić <[email protected]>
Deprecate the backup plugin

The backup plugin relies heavily on the Attacher implementation, which
will change in Shrine 3.0...

e1117c92bbaf0970f99748596d9f915b96a0eb10 authored over 5 years ago by Janko Marohnić <[email protected]>
Show using Marcel MIME type analyzer in demo app

This is now the recommended analyzer.

a7dea97ad4eae99d400fd29b2ea67c4d8b8b8d02 authored over 5 years ago by Janko Marohnić <[email protected]>
Update method docs with shortened event names

87dfebba224d2d8ec17ed0a107a51027f6d47e10 authored over 5 years ago by Janko Marohnić <[email protected]>
Handle better file being deleted on upload in derivation_endpoint

This works with moving & delete_raw plugins, as well as the new :move
option for FileSystem#uplo...

3711102b5a9b3b7e05bfbfd6d431ce84edb78055 authored over 5 years ago by Janko Marohnić <[email protected]>
Deprecate the moving plugin

Users should now pass the `move: true` to FileSystem#upload. FileSystem
storage was the only one...

cea01426d01fb375e74392f78ec3e664514f3966 authored over 5 years ago by Janko Marohnić <[email protected]>
Add :move option for FileSystem#upload

Users of the moving plugin should now switch to that option. This will
make it easier to reason ...

6f8e6749b956b18672498bcec51a0225772bbb23 authored over 5 years ago by Janko Marohnić <[email protected]>
Don't fill size metadata in FileSystem#upload

We've recently removed similar logic from the S3 storage, because it
wasn't worth the added cost...

9ab0a01fa01a84cfe41b7043c5bb7930772759f2 authored over 5 years ago by Janko Marohnić <[email protected]>
Link to ActiveSupport::Notifications

ff4d2ea0e14e8b8c99da59c4a1188f963c0e461f authored over 5 years ago by Janko Marohnić <[email protected]>
Finalize instrumentation plugin, and deprecate logging plugin

The new instrumentation plugin provides much more visibility into Shrine
operations than the log...

7aa39e849d2746cfcea4f1935849e58d5db4625b authored over 5 years ago by Janko Marohnić <[email protected]>
Add UploadedFile#[] shorthand for accessing metadata

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]>
Inline extending/including modules in base

I like that when I require `lib/shrine/uploaded_file.rb`, that file is
in charge of providing me...

4296561e284b40ffc39dc2b2d6bee4f43702a0b4 authored over 5 years ago by Janko Marohnić <[email protected]>
Recommend using :marcel MIME type analyzer

While I decided that Shrine 3.0 will continue to not use an MIME type
analyzer by default, we ca...

e2ae4d83396bbe5b0eec3170cb1431db488a6305 authored over 5 years ago by Janko Marohnić <[email protected]>
Improve how add_metadata plugin defines file methods

8e8e447115620489b48ef1fe73682a8e3bdff71e authored over 5 years ago by Janko Marohnić <[email protected]>
Add instrumentation plugin

b72ef84e5f9d05d44ffa6a7ef3b0435b6ab7da96 authored over 5 years ago by Janko Marohnić <[email protected]>
Log exceptions in store_dimensions plugin and make exception strategy configurable

4d6b51104d0f7b9e00f68bbe6a4a4bbb35f34358 authored over 5 years ago by Janko Marohnić <[email protected]>
Add a default logger

People should be able to have Shrine log anything into the Rails logger
when using Shrine inside...

a9cd725a74ad8e9925fa63a6cd853c1d83442ff0 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove unused options in add_metadata plugin

e96e49e64a93142e07c0e7c2c712b7e7dacd9848 authored over 5 years ago by Janko Marohnić <[email protected]>
Deprecate the copy plugin

The copy plugin has had some undesired behaviour, mostly around its
`#initialize_copy` override ...

3ad7ddf145bc56f564bf10b14fcc4fcea848f4a2 authored over 5 years ago by Janko Marohnić <[email protected]>
Add ability to skip and force metadata extraction

If metadata extraction is heavy, in tests people might want to skip it.
So we add support for th...

d48439e9ddf88ee0eb4fe494a3df6686cde8c3e0 authored over 5 years ago by Janko Marohnić <[email protected]>
Rename Minio to MinIO

569836d73b001e8a25acbe13a405a8e8d05ac7d3 authored over 5 years ago by Janko Marohnić <[email protected]>
Simplify S3#clear! a bit

We can use lazy enumerators to do lazy selection, which is less verbose
than creating our own En...

ff2ab0ee1fba54ee68f1f754f6b327cbdfd163df authored over 5 years ago by Janko Marohnić <[email protected]>
Allow registering storages under string names

This was possible before Shrine 2.18.0, although unintentionally. In
https://github.com/shrinerb...

f5a5fb86378f7ab7768ea1e20594b20c70033854 authored over 5 years ago by Janko Marohnić <[email protected]>
Small grammar correction in README (#394)

95533749cd774ce041b1e1fe2496f2dc9c2e1f6c authored over 5 years ago by Barna <[email protected]>
Replace rest of `env` with `request.env` for Rails

56b0060057df4d2e45f92d29d21084602f726424 authored over 5 years ago by Janko Marohnić <[email protected]>
Update docs: env deprecated in rails 5. use request.env

bcf324f26f272121c6216dbc59d6ac2949d10e2d authored over 5 years ago by Jeff Levin <[email protected]>
A couple of small README fixes

66120d7452b76aac03325038c7f72b4d5d97d055 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove Uppy examples from the README

I feel they are too technical for someone not familiar with Uppy, and
it's kind of out of the bl...

570f7ea470fc4e64173af206e25ad56f56289e9a authored over 5 years ago by Janko Marohnić <[email protected]>
Remove the "Settings" section from the README

It would rarely be obvious how to use it, as people are in different
contexts for different feat...

cca7cf3db935a8bf28f48dbf3972fe575a58d4d6 authored over 5 years ago by Janko Marohnić <[email protected]>
Allow FileSystem#clear! to take a block

This gives people more flexibility in what they want to delete, and
makes the API consistent wit...

1dbcefd83606bc57721c5939ac9d572514e16472 authored over 5 years ago by Janko Marohnić <[email protected]>
Add :dog: emoji when introducing Uppy

It makes it stand out nicely when reading, which is desired as it's the
most important part of d...

58b2a72c1092648872893a8837f366dafbda462a authored over 5 years ago by Janko Marohnić <[email protected]>
Still show assigning a cached file in "Direct uploads" section

This was removed with the simplification of the README, but it's very
important in understanding...

acbbe008acaf542f3325cfd3287d3395df45e784 authored over 5 years ago by Janko Marohnić <[email protected]>
Ignore a JRuby failure

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]>
Add shorthand aliases to metadata extraction plugins

This aliases

Shrine.determine_mime_type(io)
Shrine.extract_dimensions(io)
Shrine.calculat...

00276e04e16ada839c526ac4cf357703db163ee9 authored over 5 years ago by Janko Marohnić <[email protected]>
Remove unnecessary section from validation_helpers docs

The validation_helpers plugin docs isn't the place for describing how
validation works, this is ...

64d97596abf00622fb0cd968989cbf454f871a7c authored over 5 years ago by Janko Marohnić <[email protected]>
Add validators for validating both width and height

validate_max_dimensions [5000, 5000]
validate_min_dimensions [100, 100]

# OR

validate_...

4dc04018200f438e69565947b32b07bedff5a537 authored over 5 years ago by Janko Marohnić <[email protected]>
Show all default validation error messages

This way the user knows what exists and doesn't have to guess by the
name of the validation method.

a0fc7a7c615386a1c4b6c8cae9a2c9cd779e0cc9 authored over 5 years ago by Janko Marohnić <[email protected]>
DRY up validations with #validation_result method

1b651ff1ba56f6b50f9ed7b3e065949b566b7b30 authored over 5 years ago by Janko Marohnić <[email protected]>
Use greater/less instead of larger/smaller

larger/smaller is about physical size, while greater/less is about
values, which is what we have...

3aaa04bd3ca7e8c3996a8bc4278e59e7b003034e authored over 5 years ago by Janko Marohnić <[email protected]>
Add #validate_size, #validate_width, and #validate_height shorthands

If users want to provide both upper and lower constraints for a metadata
value, they can now do ...

13073911683006e8eb034ecff55bddc6f6d5003f authored over 5 years ago by Janko Marohnić <[email protected]>
Fix some test descriptions in validation_helpers tests

63b07d206881f3e2853d299a2368f19006f2c353 authored over 5 years ago by Janko Marohnić <[email protected]>
Make validators RDocs more precise

In RDocs we want to be speaking in a precise low-level language, so that
there is no misinterpre...

1309533bef5e45fc4f6f11eac4c006bd00237815 authored over 5 years ago by Janko Marohnić <[email protected]>
Add #validate_mime_type and #validate_extension aliases

In the vast majority of cases the user will only use a whitelist, so we
add shorthands for these...

f77e62b458866de0d54f9525237879cb82c76b41 authored over 5 years ago by Janko Marohnić <[email protected]>
Simplify default validation error messages

Parentheses split the message into two parts, and it's not needed, we
can say everything at once...

97bf32583c1232b4346306f4b2077a1fab007a06 authored over 5 years ago by Janko Marohnić <[email protected]>
Stop using fieldName for XHRUpload in demo app

It's not needed anymore now that upload_endpoint handles the default
`files[]` array.

a76c8622dc796d8a44fa344c1ae4082b45aa5cdb authored over 5 years ago by Janko Marohnić <[email protected]>
Update RDoc for Shrine.Attachment

a30c030575dabcac4405a50bc438f37dbb18d5db authored over 5 years ago by Janko Marohnić <[email protected]>
Bump to 2.18.0

8c55368952f36c5b7314c837ac77d84ca7bf381b authored over 5 years ago by Janko Marohnić <[email protected]>
Show setting chunkSize for Uppy.Tus

This is required on web servers other than Falcon.

00e7612948954aa4926d2675e404217a5c7733f5 authored over 5 years ago by Janko Marohnić <[email protected]>
Avoid lengthy explanations in the README

According to article [1], the README is trying to be a "tutorial" type
of documentation. However...

541b3948a2d99c1ec9acaf52524a402236e80ba4 authored over 5 years ago by Janko Marohnić <[email protected]>
Fix typo in S3 documentation (#390)

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]>
Fix typo in README

Fixes #388

62f4a7cfe34d76cd42cb9e116f58b95a711b8990 authored over 5 years ago by Janko Marohnić <[email protected]>
Add table of contents to the README

6fdb567288994b591c82bce4e774fc5df58e4b4b authored over 5 years ago by Janko Marohnić <[email protected]>
Remove unnecessary line when overriding Attachment#initialize

fce3e1af49dbe397d9dffa196a1acbec9fa388be authored over 5 years ago by Janko Marohnić <[email protected]>
Fix broken link

a2b36e232e315c9288a741574ce32c229dfdc509 authored over 5 years ago by Janko Marohnić <[email protected]>
Various README tweaks

* better linkage
* more Rails examples

f290a490f2f71f38f6ecdab7c702b412266a9e48 authored over 5 years ago by Janko Marohnić <[email protected]>
Add content-disposition to recommended S3 CORS headers

This is needed when using :content_disposition presign option for PUT
presigns.

86e3eec7ada4a5f3cf1cf39b2af212cc29b69b9a authored over 5 years ago by Janko Marohnić <[email protected]>
Add Shrine.upload shorthand method

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]>