Skip to content

Commit

Permalink
Bump version to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timcraft committed Jul 24, 2024
1 parent 7ce824a commit 2d3e6ad
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# 5.0.0

* Added a `fill` field option to specify how to fill a field. For example:

class ExampleForm < Formeze::Form
field :year, required: false, fill: ->{ _1.date&.year }
end

* Added functionality for defining field specific error messages via i18n.

Add translations to your locale files like this:

ExampleForm:
errors:
comments:
required: 'are required'

* Removed support for older rubies. **Required ruby version is now 3.0.0**

* Changed from cgi to rack for parsing form data, adding support for parsing
requests with different methods e.g. PUT and PATCH instead of just POST.

Whilst this should largely be backwards compatible there are some differences,
for example uploaded files will be instances of `Rack::Multipart::UploadedFile`
instead of `StringIO` instances as they were before.

* Changed the default blank value to `nil`

# 4.3.0

* Added dependency on cgi gem
Expand Down
6 changes: 3 additions & 3 deletions formeze.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Gem::Specification.new do |s|
s.name = 'formeze'
s.version = '4.3.0'
s.version = '5.0.0'
s.license = 'LGPL-3.0'
s.platform = Gem::Platform::RUBY
s.authors = ['Tim Craft']
s.email = ['[email protected]']
s.homepage = 'https://github.com/readysteady/formeze'
s.description = 'Ruby gem for validating form data'
s.description = 'Ruby gem for parsing and validating form data'
s.summary = 'See description'
s.files = Dir.glob('lib/**/*.rb') + %w(CHANGES.md LICENSE.txt README.md formeze.gemspec)
s.required_ruby_version = '>= 2.4.0'
s.required_ruby_version = '>= 3.0.0'
s.require_path = 'lib'
s.metadata = {
'homepage' => 'https://github.com/readysteady/formeze',
Expand Down

0 comments on commit 2d3e6ad

Please sign in to comment.