Closed vipulnsward closed 5 months ago
The recent updates introduce a new method get_document_conversion_formats_info
to the Uploadcare::ConversionApi
class, allowing users to retrieve document conversion formats from the Uploadcare API. Additionally, a new test case and VCR cassette are added to support this method. The dependency version of uploadcare-ruby
is updated to 4.4.2
, and RuboCop configuration is adjusted to exclude spec files from the Metrics/ModuleLength
rule.
Files | Change Summary |
---|---|
CHANGELOG.md |
Added a summary of the new get_document_conversion_formats_info method to the "Unreleased" section. |
lib/uploadcare/rails/api/rest/conversion_api.rb |
Added the get_document_conversion_formats_info method to retrieve document conversion formats. |
spec/fixtures/vcr_cassettes/conversion_api_get_document_formats.yml |
Captured HTTP interaction for retrieving document conversion formats. |
spec/uploadcare/rails/api/rest/conversion_api_spec.rb |
Added test cases for the get_document_conversion_formats_info method. |
uploadcare-rails.gemspec |
Updated uploadcare-ruby dependency version from 4.4.1 to 4.4.2 . |
.rubocop.yml |
Excluded files under the spec directory from the Metrics/ModuleLength rule. |
sequenceDiagram
participant User
participant UploadcareRails
participant UploadcareAPI
User->>UploadcareRails: Call get_document_conversion_formats_info
UploadcareRails->>UploadcareAPI: GET /conversion/formats/document/
UploadcareAPI-->>UploadcareRails: Return supported formats (e.g., jpg, avif, bmp, gif)
UploadcareRails-->>User: Return supported formats
In the code where data flows, New formats bloom like a rose. 🌹 From API to test and spec, Conversion magic we now check. With RuboCop rules set aside, Our gem's version takes a ride. Uploadcare's path is clear and bright, Document formats take flight! 🚀
Description
For
Uploadcare::ConversionApi
addedget_document_conversion_formats_info
method to get the possible document conversion formats.Checklist
Summary by CodeRabbit
New Features
Chores
uploadcare-ruby
dependency version from4.4.1
to4.4.2
.Tests
Style
spec
directory from theMetrics/ModuleLength
RuboCop rule.