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

Handle non-ASCII chars in filename on S3 upload

When we're uploading a file to S3, we're also including the parameter
for the "Content-Dispositi...

6d5c81f095b56608e517c7f68a167304f727297c authored over 8 years ago by Janko Marohnić <[email protected]>
Don't overwrite option if already set

8f4c361629a99ca7e43ba802d61af9dac4f67ea6 authored over 8 years ago by Jonas Heinrich <[email protected]>
Allow dynamic options in default_url_options

There are cases where we want to pass the URL options based on
UploadedFile's metadata, but we w...

bb86043e32435e83e811faa403c60a18e1a48b22 authored over 8 years ago by Janko Marohnić <[email protected]>
Don't run validations in copy plugin

Currently we're assigning the copied file using `Attacher#set`, which
runs file validations, and...

5848c84726ec7b364c093ca1905963e121199b97 authored over 8 years ago by Janko Marohnić <[email protected]>
Make assignment more explicit

bd8252d1060d74d3d60da8ede0801b4336a4e498 authored over 8 years ago by Janko Marohnić <[email protected]>
Add tests that promoting happens after commit

5d80e33b292d76ee5bb4e43b72e880a02f9efdd6 authored over 8 years ago by Janko Marohnić <[email protected]>
Don't use Storage#stream in download_endpoint

Storage#stream was in the past used for streaming the uploaded file in
chunks. In the meanwhile ...

67b19fd2ac246c059c4f5d63617d38810c70c9c8 authored over 8 years ago by Janko Marohnić <[email protected]>
Remove deleting Tempfiles returned by Storage#open

Before Storage#open returned a Tempfile object for most storages. Even
though the GC is supposed...

bf8227d2725c1b0aab77b50a293ab502a2dfdb93 authored over 8 years ago by Janko Marohnić <[email protected]>
Remove overriden UploadedFile#inspect

Now we're not using any other instance variables than @data and @io, so
we can rely on the defau...

a87b8af1dc57fea5023a0885c1e1db6abbc4ae24 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve RDoc documentation for base functionality

9f88e91b71f8ec3b84f0444af8355acb78e9dbef authored over 8 years ago by Janko Marohnić <[email protected]>
Clarify more the "Quick start" section

3192076575d20df602bd5726184e5b42a43f96ac authored over 8 years ago by Janko Marohnić <[email protected]>
Inline simple conditional

8c0fdc5a0736a7be5312d1dce35a7483e456e8c6 authored over 8 years ago by Janko Marohnić <[email protected]>
Merge pull request #89 from janko-m/facelift

Redesign the website

b4ab9c64dff092bbf73894238f0226cb9cacf6a7 authored over 8 years ago by Janko Marohnić <[email protected]>
Redesign the website

[ci skip]

- It's using the native OS font (on macOS it's San Francisco, on Android
it's Droid...

29f9fbae9e54bbc67367e96d91984aeee80ce592 authored over 8 years ago by Matija Marohnić <[email protected]>
Document using attacher with different storage

5f6125a06fb1fbe442ab292f88c4d54df9670734 authored over 8 years ago by Janko Marohnić <[email protected]>
Move :host from storage option to URL option

Host is only used for generating URLs, so it should be a URL option
instead of a first-class sto...

3f6c1fd8f9de1792c98f8305ef992ab73094194f authored over 8 years ago by Janko Marohnić <[email protected]>
Update shrine-memory to pass the new linter

6bc9ed7dd5f1ebe2cd1b78d05de8b5888c7e3b37 authored over 8 years ago by Janko Marohnić <[email protected]>
Add test that download_endpoint closes the file

21dcaffa55532b14ecb1a6e99ae1cec6087ee179 authored over 8 years ago by Janko Marohnić <[email protected]>
Add test for the latest change in Linter

789a62e07a6dbbb9b7ec96348c566cc5013709a1 authored over 8 years ago by Janko Marohnić <[email protected]>
Add latest "Attachment" blog post to the website

d650f1a1a0904a47ba6abcce324450209486e6b1 authored over 8 years ago by Janko Marohnić <[email protected]>
Add shrine-scp to the website

2a6ab92d59c7720cd5ff313949333313e8d84bc7 authored over 8 years ago by Janko Marohnić <[email protected]>
Don't fail in FileSystem if file is missing

It is common that the user clears a storage manually, and in this case
deleting existing records...

e9d2451dc672c68daae6f26e702a5a3adbfc20a1 authored over 8 years ago by Janko Marohnić <[email protected]>
minor code comment fix

eb65e058dfa9a95f60493efebc7cecf8c5b8fdf3 authored over 8 years ago by Eric Duvon <[email protected]>
In UploadedFile#open handle storage errors

