-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature : Allow resizing of files before downloading (#22)
* chore: Update `bundler`, `rake` and `Gemfile.lock` Updates the gem dependencies. Update bundler and rake. * feat: Add resize_to_limit filter Allow resizing of zipped files before downloading. * fix: Fix dependency on `service_url` According to the documentation, `service_url` shouldn't be used directly. Replace the call to `service_url` with `url_for`. * fix: send `url_for` isn't supported by all services Sending the `url_for` method isn't supported by all services. * chore: Update `CHANGELOG.yml` Update the `CHANGELOG.yml` for version 0.3.4 with the resize feature. * chore: Update `README.md` Update the `README.md` with details on how to use the resize feature. * chore: Bump version number Increase the version number to 0.3.4. Add my name to the authors. * chore: Document `resize_to_limit` filter Document the `resize_to_limit` filter that can be applied to images before being zipped. * feat: Add a test for `resize_to_limit` Add a test to ensure the behavior of resize_to_limit is working.
- Loading branch information
1 parent
84311be
commit 18b7443
Showing
8 changed files
with
176 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
0.3.4: | ||
- add resize before download capability | ||
0.3.2: | ||
- correct rubyzip dependency | ||
0.3.1: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ require 'active_storage/send_zip/version' | |
Gem::Specification.new do |spec| | ||
spec.name = 'active_storage-send_zip' | ||
spec.version = ActiveStorage::SendZip::VERSION | ||
spec.authors = ['Alexandre Rousseau'] | ||
spec.authors = ['Alexandre Rousseau', 'Maxime `biximilien` Gauthier'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'Create a zip from one or more Active Storage objects' | ||
|
@@ -37,9 +37,9 @@ Gem::Specification.new do |spec| | |
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_development_dependency 'bundler', '~> 1.17' | ||
spec.add_development_dependency 'bundler' | ||
spec.add_development_dependency 'minitest', '~> 5.0' | ||
spec.add_development_dependency 'rake', '~> 13.0' | ||
spec.add_development_dependency 'rake' | ||
spec.add_dependency 'rails', '> 5.2' | ||
spec.add_dependency 'rubyzip', '< 3.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
module ActiveStorage | ||
module SendZip | ||
# The version of this gem | ||
VERSION = '0.3.3' | ||
VERSION = '0.3.4' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.