Closed vipulnsward closed 2 months ago
The recent changes enhance URL generation flexibility in the AkamaiGenerator
class within Ruby's Uploadcare
library. Updates include introducing an optional wildcard
parameter, correcting deprecation warnings, and aligning import statements and test specifications with these modifications.
File Path | Change Summary |
---|---|
CHANGELOG.md , README.md |
Introducing wildcard in AkamaiGenerator , renaming AmakaiGenerator to AkamaiGenerator . |
lib/.../uploadcare.rb , lib/.../akamai_generator.rb , spec/.../akamai_generator_spec.rb |
Updating import statements, class names, and adding new functionality for URL generation with wildcard. |
lib/.../file.rb , spec/.../file_spec.rb |
Correcting typos in deprecation warning messages for datetime_stored . |
🐇✨ In the code where bytes dance, A rabbit hopped, took a glance. Renamed a class, fixed a line, With a wildcard, URLs now shine. Cheers to changes, small and grand, Crafted gently by our hand. 🌟🐾
CHANGELOG.md (44)
Near line 5: Possible typo: you repeated a word Context: # Changelog ## Unreleased ### Added * Added `AWS Rekognition Moderation` Add-On. #... --- Near line 6: Possible spelling mistake found. Context: ...gelog ## Unreleased ### Added * Added `AWS Rekognition Moderation` Add-On. ### Changed * File... --- Near line 9: Only proper nouns start with an uppercase character (there are exceptions for headlines). Context: ...tion Moderation` Add-On. ### Changed * File attribute `datetime_stored` is deprecat... --- Near line 9: Possible spelling mistake found. Context: ...` Add-On. ### Changed * File attribute `datetime_stored` is deprecated and will warn on ... --- Near line 15: Possible spelling mistake found. Context: ...ies. ## Unreleased ### Fixed * Throw `AuthError` if current public key or secret key co... --- Near line 16: Possible spelling mistake found. Context: ...essing any of the APIs. * Fixed typo in `AkamaiGenerator` class name from `AmakaiGenerator`. ##... --- Near line 16: Possible spelling mistake found. Context: ...po in `AkamaiGenerator` class name from `AmakaiGenerator`. ### Added * Added an optional `wildc... --- Near line 18: Possible typo: you repeated a word Context: ...class name from `AmakaiGenerator`. ### Added * Added an optional `wildcard` boolean paramete... --- Near line 19: Possible spelling mistake found. Context: ...nal `wildcard` boolean parameter to the `generate_url` method of `AkamaiGenerator`. ## 4.4.0... --- Near line 19: Possible spelling mistake found. Context: ...rameter to the `generate_url` method of `AkamaiGenerator`. ## 4.4.0 — 2024-03-09 ### Breaking ... --- Near line 31: Possible spelling mistake found. Context: ...rning proper error message when raising RequestError in poll_upload_response, to hint to use... --- Near line 33: Possible spelling mistake found. Context: ...* Fix documentation about original file url on simple file upload. ### Changed * S... --- Near line 36: Possible spelling mistake found. Context: ...ple file upload. ### Changed * Support params in Rest client and in file info method,... --- Near line 36: Possible spelling mistake found. Context: ...le info method, to allow passing custom params like "include=appdata" in `Uploadcare::... --- Near line 36: Possible spelling mistake found. Context: ...low passing custom params like "include=appdata" in `Uploadcare::File.file` calls. Clos... --- Near line 36: Possible spelling mistake found. Context: ...custom params like "include=appdata" in `Uploadcare::File.file` calls. Closes #132. ## 4.... --- Near line 43: Possible spelling mistake found. Context: ...ixed * Updated the version of the REST Api for conversion clients (closes #135). ... --- Near line 49: Possible spelling mistake found. Context: ...ude sending blank values in the `store` param. ## 4.3.4 — 2023-05-16 ### Changed ... --- Near line 56: Possible spelling mistake found. Context: ...o` as the default value for the `store` param. ## 4.3.3 — 2023-04-14 ### Changed ... --- Near line 67: Possible spelling mistake found. Context: ...dded * Add a new `file_info` method to retreive file information without the secret key... --- Near line 73: Possible spelling mistake found. Context: ...2 — 2023-03-28 ### Changed * Improved readme to look better at ruby-doc ## 4.3.1 — ... --- Near line 80: Possible missing preposition found. Context: ...Changed - Update the gem description - Allow ENV keys to be configured after the gem... --- Near line 86: Possible spelling mistake found. Context: ...port of new ruby versions ### Breaking Сhanges - Drop support of unmaintainable Ruby ... --- Near line 89: Possible spelling mistake found. Context: ....4, 2.5, 2.6). - Replace unmaintainable `api_struct` with `uploadcare-api_struct` #... --- Near line 97: Possible spelling mistake found. Context: ...022-12-29 This version supports latest Uploadcare REST API — [v0.7](https://uploadcare.co... --- Near line 104: Possible spelling mistake found. Context: ...ence/object-recognition/) ### Breaking Сhanges - For `Uploadcare::File#info` - File... --- Near line 108: Possible spelling mistake found. Context: ...`video_info` fields anymore - Removed `rekognition_info` in favor of `appdata` - Paramet... --- Near line 120: In American English, abbreviations like “etc.” require a period. Context: ...s mime-type, image (dimensions, format, etc), video information (duration, format, ... --- Near line 120: In American English, abbreviations like “etc.” require a period. Context: ...information (duration, format, bitrate, etc), audio information, etc - Field `met... --- Near line 120: In American English, abbreviations like “etc.” require a period. Context: ...rmat, bitrate, etc), audio information, etc - Field `metadata` that includes arbi... --- Near line 122: Possible spelling mistake found. Context: ...tadata associated with a file - Field `appdata` that includes dictionary of applicatio... --- Near line 126: Possible spelling mistake found. Context: ...th these applications ### Added - Add Uploadcare API interface: - `Uploadcare::FileM... --- Near line 126: This phrase is redundant (‘I’ stands for ‘interface’). Use simply “API”. Context: ...plications ### Added - Add Uploadcare API interface: - `Uploadcare::FileMetadata` -... --- Near line 130: Possible spelling mistake found. Context: ...Added an option to delete a Group - For `Uploadcare::File` add `local_copy` and `remote_cop... --- Near line 138: Possible spelling mistake found. Context: ... ## 3.3.1 - 2022-04-19 - Fixed README: `Uploadcare::URLGenerators::AmakaiGenerator` > `Upl... --- Near line 143: Possible spelling mistake found. Context: ...nstants ## 3.3.0 — 2022-04-08 - Added `Uploadcare::URLGenerators::AmakaiGenerator`. Use c... --- Near line 152: Possible typo: you repeated a word Context: ...tureVerifier` ## 3.1.1 — 2021-10-13 - Fixed `Uploadcare::File#store` - Fixed `Uploadcare::File#delete` ## 3.1.0 — 2... --- Near line 158: Possible spelling mistake found. Context: ... (`variations`, `video_info`, `source`, `rekognition_info`) - Added an option to add custom ... --- Near line 163: The official name of this software platform is spelled with a capital “H”. Context: ... — 2021-04-15 - Replace Travis-CI with Github Actions - Automate gem pushing ## 3.0.... --- Near line 168: Possible spelling mistake found. Context: ... - Added better pagination methods for `GroupList` & `FileList` - Improved documentation ... --- Near line 174: Possible spelling mistake found. Context: ...ded better pagination and iterators for `GroupList` & `FileList` ## 3.0.2-dev — 2020-03-1... --- Near line 198: Possible spelling mistake found. Context: ...Added - Client wrappers for REST API - Serializers for REST API - Client wrappers for Uplo... --- Near line 200: Possible spelling mistake found. Context: ... API - Client wrappers for Upload API - Serializers for Upload API - rdoc documentation --- Near line 201: Possible spelling mistake found. Context: ...load API - Serializers for Upload API - rdoc documentation
CHANGELOG.md (3)
`16-16`: Corrected class name from "AmakaiGenerator" to "AkamaiGenerator". --- `15-15`: Ensure the addition of the `AuthError` handling is documented and tested as this change was not explicitly mentioned in the PR summary. --- `19-19`: Added an optional `wildcard` parameter to the `generate_url` method of `AkamaiGenerator`.
Thank you @vipulnsward, that's so good!
Description
Checklist
Summary by CodeRabbit
New Features
wildcard
parameter inAkamaiGenerator
.build_acl
method for ACL construction based onwildcard
.Bug Fixes
datetime_stored
property.Documentation
Refactor
AmakaiGenerator
toAkamaiGenerator
across various files.Tests
wildcard
parameter in URL generation.