Previously if `Storage#open` would error, the `@io` instance variable
would be nil, and `@io.clo...

da2d4ab105777bdea5792e8742e1968cd69692c8 authored over 8 years ago by Janko Marohnić <[email protected]>
Add missing CHANGELONG entries

8a806b5d9f010a47d3521e5e58079600d86900c5 authored over 8 years ago by Janko Marohnić <[email protected]>
Add test for destroying record with no attachment

7dc1a54a663d49882c66a496314510055d68b2bd authored over 8 years ago by Janko Marohnić <[email protected]>
Use Roda's streaming plugin in download_endpoint

Roda's streaming endpoint supports EventMachine better, and is
configurable in general.

34d416da19178104b37fe43843187d232c89a3fc authored over 8 years ago by Janko Marohnić <[email protected]>
Use Sequel::Database#after_commit directly

See https://github.com/jeremyevans/sequel/commit/ead5e5e09e647f3089ea9e161e99b608c2c6ee02.

Fixe...

08ed806110139b83401f603ac95cea5d6abf7bd2 authored over 8 years ago by Janko Marohnić <[email protected]>
Document how to setup S3 transfer acceleration

Fixes #81

a8f9bbbd5ce96cb5beaafb5a898f8364eb5abf65 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve documentation around processing

90147738d6470dfa35323c4c30f5a36e824a6aed authored over 8 years ago by Janko Marohnić <[email protected]>
Tweak Shrine::Attacher example

eacfa8d6d9ad50043194804397916247d7f003ed authored over 8 years ago by Janko Marohnić <[email protected]>
Override #to_s on the attachment module

Currently when listing model ancestors via `p`, the module is properly
displayed, because we've ...

44f46f8d35568f7f4e06b139cf13328fb450e968 authored over 8 years ago by Janko Marohnić <[email protected]>
Tiny README additions

398bb0f4a51660816f065e2c3873843fc5c3debe authored over 8 years ago by Janko Marohnić <[email protected]>
List ROM/dry-rb Shrine example app

5e3fb397d2091c0d7b409b10a012b86c0b92a4b9 authored over 8 years ago by Janko Marohnić <[email protected]>
Add the "Uploader" blog post from Shrine series

61756f05b7435f5ffdacf143d92edf21870e4e29 authored over 8 years ago by Janko Marohnić <[email protected]>
Correct Shrine subtitle on website

dc49b2aa7010dd2e5d144050a66a8e14273dcf88 authored over 8 years ago by Janko Marohnić <[email protected]>
Add test for "0" in remove_attachment plugin

04a9dbe250a64e7d65e44a7982a1717c72952bcf authored over 8 years ago by Janko Marohnić <[email protected]>
Fix the regex in remove_attachment plugin

The regex /\A0|false$\z/ doesn't make any sense, although it's present
both in CarrierWave and R...

c0851d002f6b4807351c338eaf7a9fcb98ce51a8 authored over 8 years ago by Janko Marohnić <[email protected]>
Write the "Using Attacher" guide

7f66a45b9d716f6a9432fc2b0c090d35f2262e87 authored over 8 years ago by Janko Marohnić <[email protected]>
Documentation improvements

3232e3a8d68018d8ae11002fb039ac8f4b98383f authored over 8 years ago by Janko Marohnić <[email protected]>
Write filename to "Content-Disposition" for S3

When we're uploading a file for which we know the original filename, we
can assign it to the `Co...

61ce15e69f510fe53ea1b8b87d2a191a57d00313 authored over 8 years ago by Janko Marohnić <[email protected]>
Mention Dragonfly as an image server

5cdbdee600d33450bd70d98d66bb31e4d58c47f3 authored over 8 years ago by Janko Marohnić <[email protected]>
Link the newest motivational blog post

645f9a1aecd8dd99547f0a19d766bbc2b8e0d05c authored over 8 years ago by Janko Marohnić <[email protected]>
Put "Clearing cache" under "Storage" section

d9ec1fe0057b1cb2e090bc5d8f00121fb230d7f0 authored over 8 years ago by Janko Marohnić <[email protected]>
Remove optional methods from the "Design" guide

521b725009218b9db4c186b0c65ab15f2702dad0 authored over 8 years ago by Janko Marohnić <[email protected]>
Add section about chunked & resumable uploads

3fe9cf5b286fe985d925c106f5cfa318b216c027 authored over 8 years ago by Janko Marohnić <[email protected]>
Code style improvement

e17d4ad976ce507771d32a1c6e3fcbdb124d09c1 authored over 8 years ago by Janko Marohnić <[email protected]>
Deprecate accepting string in Shrine.uploaded_file

The Shrine class operates only with hashes and UploadedFiles. Uploaded
files in form of JSON str...

