Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a test for ActiveStorage::Blob#image? and ActiveStorage::Blob#video? | Shuhei Kitagawa | 2018-01-29 | 1 | -0/+12 |
| | |||||
* | Use assert_predicate and assert_not_predicate | Daniel Colson | 2018-01-25 | 3 | -21/+21 |
| | |||||
* | Extract content types from blob data | George Claghorn | 2018-01-15 | 3 | -3/+36 |
| | |||||
* | Extract Analyzable and Representable concerns | George Claghorn | 2018-01-10 | 3 | -3/+3 |
| | |||||
* | Allow overriding filename in `Blob#service_url` | Rosa Gutierrez | 2018-01-08 | 1 | -3/+14 |
| | | | | | | | This is useful when we have several representations for the same underlying file, each one with a different name, and we need to provide a custom download URL based on that name and not that of the underlying file. | ||||
* | Force content disposition to attachment for specific content types | Rosa Gutierrez | 2018-01-05 | 1 | -0/+9 |
| | | | | | | | | | | | | | | In this way we avoid HTML, XML, SVG and other files that can be rendered by the browser to be served inline by default. Depending on the origin from where these files are served, this might lead to XSS vulnerabilities, and in the best case, to more realistic phishing attacks and open redirects. We force it rather than falling back to it when other disposition is not provided. Otherwise it would be possible for someone to force inline just by passing `disposition=inline` in the URL. The list of content types to be served as attachments is configurable. | ||||
* | Restore support for the -layers transformation | George Claghorn | 2018-01-02 | 1 | -0/+8 |
| | |||||
* | Add support for combined MiniMagick transformations | Robert Glaser | 2017-12-22 | 1 | -0/+14 |
| | |||||
* | Convert non-web image (e.g. PSD) variants to PNG | George Claghorn | 2017-12-18 | 1 | -9/+19 |
| | |||||
* | Restrict variants to variable image blobs | George Claghorn | 2017-12-15 | 1 | -0/+6 |
| | |||||
* | Purge variants with their blobs | George Claghorn | 2017-12-02 | 1 | -1/+9 |
| | |||||
* | Provide attachment writers | George Claghorn | 2017-11-20 | 1 | -0/+32 |
| | | | | | | | | | | | | | Permit creating a record and attaching files in a single step. # Before: User.create!(user_params.except(:avatar)).tap do |user| user.avatar.attach(user_params[:avatar]) end # After: User.create!(user_params) [Yoshiyuki Hirano & George Claghorn] | ||||
* | Permit attaching files to new records | George Claghorn | 2017-11-19 | 1 | -0/+44 |
| | | | | Closes #31164. | ||||
* | Fix ASt CI failure with rack-test 0.7.1 | Ryuta Kamizono | 2017-11-20 | 1 | -1/+1 |
| | | | | Due to https://github.com/rack-test/rack-test/commit/5fd3631078e7c73aaed7d4371f70fb2a79384be9. | ||||
* | Introduce ActiveStorage::Attached::{One,Many}#detach | George Claghorn | 2017-11-14 | 1 | -0/+26 |
| | |||||
* | Preserve existing metadata when analyzing a blob | George Claghorn | 2017-11-13 | 1 | -0/+25 |
| | | | | Closes #31138. | ||||
* | Extract metadata from images and videos | George Claghorn | 2017-10-22 | 1 | -1/+58 |
| | |||||
* | Introduce ActiveStorage::Blob#representation | George Claghorn | 2017-10-12 | 2 | -0/+43 |
| | |||||
* | Replace variation key use with SHA256 of key to prevent long filenames | khall | 2017-10-05 | 1 | -0/+5 |
| | | | | | | | If a variant has a large set of options associated with it, the generated filename will be too long, causing Errno::ENAMETOOLONG to be raised. This change replaces those potentially long filenames with a much more compact SHA256 hash. Fixes #30662. | ||||
* | Preview PDFs and videos | George Claghorn | 2017-09-28 | 2 | -3/+41 |
| | |||||
* | Add `with_attached_*` scope to `has_one_attached` macro | Yoshiyuki Hirano | 2017-09-19 | 1 | -0/+13 |
| | | | | | * For avoiding N+1 problem, added `with_attached_*` scope to `has_one_attached` macro. | ||||
* | Fix replacing a singular attachment | George Claghorn | 2017-08-29 | 1 | -0/+25 |
| | |||||
* | Encode Content-Disposition filenames according to RFC 2231 | George Claghorn | 2017-08-21 | 2 | -1/+33 |
| | | | | Closes #30134. | ||||
* | DRY | George Claghorn | 2017-08-20 | 1 | -1/+1 |
| | |||||
* | Rename ActiveStorage::Filename#extname to extension_with_delimiter | George Claghorn | 2017-08-20 | 1 | -0/+18 |
| | |||||
* | Add missing test for Blob#purge | Jon Moss | 2017-08-17 | 1 | -0/+7 |
| | |||||
* | Move test to its proper place | George Claghorn | 2017-08-14 | 1 | -0/+38 |
| | | | | ActiveStorage::Filename is a model, so its test case belongs in test/models. | ||||
* | Should escape regexp wildcard character `.` | Koichi ITO | 2017-08-14 | 1 | -2/+2 |
| | |||||
* | Use frozen string literal in Active Storage | Koichi ITO | 2017-08-12 | 3 | -0/+6 |
| | |||||
* | Make activestorage treat Rack::Test::UploadedFile just like ↵ | Isaac Betesh | 2017-08-11 | 1 | -1/+7 |
| | | | | ActionDispatch::Http::UploadedFile | ||||
* | Run Active Storage tests in CI (#30144) | George Claghorn | 2017-08-10 | 1 | -7/+0 |
| | |||||
* | Fix ruby warnings | yuuji.yaginuma | 2017-08-05 | 1 | -3/+3 |
| | | | | | | | | | | This fixes following warnings: ``` test/models/variant_test.rb:11: warning: ambiguous first argument; put parentheses or a space even after `/' operator lib/active_storage/attached/macros.rb:63: warning: instance variable @active_storage_attached_highlights not initialized lib/active_storage/attached/macros.rb:25: warning: instance variable @active_storage_attached_avatar not initialized ``` | ||||
* | Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58' | Rafael Mendonça França | 2017-07-31 | 3 | -0/+198 |
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58 |