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

AttacherMethods#cached? can take an argument

to operate on arbitrary UploadedFile, instead of only currently attached (#get) one.

with inter...

88c23d54814568b04987680f00b6b36f421c8d81 authored about 6 years ago by Jonathan Rochkind <[email protected]>
Don't lookup attachment class on every attacher read

da59286645604d2f098b6ebb27a1e6ba1aa7704b authored about 6 years ago by Max Melentiev <[email protected]>
Allow assigning a filename in Shrine.data_uri

The user can now pass :filename to `Shrine.data_uri`:

io = Shrine.data_uri("data:,content", f...

203c2c9a0c83815c9ded1b09d5d006b2a523579c authored about 6 years ago by Janko Marohnić <[email protected]>
Explain how the metadata values are extracted

658cd59567dc2303081724ad53d0de0430013949 authored about 6 years ago by Janko Marohnić <[email protected]>
Don't strip media type parameters in data_uri plugin

Currently `Shrine.data_uri(io)` is returning a DataFile object, where
the #content_type attribut...

c3164c8057958320b4ca69dbe45900fb1b7ea39e authored about 6 years ago by Janko Marohnić <[email protected]>
Add :content_type analyzer to Shrine.mime_type_analyzers

Now it's possible to reuse extracting MIME type from the #content_type
attribute via

Shrine.m...

738ea9440440678165c3c2be7a2225853f055027 authored about 6 years ago by Janko Marohnić <[email protected]>
Exclude media type parameters in #extract_mime_type

The #content_type attribute of the input IO object, which equals to the
"Content-Type" request h...

3d481e4fdffa594189afb74003e41c702032f4eb authored about 6 years ago by Janko Marohnić <[email protected]>
Rename :default MIME type analyzer to :content_type

This naming makes much more sense, as it makes it explicit how the MIME
type gets extracted. Als...

e070794dc84126868e1ae086875d528ef99fb2e2 authored about 6 years ago by Janko Marohnić <[email protected]>
Don't print a warning when determine_mime_type is loaded with :default analyzer

The whole point of the :default determine_mime_type plugin analyzer is
to allow users to confirm...

edd28f6abbe1878cdef91760cc740b86120664ee authored about 6 years ago by Janko Marohnić <[email protected]>
Finish scanning before returning result in data_uri plugin

This way all scanning is done together in one sequence, instead of
sprinkled over the method.

197e3d1ed9fe274366ec577bc01c885f53e3c2ec authored about 6 years ago by Janko Marohnić <[email protected]>
Make S3#download and S3#open work with :sse_* options

Both S3#download and S3#open, in addition to the #get_object request,
are implicitly doing a #he...

62705baf928bc7709ed8f88b48cdd7a4b4e9266c authored about 6 years ago by Janko Marohnić <[email protected]>
add_metadata blocks get metadata in context (#313)

042e0ff918ac5fdee468e6b8d87b41919e4d1931 authored about 6 years ago by Jonathan Rochkind <[email protected]>
Add require in FileSystem storage docs as well

57128603b1fdc84cc2f33d95c6010428b70c60f8 authored about 6 years ago by Janko Marohnić <[email protected]>
Updated S3 storage documentation

Require dependencies prior to initialising.

541a9a9fd9f052f5512021dc6f8f0a15b31f0902 authored about 6 years ago by Igor Alexandrov <[email protected]>
Add missing changelog entry about file command fix

The change was made in https://github.com/shrinerb/shrine/pull/304.

8e3ba1b3e65ba012d8406c120181a3ef743ecc6a authored about 6 years ago by Janko Marohnić <[email protected]>
Merge branch 'hmistry-improve/s3docs'

b77c229bc6bc2f1fd6560df097dcd5d4a65d6988 authored about 6 years ago by Janko Marohnić <[email protected]>
Rephrase S3 request rate guidelines to be more precise

This section is now copied almost word-for-word from
https://docs.aws.amazon.com/AmazonS3/latest...

6443207f5464b7ca0f0bc72cb3aebd9b029e0e7e authored about 6 years ago by Janko Marohnić <[email protected]>
Use single quotes in JavaScript

3ca5c3e801e20c05728980c645d08df5da57c386 authored about 6 years ago by Janko Marohnić <[email protected]>
Missed another example where refresh_metadata should show using current context (#312)

c8fd9ecfb2d39af2d68e759be8c1b1cc5578b577 authored about 6 years ago by Jonathan Rochkind <[email protected]>
Use a guard raise cause for `bucket` argument in S3 (#311)

Before the change, it fails with a misleading error message mentioning
a missing `name` option....

cca7e2e81686fcac4bf1212a656414158be94313 authored about 6 years ago by Artur Petrov <[email protected]>
suggest passing in context to refresh_metadata! (#309)

0a35377c29fb5ff9b9ab990fa560e216865c4c9d authored about 6 years ago by Jonathan Rochkind <[email protected]>
Note that we're handling query parameters sent by Uppy

bf6d8a8eff45b917a9c4b25ff2dd24546c2d9620 authored about 6 years ago by Janko Marohnić <[email protected]>
Use "/" instead of window.location.origin in demo app

This conveys much better that we're using the endpoint of our app. It's
also shorter and doesn't...

5d9b686facf6593742e890d71829baf09ef283f9 authored about 6 years ago by Janko Marohnić <[email protected]>
Update demo app for Uppy 0.28

Uppy 0.28 now passes cookies to presign requests to the Companion
endpoint, so now we can remove...

4505897cc9b8175793099946f45f78f78ac59965 authored about 6 years ago by Janko Marohnić <[email protected]>
Improve examples for extracting metadata when doing direct uploads

2f8216858a98dd43f07be8c58f315d8731a76123 authored about 6 years ago by Janko Marohnić <[email protected]>
Outdent code blocks for RDoc

RDoc doesn't support indented code blocks.

6d9dc742bd92443c68486985e46b3c4abc300c8b authored about 6 years ago by Janko Marohnić <[email protected]>
Bump to 2.13.0

7fda88aed2b356ed78a7190bd9bcff8f951b238a authored about 6 years ago by Janko Marohnić <[email protected]>
Specify UTF-8 charset in presign_endpoint response

Some HTTP libraries rely on this information to return the response body
in correct encoding. On...

512ee37b1377a62d56262c48f070dbd1cf45e534 authored about 6 years ago by Janko Marohnić <[email protected]>
Force filename encoding to utf-8 in rack_file

Rack's multipart parser will return filename in binary encoding if it
has any non-ascii characte...

e002ad3936468ef592a58018c3e428c134e81849 authored about 6 years ago by Janko Marohnić <[email protected]>
Fail when file command returned error in stdout (#304)

It appears that the file command can also fail with a successful exit
status, in which case the...

d31bd2c1dbb812625e33f82ba764aa1fc95499ce authored about 6 years ago by Janko Marohnić <[email protected]>
Lock Rack to 1.6.x on MRI 2.1

Rack 2.0.x requires MRI >= 2.2.0.

a03cb9301f68863b291fc34d4a9c5e123c5fb2e4 authored about 6 years ago by Janko Marohnić <[email protected]>
Tweak in the previous commit

a6b8057d7eb0f11c6a9be2956c5db75f4bf3b7bc authored about 6 years ago by Janko Marohnić <[email protected]>
Add a code hint for Roda requirement

... to download endpoint plugin docs

517c998bffa7738af07695a1764ccddf24d240a1 authored about 6 years ago by Thomas Klemm <[email protected]>
Allow specifying :host with path prefix in S3#url

Now it's possible to do this:

s3.url("foo", host: "https://your-s3-host.com/prefix")
#=> "h...

835311fc421edf054efb42aa1309474a79965955 authored about 6 years ago by Janko Marohnić <[email protected]>
Revert adding bucket name to URL path when :host and :force_path_style is used

This change was introduced in Shrine 2.11.0, but it causes a regression
when using an endpoint t...

e24c4cf3f3119350e9ef08b97db57c02e8b473d7 authored about 6 years ago by Janko Marohnić <[email protected]>
Update demo app for Uppy 0.27.5

7a0771616bd171704a8d893b6dda7220ee4c28de authored about 6 years ago by Janko Marohnić <[email protected]>
Retain "inline" disposition in presign_endpoint example

That way the behaviour doesn't change, you only get the additional
filename.

043003e8c0955718503895e6507080a8e3fcb784 authored about 6 years ago by Janko Marohnić <[email protected]>
Encode filename for presign request in demo

fetch() doesn't properly URI-encode some characters (such as "%"), so
when Rack receives the req...

4c3227e31fd08d13d1bfa5e8c7289b41f86284a3 authored about 6 years ago by Janko Marohnić <[email protected]>
Say that upload was invalid when it's present but not a file in upload_endpoint

c32da0260d97350330c69115399d1cab1c329708 authored about 6 years ago by Janko Marohnić <[email protected]>
Add note that PUT presigns don't support :content_length_range

b4b62c77d7e33b4923b0d5b877b3664557501947 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix typo

fe2f6ade686325ac73728befc5c8ff1ac25634d4 authored over 6 years ago by Janko Marohnić <[email protected]>
Note that :content_type is required with DO

abdec2b89801f9f9e564e67a1bad4fce1d4d86f1 authored over 6 years ago by Janko Marohnić <[email protected]>
Don't use :success_action_status presign option

We don't need the response we get when we set :success_action_status to
"201", we already have t...

7cb33087a457915c5e955feeb86a846c8a3ff206 authored over 6 years ago by Janko Marohnić <[email protected]>
Don't show installation steps for an example

No need to do it, it's just an example, showing setup is out of the
scope.

129076bac83ecb62d5d8f16ee4e05bbde76463c9 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix typo in Readme (#301)

adaef7c46833412cd8bb4c15b474d8b0872883a4 authored over 6 years ago by Hiren Mistry <[email protected]>
Show how you can skip temporary storage

Some people have asked for the ability to skip temporary storage and
upload directly to permanen...

08026834c9f4c9584d996434b60fa078f2c690b8 authored over 6 years ago by Janko Marohnić <[email protected]>
Document that Attacher#promote accepts Shrine#upload options

05dc605de35ed76e938d6cd359a3fe1a3c8685c5 authored over 6 years ago by Janko Marohnić <[email protected]>
Allow Attacher#assign to receive options for Shrine#upload

This makes it possible to do things like overriding metadata, specifying
upload location, or pas...

0b46fa14aefde19b87540b7d0dd990de5791128e authored over 6 years ago by Janko Marohnić <[email protected]>
Add ability to manually override metadata on upload

This commit adds the :metadata option to Shrine#upload for overriding
extracted metadata on uplo...

bff641b96e57e8edfc7740e61481da3ad0b6e1af authored over 6 years ago by Janko Marohnić <[email protected]>
Document :upload_options for Shrine#upload

a87289af6bc3707005d6b14b8bab081f7bf16553 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix typo in code example

053e484e5b7c7b5af818b34c07966b0b322a295f authored over 6 years ago by Janko Marohnić <[email protected]>
Emphasize better metadata extraction with direct uploads

ffcbf1e3f3d335fe2579a3f51bd9eb477935c9b8 authored over 6 years ago by Janko Marohnić <[email protected]>
Improve documentation for direct uploads

* explain direct uploads in the README better
* show example of direct S3 uploads
* show how to ...

b5e7af6025d312ea755002d904a8651397c1148a authored over 6 years ago by Janko Marohnić <[email protected]>
Improve docs for metadata extraction of direct uploads

Add more advice on various strategies for metadata extraction.

7b3b71160aff6c1080d1ddb1f12c61534735488b authored over 6 years ago by Janko Marohnić <[email protected]>
Change notes regarding S3 performance with folder structure

f58b228c1100b6f5d422fe915f208d815e1b769c authored over 6 years ago by hmistry <[email protected]>
Add a note regarding S3 performance on storage folder structure

ae40124dba21c7bad268f8ef98b7017bbc592ba8 authored over 6 years ago by hmistry <[email protected]>
Fix broken link

Markdown parsers on GitHub and in RDoc don't handle hard-wrapped link
specifiers, so we make sur...

c1a5ce941c1531c5fa1ccbadc76c41c68f5101f8 authored over 6 years ago by Janko Marohnić <[email protected]>
Use Shrine#opts instead of Shrine.opts in infer_extension

376dafe0c307fccbf4fa708f03444ef1ce4e4ef0 authored over 6 years ago by Janko Marohnić <[email protected]>
Tweak infer_extension docs and implementation, add more tests, add

changelog entry

e0624d2c18d117287d36502392b5122c270efc35 authored over 6 years ago by Janko Marohnić <[email protected]>
Merge remote-tracking branch 'jrochkind/force_infer_extension'

652380a84d299339968e9c7660d1d9d0dc4c4be1 authored over 6 years ago by Janko Marohnić <[email protected]>
Improve the "Advantages of Shrine" guide a bit

0d5bded28003d99c6273413776c6ce59014c82da authored over 6 years ago by Janko Marohnić <[email protected]>
fix typo (#298)

4648b9a9c3412c5c42cf516f153e115e1490468f authored over 6 years ago by Dan <[email protected]>
infer_extension plugin gets a 'force' option

d5882cd3fbc8b858772c28e18b3f2f26a9ce2fc7 authored over 6 years ago by Jonathan Rochkind <[email protected]>
Update libvips links to point to the new location

The libvips project repositories have been moved from the "jcupitt" user
to the "libvips" organi...

0e5ec7a053276b7fe78417003376a528515b299a authored over 6 years ago by Janko Marohnić <[email protected]>
Reduce multiple method calls in some methods (#294)

a74938acf5cedd405267661fb03a4fd175a52a91 authored over 6 years ago by Hiren Mistry <[email protected]>
Improve some S3 tests

1a7d1679c1425cd67a6a9e7306fbab8deea5d912 authored over 6 years ago by Janko Marohnić <[email protected]>
Allow using custom signer for S3 object URLs

When wanting to serve private content through CloudFront, the S3 object
URLs need to be signed s...

4e6ca2e8e2909c73d9929ad309b80b5081674cb0 authored over 6 years ago by Janko Marohnić <[email protected]>
Add :public S3 initialize option for public uploads

Making uploads public consists of two things: setting "public-read" ACL
on upload and generating...

15c5f79820089df2bb8d308c8b11773b609ff7b5 authored over 6 years ago by Janko Marohnić <[email protected]>
Update CONTRIBUTING.md with more links for understanding the Shrine codebase

a26e0b6bb4a018e59bc041afb92c083e7ff2ce7a authored over 6 years ago by Janko Marohnić <[email protected]>
Link @jrochkind's walkthrough through the Shrine codebase

051f72622d4dc2dbce2f42e8e7c4251cd14ce8ab authored over 6 years ago by Janko Marohnić <[email protected]>
Fix inaccurate description of the Shrine class in the design guide

25cf8de92692b2c6b4016de6c2497062dc2701dd authored over 6 years ago by Janko Marohnić <[email protected]>
Specify enctype="multipart/form-data" in multiple files guide

This is not necessary when doing direct uploads, because in that case
files are not actually upl...

1c02ca379fb1144d8711067ff97faae51e8231b6 authored over 6 years ago by Janko Marohnić <[email protected]>
Use Aws::S3::Object#upload_stream for large non-file IO objects

aws-sdk-s3 1.14.0 added Aws::S3::Object#upload_stream, which uses
parallelized multipart upload ...

9d8fe7147805fd4925d05d7905db0ae99ae6ce56 authored over 6 years ago by Janko Marohnić <[email protected]>
Extend "Multiple Files" guide with instructions for static multiple file upload

557d82b1a9fffbfebacf945ef890783667db95cf authored over 6 years ago by Janko Marohnić <[email protected]>
Change aws-sdk-s3 version requirement to fix failing tests (#296)

bd7360e8be64badd7a4a1b965f275aee78fb2cff authored over 6 years ago by Hiren Mistry <[email protected]>
Fix typos (#293)

af8d9a3e113b15f82254aa787c5240eec28e0215 authored over 6 years ago by Hiren Mistry <[email protected]>
Remove wrong method comment (#292)

This method does NOT, ever, "uses S3's multi delete capabilities."

c84c46976fc87e45101dc93ca53b8d8b0ab79c4b authored over 6 years ago by Jonathan Rochkind <[email protected]>
Better unique ids for multiple file upload in demo

Date.now() returns the current time in milliseconds, but this isn't
strong enough to be a unique...

55cfd614d18e77ce5f43dd4c28d60cd907e92c47 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix a flaky test caused by concurrency

Aws::S3::Object#upload_file uploads multipart parts concurrently, so we
don't know in which orde...

7615856203e7625cec0e6e4fc5ce98395d75c6e4 authored over 6 years ago by Janko Marohnić <[email protected]>
Add suggestions for understanding the codebase

7d7c7bff5933944aa083b5c2ac34470fb35eb09e authored over 6 years ago by Janko Marohnić <[email protected]>
Minor documentation tweaks

caa1fb3594a34ab152000f69eae321395240226d authored over 6 years ago by Janko Marohnić <[email protected]>
Update CORS setup to match the one Uppy recommends

The "Aws S3" Uppy plugin recommends a different CORS configuration than
the one we copied from R...

5e337f76449f81d9dc270a2bc57be4b35ec09813 authored over 6 years ago by Janko Marohnić <[email protected]>
Link Vue.js article on the website

98e912d760e75d5056ee96968170cdbbabfe39b7 authored over 6 years ago by Janko Marohnić <[email protected]>
Add links to the uppy-s3_multipart gem

We also update the CORS configuration so that it works both for regular
and multipart uploads to...

d1191f1119138ab11e92609c9c9ccd1aa3b7b1b4 authored over 6 years ago by Janko Marohnić <[email protected]>
Remove step number from conclusion

a12d19195a668d605e0c2f0c1c838ab0d77dbd90 authored over 6 years ago by Janko Marohnić <[email protected]>
Link the wiki page in the README

82bd92ce68c7c38cbfceb3dce3455f65832caa43 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix module_include documentation typo (#289)

2012ee1fe243667d1e3a8461f9c8c0a1847143bb authored over 6 years ago by Juraj Kostolanský <[email protected]>
Bring back patch version in website title

e99ef5fb77c70d1eac587cc3c8425dfef66960e1 authored over 6 years ago by Janko Marohnić <[email protected]>
Bump to 2.12.0

9b957ffa09dd4956ef15b61f7e8bb513c52dd9c4 authored over 6 years ago by Janko Marohnić <[email protected]>
Fix more flaky S3 tests

aws-sdk-s3 uses threads when doing multipart uploads, so the order of
parts can be different.

b6a3f22205a22086afdd66fc886142acb73fe792 authored over 6 years ago by Janko Marohnić <[email protected]>
Merge branch 'hmistry-improve/multi-files-doc'

e6111d69811d4a510a295a4532d9e8d7863ee287 authored over 6 years ago by Janko Marohnić <[email protected]>
Further improvements to the "Multiple Files" guide

fbadabfe34387e67eff03e5ba407b4573394c27c authored over 6 years ago by Janko Marohnić <[email protected]>
Add missing tests for S3#upload with UploadedFile

d1ed5371261342ba7be18aac9616b4f560136fda authored over 6 years ago by Janko Marohnić <[email protected]>
Link shrine-azure on the website

f8628b6fb010abd16e92b2d6567a3be1889ced2c authored over 6 years ago by Janko Marohnić <[email protected]>
Don't reopen the UploadedFile unnecessarily in S3 storage

UploadedFile#open now always opens the file, meaning it will close an
already open file and reop...

0d56f87344e9c925f27d46f1aa4334c406587d8e authored over 6 years ago by Janko Marohnić <[email protected]>
Fix some flaky tests

Aws::S3::Object#upload_file does multipart upload in threads, so on
JRuby this test will fail if...

1ac7e8ae18cdfe92141b93e14bd562f20b150459 authored over 6 years ago by Janko Marohnić <[email protected]>
Improve S3 tests with recorded requests

7bf60fafc2903c4d3d466280dac7fbd381b1d797 authored over 6 years ago by Janko Marohnić <[email protected]>
Ignore nil values when assigning remote URL and add CHANGELOG entries

a4de658b4af8b85fedef7e4855aadf3c3ebe69bd authored over 6 years ago by Janko Marohnić <[email protected]>
Update external.yml (#286)

b0ad106ae31a2f5270a8c3b12dc363ab7c91b393 authored over 6 years ago by Frédéric Planté <[email protected]>
Ignore nil values when assigning data URIs (#285)

979ad192b07fe80e23e71f971507824b30c4346f authored over 6 years ago by Andrew Hooker <[email protected]>