Releases: uploadcare/uploadcare-rails
Releases · uploadcare/uploadcare-rails
Version 3.3.0
Guarantee support of maintainable versions of Ruby and Rails:
- Drop support of unmaintainable Ruby 2.4, 2.5, 2.6 and Rails before 6.0.
- Add support of Ruby 3.1 and 3.2 and Rails 7.0.
Version 3.0.0-rc
This version supports latest Uploadcare REST API — v0.7, which introduces new file management features:
If you have Ruby version >= 3, then you probably will get error:
ArgumentError: wrong number of arguments (given 2, expected 1)
To fix this errors, add this line to your application's Gemfile:
gem 'dry-configurable', '0.13.0'
and run bundle install
Version 2.1.1
Fixed Rails 4 test failure by enforcing https.
Version 2.1.0
Added
- Option
signing_secret
in theUploadcare::WebhookApi
.
Version 2.0.0
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 File Uploader 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 to config/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 asUploadcare::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 in uploadcare_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
v1.2.1
Allow to use multiple files or groups (#74)
Version 1.2.0-alpha2
Changed
- Gem now reports us your
uploadcare-rails
andrails
versions using the User-Agent header (overridable via config) uploadcare-ruby
gem version bumped to 1.2.x
Version 1.2.0-alpha
- Allow gem in rails 5.2
- Update default widget version to 3.x
- Remove tests against Ruby 2.0 and 2.1 that had reached their EOL
Version 1.1.0
Added
- Removed widget from the asset pipeline. It is expected to use helper or to append to the asset pipeline mannualy.
- Operations for image_tag helpers
- Relaxed dependencies to allow Rails < 5.1.0
Fixed
- Bug with creating object with empty file or file_group.
- Workaround to remove unnecessery API cals for groups of images.
bug fixes and minor updates for specs
- active_admin/devise gem
- formtastic helpers updated
- simple_form helpers updated to match new API