Skip to content

Commit

Permalink
🚀 drops support for older Ruby and Rails versions, release v0.3 🍻
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilperez committed May 24, 2020
1 parent a427adf commit 780fe8b
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require:

# Common configuration.
AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 2.4

TargetRailsVersion: 4.2

Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ cache: bundler
bundler_args: --jobs 3 --retry 3

before_install:
- "travis_retry gem update --system"
- "travis_retry gem install bundler"
- 'travis_retry gem update --system'
- 'travis_retry gem install bundler'

script: "bundle exec rake"
script: 'bundle exec rake'

rvm:
- 2.4.9
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
## 0.3.0

- Adds zipcode formatting feature ~ @aiomaster
- Drops support for EoL Rails < 4.2 and Ruby < 2.4. ~ @dgilperez

## 0.2.5

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Adds zipcode / postal code validation support to Rails (ActiveModel), considerin

``ValidatesZipcode`` currently support **233 country codes**. Regex data taken from several sources, being the main source the [CLDR](http://unicode.org/cldr/trac/browser/tags/release-27-d05/common/supplemental/postalCodeData.xml) database (release 27, around 159). Any other country's postal code will validate without errors.

``ValidatesZipcode`` supports Rails >= 4.2 and Ruby >= 2.0. It could probably work unsupported in Rails 3.2 and Ruby 1.9.3 as well. Truffleruby is also tested, but no reports of working in production apps for now.
``ValidatesZipcode`` supports Rails >= 4.2 and Ruby >= 2.4. This gem could work in Rails 3.2 and Ruby 1.9.3 as well, yet unsupported; try v0.2 series if having trouble with later versions. Truffleruby is also tested, but no reports of working in production apps for now.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_4.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: ..
specs:
validates_zipcode (0.2.5)
activemodel (>= 3.2.0)
validates_zipcode (0.3.0)
activemodel (>= 4.2.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_5.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: ..
specs:
validates_zipcode (0.2.5)
activemodel (>= 3.2.0)
validates_zipcode (0.3.0)
activemodel (>= 4.2.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_6.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: ..
specs:
validates_zipcode (0.2.5)
activemodel (>= 3.2.0)
validates_zipcode (0.3.0)
activemodel (>= 4.2.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_edge.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ GIT
PATH
remote: ..
specs:
validates_zipcode (0.2.5)
activemodel (>= 3.2.0)
validates_zipcode (0.3.0)
activemodel (>= 4.2.0)

GEM
remote: https://rubygems.org/
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.2.5'
VERSION = '0.3.0'
end
4 changes: 2 additions & 2 deletions validates_zipcode.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Gem::Specification.new do |s|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = %w[lib]

s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 2.4'

s.add_dependency 'activemodel', '>= 3.2.0'
s.add_dependency 'activemodel', '>= 4.2.0'

s.add_development_dependency 'appraisal'
s.add_development_dependency 'bundler'
Expand Down

0 comments on commit 780fe8b

Please sign in to comment.