Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #48 from ministryofjustice/prepare-version-4.2.0
Browse files Browse the repository at this point in the history
Prepare version 4.2.0
  • Loading branch information
jsugarman authored Jun 16, 2021
2 parents e6d8809 + 76da342 commit 011e35b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 73 deletions.
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
# 4.2.0

* BREAKING CHANGE: drop support for [End of life rails versions](https://endoflife.date/rails), name less that Rails 5.2

* Fixes deprecation warnings when using rails 6.1, which may break in rails 6.2.

```
DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated.
Please call `ActiveModel::Errors#add` instead.
```
```
DEPRECATION WARNING: Calling `clear` to an ActiveModel::Errors message array in order to delete all errors is deprecated.
Please call `ActiveModel::Errors#delete` instead.
```
```
DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will be removed in Rails 6.2.
To achieve the same use:
errors.attribute_names
```

# 4.1.0

* Markup will produce inputs with `type="text" inputmode="numeric"`.
* Markup will produce inputs with `type="text" inputmode="numeric"`.

These are semantically correct and provides a better experience in most browsers, including mobile. More details in [this thread](https://github.com/alphagov/govuk-frontend/issues/1449#issuecomment-504006087)

This change **might** break your code if you target the input (in javascript, CSS or cucumber for example) by `type="number"`.
Expand Down
146 changes: 77 additions & 69 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,135 +1,143 @@
PATH
remote: .
specs:
gov_uk_date_fields (4.1.0)
rails (>= 5.0.7.2)
gov_uk_date_fields (4.2.0)
rails (>= 5.2)

GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.7.2)
actionpack (= 5.0.7.2)
nio4r (>= 1.2, < 3.0)
websocket-driver (~> 0.6.1)
actionmailer (5.0.7.2)
actionpack (= 5.0.7.2)
actionview (= 5.0.7.2)
activejob (= 5.0.7.2)
actioncable (5.2.6)
actionpack (= 5.2.6)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.7.2)
actionview (= 5.0.7.2)
activesupport (= 5.0.7.2)
rack (~> 2.0)
rack-test (~> 0.6.3)
actionpack (5.2.6)
actionview (= 5.2.6)
activesupport (= 5.2.6)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.7.2)
activesupport (= 5.0.7.2)
actionview (5.2.6)
activesupport (= 5.2.6)
builder (~> 3.1)
erubis (~> 2.7.0)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.0.7.2)
activesupport (= 5.0.7.2)
activejob (5.2.6)
activesupport (= 5.2.6)
globalid (>= 0.3.6)
activemodel (5.0.7.2)
activesupport (= 5.0.7.2)
activerecord (5.0.7.2)
activemodel (= 5.0.7.2)
activesupport (= 5.0.7.2)
arel (~> 7.0)
activesupport (5.0.7.2)
activemodel (5.2.6)
activesupport (= 5.2.6)
activerecord (5.2.6)
activemodel (= 5.2.6)
activesupport (= 5.2.6)
arel (>= 9.0)
activestorage (5.2.6)
actionpack (= 5.2.6)
activerecord (= 5.2.6)
marcel (~> 1.0.0)
activesupport (5.2.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
ansi (1.5.0)
arel (7.1.4)
arel (9.0.0)
awesome_print (1.7.0)
builder (3.2.3)
builder (3.2.4)
byebug (10.0.2)
coderay (1.1.2)
concurrent-ruby (1.1.4)
crass (1.0.4)
erubis (2.7.0)
concurrent-ruby (1.1.9)
crass (1.0.6)
erubi (1.10.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (0.9.5)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
loofah (2.2.3)
loofah (2.10.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
metaclass (0.0.4)
method_source (0.8.2)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
mini_mime (1.1.0)
mini_portile2 (2.5.3)
minitest (5.14.4)
minitest-reporters (1.1.7)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
mocha (1.1.0)
metaclass (~> 0.0.1)
nio4r (2.5.0)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
nio4r (2.5.7)
nokogiri (1.11.7)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
pg (1.2.3)
pry (0.11.0)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
pry-byebug (3.6.0)
byebug (~> 10.0)
pry (~> 0.10)
rack (2.0.6)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.7.2)
actioncable (= 5.0.7.2)
actionmailer (= 5.0.7.2)
actionpack (= 5.0.7.2)
actionview (= 5.0.7.2)
activejob (= 5.0.7.2)
activemodel (= 5.0.7.2)
activerecord (= 5.0.7.2)
activesupport (= 5.0.7.2)
racc (1.5.2)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.6)
actioncable (= 5.2.6)
actionmailer (= 5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
activemodel (= 5.2.6)
activerecord (= 5.2.6)
activestorage (= 5.2.6)
activesupport (= 5.2.6)
bundler (>= 1.3.0)
railties (= 5.0.7.2)
railties (= 5.2.6)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.1)
actionpack (~> 5.x)
actionview (~> 5.x)
activesupport (~> 5.x)
rails-dom-testing (2.0.2)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.0.7.2)
actionpack (= 5.0.7.2)
activesupport (= 5.0.7.2)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.2.6)
actionpack (= 5.2.6)
activesupport (= 5.2.6)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.3)
thor (>= 0.19.0, < 2.0)
rake (13.0.3)
ruby-progressbar (1.8.1)
sprockets (3.7.2)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.3)
thor (1.1.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
tzinfo (1.2.9)
thread_safe (~> 0.1)
websocket-driver (0.6.5)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.4)
websocket-extensions (0.1.5)

PLATFORMS
ruby
Expand Down
5 changes: 3 additions & 2 deletions gov_uk_date_fields.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ require "gov_uk_date_fields/version"
Gem::Specification.new do |s|
s.name = "gov_uk_date_fields"
s.version = GovUkDateFields::VERSION
s.date = GovUkDateFields::VERSION_RELEASED
s.authors = ["Stephen Richards","Joel Sugarman"]
s.email = ["stephen@stephenrichards.eu"]
s.email = ["stephen[email protected]","[email protected]"]
s.homepage = "https://github.com/ministryofjustice/gov_uk_date_fields"
s.summary = "Enable day-month-year text edit fields for form date entry"
s.description = "Provides acts_as_gov_uk_date to mark Rails model attributes " +
Expand All @@ -20,5 +21,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.test_files = Dir["test/**/*"]

s.add_dependency 'rails', '>= 5.0.7.2'
s.add_dependency 'rails', '>= 5.2'
end
3 changes: 2 additions & 1 deletion lib/gov_uk_date_fields/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module GovUkDateFields
VERSION = "4.1.0"
VERSION = "4.2.0"
VERSION_RELEASED = "2021-06-16"
end
3 changes: 3 additions & 0 deletions test/dummy/app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

0 comments on commit 011e35b

Please sign in to comment.