postcode_validator 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 450a5328b59a5e1691a2879e629a9286f013aecb693a67e875c5134d279e69a2
4
- data.tar.gz: e2daf88df83c2c734c776b17c152d246f061b5ca66b1324e1f9ab0a8cf2bdecb
3
+ metadata.gz: 700ad108feba9e111e2e6a42606e86e814514f736606a31f749cfd0cd5546cee
4
+ data.tar.gz: 9c5f77cd2a88f3d69c1791ed280d2d3fe9150b79c572837310608f4d349641ad
5
5
  SHA512:
6
- metadata.gz: bc117a495fd8fcf5bd3b64fbd7c0e9f1241ebac9406986c758c563c09c03dd7a1f862f99713311104c37a88fcc2ec111a42e0da37aa07b33959559fe5ba57a08
7
- data.tar.gz: 05de72e4cf6884166814caf96a09a4570f62b0ad33406e8a455d5f8c2a569d690b6a1848a2c14c29e18d3316315ed35b2c8d8bd0d10f568b116741523a5e62b3
6
+ metadata.gz: 758104959abfc29bc2dc627e348833defadce197712d596c3b2720175356df19baca95e346476a94c130cf86f8af70ce6a647a69c5a68884066997b668f2d00c
7
+ data.tar.gz: '06169f4eb1be2a7f7834499939b85f241f62c87795ea22f76d6ad4d9eafda98ba11bc2aa0e492b7366ad10d32aeaab517cd98bbef320c211f8a9b89766ec9d59'
data/CHANGELOG.md ADDED
@@ -0,0 +1,57 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## Version 1.1.0 (2025-10-23)
10
+
11
+ ### Changed
12
+
13
+ * Configure Dependabot to automatically update Github Actions (#19)
14
+ * Drop support for Rails 7.1, Ruby 2.7 and Ruby 3.0 (#18)
15
+ * Add Rails 8.1 to the test matrix (#17)
16
+ * Drop support for Rails 7.0 (#16)
17
+ * Add Ruby 3.4 to the test matrix (#15)
18
+ * Add Rails 8.0 to the test matrix (#14)
19
+ * Add Ruby 2.7 (Rails 7.0 minimum requirements) to the test matrix (#13)
20
+ * Remove Rails 6.1 from the test matrix (#13)
21
+ * Add Rails 7.2 to the test matrix (#12)
22
+ * Update test matrix (#9)
23
+ Add Ruby 3.3. Drop Ruby 2.6 and Ruby 2.7
24
+ * Migrate from Travis CI to Github Actions
25
+ * Add Ruby 3.2 to the test matrix
26
+ * Introduce `rubocop-performance` and apply recommendations
27
+
28
+ ## Version 1.0.2 (2021-04-03)
29
+
30
+ ### Breaking changes
31
+
32
+ * Drop support for Ruby < 2.6
33
+
34
+ ### Changes
35
+
36
+ * Add support for Ruby 3.0
37
+
38
+ ## Version 1.0.1 (2020-11-02)
39
+
40
+ ### Breaking changes
41
+
42
+ * Drop support for Ruby < 2.5
43
+
44
+ ### Changes
45
+
46
+ * Loosen version constraint to Twitter CLDR
47
+ * Introduce Travis CI to automate unit tests
48
+
49
+ ## Version 1.0.0 (2018-03-30)
50
+
51
+ ## Fixes
52
+
53
+ * Fix error messages translation
54
+
55
+ ## Version 0.1.0 (2018-03-29)
56
+
57
+ Initial release.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PostcodeValidator
2
2
 
3
- [![Build Status](https://travis-ci.org/notus-sh/postcode_validator.svg?branch=master)](https://travis-ci.org/notus-sh/postcode_validator)
3
+ [![Unit tests](https://github.com/notus-sh/postcode_validator/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/notus-sh/postcode_validator/actions/workflows/unit-tests.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/postcode_validator.svg)](https://badge.fury.io/rb/postcode_validator)
5
5
 
6
6
  A simple postcode validator based on the Unicode CLDR project, with an optional integration with ActiveModel.
@@ -29,7 +29,7 @@ module ActiveModel
29
29
  end
30
30
  end
31
31
 
32
- module HelperMethods #:nodoc:
32
+ module HelperMethods # :nodoc:
33
33
  # Validates whether the value of the specified attribute is a valid zip code
34
34
  #
35
35
  # class Address < ActiveRecord::Base
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PostcodeValidator
4
- VERSION = '1.0.2'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -17,16 +17,28 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
19
19
 
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+ spec.metadata = {
21
+ 'allowed_push_host' => 'https://rubygems.org',
22
+ 'rubygems_mfa_required' => 'true',
23
+
24
+ 'bug_tracker_uri' => 'https://github.com/notus-sh/postcode_validator/issues',
25
+ 'changelog_uri' => 'https://github.com/notus-sh/postcode_validator/blob/main/CHANGELOG.md',
26
+ 'homepage_uri' => 'https://github.com/notus-sh/postcode_validator',
27
+ 'source_code_uri' => 'https://github.com/notus-sh/postcode_validator',
28
+ 'funding_uri' => 'https://opencollective.com/notus-sh'
29
+ }
21
30
 
22
31
  spec.require_paths = ['lib']
23
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
- f.match(%r{^(test|spec|features)/})
32
+
33
+ excluded_dirs = %r{^(.github|dev|spec)/}
34
+ excluded_files = %w[.gitignore .rspec .rubocop.yml Gemfile Gemfile.lock Rakefile]
35
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
36
+ f.match(excluded_dirs) || excluded_files.include?(f)
25
37
  end
26
38
 
27
- spec.required_ruby_version = '>= 2.6'
39
+ spec.required_ruby_version = '>= 3.1'
28
40
 
29
- spec.add_runtime_dependency 'twitter_cldr', '> 4.4.0'
41
+ spec.add_dependency 'twitter_cldr', '> 4.4.0'
30
42
 
31
43
  # Optional dependencies, used in tests
32
44
  spec.add_development_dependency 'activemodel', '> 3.2.0'
@@ -35,8 +47,5 @@ Gem::Specification.new do |spec|
35
47
  # Development tools
36
48
  spec.add_development_dependency 'bundler', '~> 2.1'
37
49
  spec.add_development_dependency 'rake', '~> 13.0'
38
- spec.add_development_dependency 'rspec', '~> 3.10.0'
39
- spec.add_development_dependency 'rubocop'
40
- spec.add_development_dependency 'rubocop-rake'
41
- spec.add_development_dependency 'rubocop-rspec'
50
+ spec.add_development_dependency 'rspec', '~> 3.13.0'
42
51
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcode_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-05-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: twitter_cldr
@@ -86,56 +85,14 @@ dependencies:
86
85
  requirements:
87
86
  - - "~>"
88
87
  - !ruby/object:Gem::Version
89
- version: 3.10.0
88
+ version: 3.13.0
90
89
  type: :development
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - "~>"
95
94
  - !ruby/object:Gem::Version
96
- version: 3.10.0
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-rake
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
95
+ version: 3.13.0
139
96
  description: A simple postcode validator based on ActiveModel and Unicode CLDR.
140
97
  email:
141
98
  - gael-ian@notus.sh
@@ -143,15 +100,9 @@ executables: []
143
100
  extensions: []
144
101
  extra_rdoc_files: []
145
102
  files:
146
- - ".gitignore"
147
- - ".rspec"
148
- - ".rubocop.yml"
149
- - ".travis.yml"
150
- - Gemfile
151
- - Gemfile.lock
103
+ - CHANGELOG.md
152
104
  - LICENSE
153
105
  - README.md
154
- - Rakefile
155
106
  - lib/active_model/validations/postcode_validator.rb
156
107
  - lib/postcode_validator.rb
157
108
  - lib/postcode_validator/version.rb
@@ -163,7 +114,12 @@ licenses:
163
114
  - Apache-2.0
164
115
  metadata:
165
116
  allowed_push_host: https://rubygems.org
166
- post_install_message:
117
+ rubygems_mfa_required: 'true'
118
+ bug_tracker_uri: https://github.com/notus-sh/postcode_validator/issues
119
+ changelog_uri: https://github.com/notus-sh/postcode_validator/blob/main/CHANGELOG.md
120
+ homepage_uri: https://github.com/notus-sh/postcode_validator
121
+ source_code_uri: https://github.com/notus-sh/postcode_validator
122
+ funding_uri: https://opencollective.com/notus-sh
167
123
  rdoc_options: []
168
124
  require_paths:
169
125
  - lib
@@ -171,15 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
127
  requirements:
172
128
  - - ">="
173
129
  - !ruby/object:Gem::Version
174
- version: '2.6'
130
+ version: '3.1'
175
131
  required_rubygems_version: !ruby/object:Gem::Requirement
176
132
  requirements:
177
133
  - - ">="
178
134
  - !ruby/object:Gem::Version
179
135
  version: '0'
180
136
  requirements: []
181
- rubygems_version: 3.2.3
182
- signing_key:
137
+ rubygems_version: 3.6.9
183
138
  specification_version: 4
184
139
  summary: A simple postcode validator for Rails.
185
140
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,9 +0,0 @@
1
- AllCops:
2
- NewCops: enable
3
-
4
- Metrics/LineLength:
5
- Max: 150
6
-
7
- Metrics/BlockLength:
8
- Exclude:
9
- - 'spec/**/*_spec.rb'
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- script: "bundle exec rake clean spec"
4
-
5
- rvm:
6
- - 2.6
7
- - 2.7
8
- - 3.0
9
-
10
- gemfile:
11
- - Gemfile
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in zipcode_validator.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,87 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- postcode_validator (1.0.2)
5
- twitter_cldr (> 4.4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (6.1.3.1)
11
- activesupport (= 6.1.3.1)
12
- activesupport (6.1.3.1)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 1.6, < 2)
15
- minitest (>= 5.1)
16
- tzinfo (~> 2.0)
17
- zeitwerk (~> 2.3)
18
- ast (2.4.2)
19
- camertron-eprun (1.1.1)
20
- cldr-plurals-runtime-rb (1.1.0)
21
- concurrent-ruby (1.1.8)
22
- diff-lcs (1.4.4)
23
- i18n (1.8.10)
24
- concurrent-ruby (~> 1.0)
25
- minitest (5.14.4)
26
- parallel (1.20.1)
27
- parser (3.0.1.1)
28
- ast (~> 2.4.1)
29
- rainbow (3.0.0)
30
- rake (13.0.3)
31
- regexp_parser (2.1.1)
32
- rexml (3.2.5)
33
- rspec (3.10.0)
34
- rspec-core (~> 3.10.0)
35
- rspec-expectations (~> 3.10.0)
36
- rspec-mocks (~> 3.10.0)
37
- rspec-core (3.10.1)
38
- rspec-support (~> 3.10.0)
39
- rspec-expectations (3.10.1)
40
- diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.10.0)
42
- rspec-mocks (3.10.2)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-support (3.10.2)
46
- rubocop (1.13.0)
47
- parallel (~> 1.10)
48
- parser (>= 3.0.0.0)
49
- rainbow (>= 2.2.2, < 4.0)
50
- regexp_parser (>= 1.8, < 3.0)
51
- rexml
52
- rubocop-ast (>= 1.2.0, < 2.0)
53
- ruby-progressbar (~> 1.7)
54
- unicode-display_width (>= 1.4.0, < 3.0)
55
- rubocop-ast (1.5.0)
56
- parser (>= 3.0.1.1)
57
- rubocop-rake (0.5.1)
58
- rubocop
59
- rubocop-rspec (2.3.0)
60
- rubocop (~> 1.0)
61
- rubocop-ast (>= 1.1.0)
62
- ruby-progressbar (1.11.0)
63
- twitter_cldr (6.6.0)
64
- camertron-eprun
65
- cldr-plurals-runtime-rb (~> 1.1)
66
- tzinfo
67
- tzinfo (2.0.4)
68
- concurrent-ruby (~> 1.0)
69
- unicode-display_width (2.0.0)
70
- zeitwerk (2.4.2)
71
-
72
- PLATFORMS
73
- ruby
74
-
75
- DEPENDENCIES
76
- activemodel (> 3.2.0)
77
- activesupport (> 3.2.0)
78
- bundler (~> 2.1)
79
- postcode_validator!
80
- rake (~> 13.0)
81
- rspec (~> 3.10.0)
82
- rubocop
83
- rubocop-rake
84
- rubocop-rspec
85
-
86
- BUNDLED WITH
87
- 2.2.3
data/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
-
5
- require 'rspec/core/rake_task'
6
- RSpec::Core::RakeTask.new
7
-
8
- require 'rubocop/rake_task'
9
- RuboCop::RakeTask.new
10
-
11
- task default: :spec