Skip to content

Commit

Permalink
Version 3.3.1 (#122)
Browse files Browse the repository at this point in the history
* Update description and homepage

* Fix rubocop offences

* Change the priority of multiple option

* Update the changelog
  • Loading branch information
kraft001 authored Mar 20, 2023
1 parent fd9a83f commit 3003d25
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based now on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 3.3.1 — 2023-03-20

* Update gem description
* Respect data-multiple in helper options (https://github.com/uploadcare/uploadcare-rails/issues/119)

## 3.3.0 — 2023-03-16

Guarantee support of maintainable versions of Ruby and Rails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def uploadcare_uploader_field(object_name, method_name, options = {})
object_name,
method_name,
uploadcare_uploader_options(
options.merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
options.reverse_merge(multiple: uploadcare_uploader_multiple?(object_name, method_name).presence)
)
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/uploadcare/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Uploadcare
module Rails
VERSION = '3.3.0'
VERSION = '3.3.1'
end
end
16 changes: 16 additions & 0 deletions spec/uploadcare/rails/action_view/uploadcare_uploader_tags_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
end
end

it 'includes a hidden field with multiple param' do
tag = uploadcare_uploader_field(:post, :title, multiple: true)

[
'<input',
'role="uploadcare-uploader"',
'type="hidden"',
'name="post[title]"',
'id="post_title"',
'data-multiple="true"',
'/>'
].each do |fragment|
expect(tag).to include(fragment)
end
end

it 'includes a hidden field tag' do
tag = uploadcare_uploader_field_tag(:title)

Expand Down
9 changes: 5 additions & 4 deletions uploadcare-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 2.7.0'

gem.name = 'uploadcare-rails'
gem.authors = ['@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)']
gem.authors = ['@dmitrijivanchenko (Dmitrij Ivanchenko), @T0mbery (Andrey Aksenov)',
'kraft001 (Konstantin Rafalskii)']
gem.email = ['hello@uploadcare.com']
gem.summary = 'Rails gem for Uploadcare'
gem.description = <<~DESCRIPTION
Rails wrapper for Uploadcare service.
Based on uploadcare-ruby gem (https://github.com/uploadcare/uploadcare-ruby)
Rails API client (based on uploadcare-ruby) that handles uploads
and further operations with files by wrapping Uploadcare Upload and REST APIs.
DESCRIPTION
gem.metadata = {
'github' => 'https://github.com/uploadcare/uploadcare-rails',
'issue_tracker' => 'https://github.com/uploadcare/uploadcare-rails/issues',
'rubygems_mfa_required' => 'true'
}
gem.homepage = 'https://uploadcare.com/docs/integrations/'
gem.homepage = 'https://github.com/uploadcare/uploadcare-rails'
gem.license = 'MIT'

gem.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.rdoc']
Expand Down

0 comments on commit 3003d25

Please sign in to comment.