October 4, 2021
Ruby integration v3.1.1
{ruby}
{integration}
- Fix
Uploadcare::File#delete
- Fix
Uploadcare::File#store
https://github.com/uploadcare/uploadcare-ruby/releases/tag/v3.1.1
Ruby on Rails integration v2.0.0 — rewrote gem from scratch
{BREAKING}
{rails}
{integration}
Major release. Covers 100% of Uploadcare APIs. Based on Ruby gem v3. Has an example app.
2.x is not backward compatible with 1.x.
Added:
- Add Uploadcare API interface:
Uploadcare::FileApi
Uploadcare::UploadApi
Uploadcare::GroupApi
Uploadcare::ConversionApi
Uploadcare::ProjectApi
Uploadcare::WebhookApi
- Add
uploadcare_widget_tag
helper for views - Add methods
File#store
,File#delete
,File#load
- Add methods
Group#transform_file_urls
,Group#store
,Group#load
Changed:
- Change the uploading widget view helpers
- Rename
has_uploadcare_file
->mount_uploadcare_file
- Rename
has_uploadcare_group
->mount_uploadcare_file_group
- Change generated config path from
config/uploadcare.yml
toconfig/initializers/uploadcare.rb
and add more options - Rename the class
Uploadcare::Rails::Settings
toUploadcare::Rails::Configuration
- Rename the class
Uploadcare::Rails::Operations
toUploadcare::Rails::Transformations::ImageTransformations
. - Configuration object is available as
Uploadcare::Rails.configuration
now. - Change methods
File#url
->File#transform_url
- Change methods
Group#urls
->Group#file_urls
- Change methods
Group#load_data
->Group#load
Removed:
- Remove
uploadcare_uploader_tag
helper - Remove
uploadcare_multiple_uploader_field
helper - Remove
uploadcare_single_uploader_field
helper - Remove
uploadcare_uploader_options
(now options are included inuploadcare_widget_tag
) - Remove
FormBuilder
support - Remove
Formtastic
support - Remove
SimpleForm
support - Remove caching files and groups on delete
- Remove callback
ruby after_save after_save "store_#{ attribute }".to_sym
. Now managed by thedo_not_store
option inconfig/initializers/uploadcare.rb
- Remove methods
File#prepared_operations
,File#to_builder
,File#to_json
,File#as_json
,File#marshal_dump
,File#image
- Remove methods
Group#cache_data
,Group#to_json
,Group#as_json
,Group#map_files
,Group#load_data
,Group#marshal_dump
https://github.com/uploadcare/uploadcare-rails/releases/tag/v2.0.0