0741315a67fd3d117d7ca0edf5fb22a8d585a7ee authored over 8 years ago by Janko Marohnić <[email protected]>
Use Shrine.uploaded_file in base plugin

This is useful if people want to override `Shrine.uploaded_file`.

48bb95d6841426cf25535e6394d56d7545e17b05 authored over 8 years ago by Janko Marohnić <[email protected]>
Minor README improvements

ff10c85bc145208e4b12870f7c67baec4ac79822 authored over 8 years ago by Janko Marohnić <[email protected]>
Add argument to Tempfile.new for older rubies

bf669069d19be4ac680de8835331c0a11127b88d authored over 8 years ago by Janko Marohnić <[email protected]>
Prepare for 2.3.1

3f7b5919015f319fcf8d81df170f92f28a9339fb authored over 8 years ago by Janko Marohnić <[email protected]>
Add tests for setting permissions to nil

6831fffb72197d1ebca7cd65bedfbc88ca0181e6 authored over 8 years ago by Janko Marohnić <[email protected]>
Don't change permissions of existing directories

Previously if FileSystem storage was initialized with an existing
directory, the storage would a...

cd5ccbb6eb970059ad27c9a53e526a9e7acf5e92 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve documentation for creating storages

f320d5a533f6698720cc524ed99f2acf1de4ff1d authored over 8 years ago by Janko Marohnić <[email protected]>
Don't require #download in storage linter

Storages aren't require to implement #download anymore.

6da92b5c9a4e45ff38eb270d7adf3571f83f7e65 authored over 8 years ago by Janko Marohnić <[email protected]>
Link "Backgrounding libraries" in a better place

733066e22dd0ecfc77827056008be61bfedd9352 authored over 8 years ago by Janko Marohnić <[email protected]>
Link "Backgrounding libraries" wiki page

ad6b17702e61d2778539d63ccb58c0933dd1e3cf authored over 8 years ago by Janko Marohnić <[email protected]>
Remove an incorrect regression from release notes

This wasn't a regression from previous version, this was all part of the
current version.

c9243c49c082b2045534c158bff0737c776189d1 authored over 8 years ago by Janko Marohnić <[email protected]>
Add missing link of FineUploader in docs

e32da33d1cf5719ace644819fea43625b2a81ec5 authored over 8 years ago by willnet <[email protected]>
Prepare for 2.3.0

296eedf3a6a2e7ea5c3926595ce07a97f64755a0 authored over 8 years ago by Janko Marohnić <[email protected]>
Disable caching presign response in direct_upload

Some browsers like Safari will automatically cache GET and HEAD
responses, which breaks the pres...

f5eccc96d053aa2180a13bee1e58ccee33445d66 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve documentation

e13f7ac116dae53aad967952968c65e8b175f3eb authored over 8 years ago by Janko Marohnić <[email protected]>
Note that you can only assign cached files

e40a4b71871854ca00391682897466e6b74ed5c2 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve validation documentation

4aaa297e3bd25b19ba8e8b4454bacccc9e245cc5 authored over 8 years ago by Janko Marohnić <[email protected]>
Use Attacher#store! and Attacher#cache! in tests

021dc21f1cb12a739460461873034cf5ee2f0d0a authored over 8 years ago by Janko Marohnić <[email protected]>
Fix behaviour of copy plugin

Previously when record is duplicated with new attachment, the original
attachment would be marke...

c67aa3f0d720ce6b2f28ca43b062bbda5894f607 authored over 8 years ago by Janko Marohnić <[email protected]>
Revert "Test with ActiveRecord 5"

ActiveRecord 5 doesn't work with Ruby 2.1.8 and JRuby.

4c725d6b30e83d9b3e5c227d9e1c1eed1d824e99 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve copy plugin tests

f3006cccf3194fbf0648c6527545ea8ee5bb37a3 authored over 8 years ago by Janko Marohnić <[email protected]>
Don't check for #<name>_attacher in copy plugin

If the model received this #initialize_copy, that means the attachment
module was already includ...

379a47809ff1742c16e93e3dd7a1366c40e27c4d authored over 8 years ago by Janko Marohnić <[email protected]>
Test with ActiveRecord 5

63000bd6c7a6e9c71c10b6ede16066b8400c5b2f authored over 8 years ago by Janko Marohnić <[email protected]>
Minor README fix

d63b56097852480afe70ca0cb30b13cbafbd9f92 authored over 8 years ago by Janko Marohnić <[email protected]>
fix typo in docs for direct s3 uploads

384eb1abb80d95eed0add8d7cd77091b6d358d42 authored over 8 years ago by Hrvoje Šimić <[email protected]>
Improve restore_cached_data documentation

8f746c8de7b178802a1f996e4d5097e271eeb17e authored over 8 years ago by Janko Marohnić <[email protected]>
Fix test failure in JRuby (strike two)

