Skip to content

Commit

Permalink
🎉 release 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilperez committed Mar 20, 2021
1 parent 7efab0b commit 4846523
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require:
AllCops:
TargetRubyVersion: 2.4

TargetRailsVersion: 4.2
TargetRailsVersion: 5.2

# Include common Ruby source files.
Include:
Expand Down Expand Up @@ -862,7 +862,7 @@ Layout/DefEndAlignment:

##################### Rails ##################################
Rails:
Enabled: true
Enabled: false

Rails/ActionFilter:
EnforcedStyle: action
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## 0.4.0

**HEADS UP**: While I don't think this update would break any system for anyone, many formats where revisited to make them more loose or strict, potentially rendering your data invalid, particularly in edge cases or with data that was already incorrect in the first place and not flagges as such. I recommend you check your data with the new version in case these validations are critical to you. I am not releasing this as a 1.0 because there are no breaking changes in the API though. See PR #54 for more details.

- Many regexps where modified to include recent changes in postal services, fix issues, narrow down formats that where unnecessary broad, allow for some looser cases such as optional whitespaces and making many of them case insensitive and removing countries with no postal codes - See PR #54. Thanks to ~ @ojsdude with some help from @dgilperez
- Allow the gem to generate test data from the formatters. See README ~ @ojsdude
- Officialy support Ruby 3 and Rails 6.1

## 0.3.3

- Fixes AR regex
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_4.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
validates_zipcode (0.3.3)
validates_zipcode (0.4.0)
activemodel (>= 4.2.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
validates_zipcode (0.3.3)
validates_zipcode (0.4.0)
activemodel (>= 4.2.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
validates_zipcode (0.3.3)
validates_zipcode (0.4.0)
activemodel (>= 4.2.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_edge.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GIT
PATH
remote: ..
specs:
validates_zipcode (0.3.3)
validates_zipcode (0.4.0)
activemodel (>= 4.2.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/validates_zipcode/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module ValidatesZipcode
VERSION = '0.3.3'
VERSION = '0.4.0'
end

0 comments on commit 4846523

Please sign in to comment.