c5bf76b60fd19b88e009fac9e128776cde8bf944 authored over 8 years ago by Janko Marohnić <[email protected]>
Simplification of previous commit

9ffdd15364a6546bd802b3c2427838c433eb0b79 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve README

First: awesome readme, very detailed, as is the documentation.

Im suggesting some small chang...

05aa2d70a9e89130c4d091ac8696609d81892eb9 authored over 8 years ago by Cayo Medeiros <[email protected]>
Fix test failure on JRuby

9be211b99d8d5f3dd9585e7b3440f8c479684626 authored over 8 years ago by Janko Marohnić <[email protected]>
Make Sequel update only attachment in background job

Previously if a column was updated while the background job was
processing, the background job w...

97d5dc665c5ff886beb72adb9ba6926665d66961 authored over 8 years ago by Janko Marohnić <[email protected]>
Add copy plugin for copying attachments

https://github.com/carrierwaveuploader/carrierwave/issues/1962
https://github.com/equivalent/cop...

da6818509e349451c276c75976af6ba6e5361d8c authored over 8 years ago by Janko Marohnić <[email protected]>
Disable moving in backup plugin

If backup storage supports moving as well, loading the moving plugin
would move the uploaded fil...

58502681123963be6a2ff06aa1d9f5df0938db8d authored over 8 years ago by Janko Marohnić <[email protected]>
Improve "Shrine for Refile Users" guide

79acd3800bbcee164f92c79c919bc79ac65aa129 authored over 8 years ago by Janko Marohnić <[email protected]>
Generic documentation improvements

651c9df1c704844df6217421d2cd63716b55519c authored over 8 years ago by Janko Marohnić <[email protected]>
Fix some backgrounding tests

26d970d2023c8f2cd978ff0a504745baaa7b8985 authored over 8 years ago by Janko Marohnić <[email protected]>
Move Roda & Sequel demo app here

184f2b53f7b0751025e88e04ff1de4a58db1e339 authored over 8 years ago by Janko Marohnić <[email protected]>
Add example of downloading with original filename

143d28d9e0901f0355d05d2448d0a789f80ac66a authored over 8 years ago by Janko Marohnić <[email protected]>
Fix examples in guides

083533072a3459967f19c9bc0a9967e558ba170f authored over 8 years ago by Janko Marohnić <[email protected]>
Improve "Shrine for Paperclip Users" guide

7418eac5292b639134725fc21f56ced24bb84c99 authored over 8 years ago by Janko Marohnić <[email protected]>
Improve "Shrine for CarrierWave Users" guide

dd108499c5e368dc49e6559dda76d2b8a9310a10 authored over 8 years ago by Janko Marohnić <[email protected]>
Add section about multiple files

e34a938f64a50a56889e839d6c9d1a3caf85e98e authored over 8 years ago by Janko Marohnić <[email protected]>
Make Shrine a file *attachment* toolkit

854214ea664844764941f8127ae830973b8bde9e authored over 8 years ago by Janko Marohnić <[email protected]>
Improve "Direct Uploads to S3" description

051d808363bc606cec286e6bf6083523bff4ac1a authored over 8 years ago by Janko Marohnić <[email protected]>
Make Attacher#recache public

45aa4cf79fccd91867cdf73b27049accb20d7e82 authored over 8 years ago by Janko Marohnić <[email protected]>
Mention that not all MIME types can be recognized

74481aa0dd8ae2776e3d4577be107fca2b6c2c82 authored over 8 years ago by Janko Marohnić <[email protected]>
Mention the router/controller

d3c11680d42a45217598eb2539b641571b3f1926 authored over 8 years ago by Janko Marohnić <[email protected]>
Add example of replacing and removing attachment

e22f4bd5bdefebd9501d1a8c6eaceb816f79e118 authored over 8 years ago by Janko Marohnić <[email protected]>
Minor improvements and docs

1a0faddd624ec5e72dc60cc7b82c6bab319c750e authored over 8 years ago by Janko Marohnić <[email protected]>
Refactor backgrounding to use Attacher#read

This way if we ever decide to change how column is read in the Attacher,
the backgrounding plugi...

269d63959c65bdb5785a091be5a233ae10386616 authored over 8 years ago by Janko Marohnić <[email protected]>
Allow modifying Attacher#context

This is useful when you're using Attacher directly, and you want to
update the :record once it's...

560c36ea7306fa38962611be2acc6d7d612c529c authored over 8 years ago by Janko Marohnić <[email protected]>
Make Attacher#read public

When we're using the Attacher directly, for example in ROM & dry-rb,
it's often that we want to ...

4162733ff2aa2c6bcce580640e79caeebd940db8 authored over 8 years ago by Janko Marohnić <[email protected]>