postcode_validator 1.0.1 → 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: 6eed35124d1bb71fece149bd9c1b903f41c9c4140ab6ca2e759693b0891ea3c3
4
- data.tar.gz: 0f77faff57440f00f32e56a12e855d4543446d1e98271c98c1cf66a1672c396e
3
+ metadata.gz: 700ad108feba9e111e2e6a42606e86e814514f736606a31f749cfd0cd5546cee
4
+ data.tar.gz: 9c5f77cd2a88f3d69c1791ed280d2d3fe9150b79c572837310608f4d349641ad
5
5
  SHA512:
6
- metadata.gz: 1472669261e5ce6c5480908837dd261db54eed354fb006c9c68d204a1370362a7505185c6a5a835a0e18e244519af7c94684e17cf0a57da315abd4c7b31c6870
7
- data.tar.gz: 8f78d3146cf363df72228528a075dfc21c24479353e2fb5b2756a5e0d99c2358eb46d381b10d45e0a3bdb74f0965109d677a8202caf99dcca958fca81869ef5b
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.1'
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.5'
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,6 +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'
50
+ spec.add_development_dependency 'rspec', '~> 3.13.0'
40
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.1
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: 2020-11-02 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,28 +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'
95
+ version: 3.13.0
111
96
  description: A simple postcode validator based on ActiveModel and Unicode CLDR.
112
97
  email:
113
98
  - gael-ian@notus.sh
@@ -115,15 +100,9 @@ executables: []
115
100
  extensions: []
116
101
  extra_rdoc_files: []
117
102
  files:
118
- - ".gitignore"
119
- - ".rspec"
120
- - ".rubocop.yml"
121
- - ".travis.yml"
122
- - Gemfile
123
- - Gemfile.lock
103
+ - CHANGELOG.md
124
104
  - LICENSE
125
105
  - README.md
126
- - Rakefile
127
106
  - lib/active_model/validations/postcode_validator.rb
128
107
  - lib/postcode_validator.rb
129
108
  - lib/postcode_validator/version.rb
@@ -135,7 +114,12 @@ licenses:
135
114
  - Apache-2.0
136
115
  metadata:
137
116
  allowed_push_host: https://rubygems.org
138
- 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
139
123
  rdoc_options: []
140
124
  require_paths:
141
125
  - lib
@@ -143,15 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
127
  requirements:
144
128
  - - ">="
145
129
  - !ruby/object:Gem::Version
146
- version: '2.5'
130
+ version: '3.1'
147
131
  required_rubygems_version: !ruby/object:Gem::Requirement
148
132
  requirements:
149
133
  - - ">="
150
134
  - !ruby/object:Gem::Version
151
135
  version: '0'
152
136
  requirements: []
153
- rubygems_version: 3.1.2
154
- signing_key:
137
+ rubygems_version: 3.6.9
155
138
  specification_version: 4
156
139
  summary: A simple postcode validator for Rails.
157
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.5
7
- - 2.6
8
- - 2.7
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,81 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- postcode_validator (1.0.1)
5
- twitter_cldr (> 4.4.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (6.0.3.4)
11
- activesupport (= 6.0.3.4)
12
- activesupport (6.0.3.4)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2, >= 2.2.2)
18
- ast (2.4.1)
19
- camertron-eprun (1.1.1)
20
- cldr-plurals-runtime-rb (1.0.1)
21
- concurrent-ruby (1.1.7)
22
- diff-lcs (1.4.4)
23
- i18n (1.8.5)
24
- concurrent-ruby (~> 1.0)
25
- minitest (5.14.2)
26
- parallel (1.19.2)
27
- parser (2.7.2.0)
28
- ast (~> 2.4.1)
29
- rainbow (3.0.0)
30
- rake (13.0.1)
31
- regexp_parser (1.8.2)
32
- rexml (3.2.4)
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.0)
38
- rspec-support (~> 3.10.0)
39
- rspec-expectations (3.10.0)
40
- diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.10.0)
42
- rspec-mocks (3.10.0)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-support (3.10.0)
46
- rubocop (1.1.0)
47
- parallel (~> 1.10)
48
- parser (>= 2.7.1.5)
49
- rainbow (>= 2.2.2, < 4.0)
50
- regexp_parser (>= 1.8)
51
- rexml
52
- rubocop-ast (>= 1.0.1)
53
- ruby-progressbar (~> 1.7)
54
- unicode-display_width (>= 1.4.0, < 2.0)
55
- rubocop-ast (1.1.0)
56
- parser (>= 2.7.1.5)
57
- ruby-progressbar (1.10.1)
58
- thread_safe (0.3.6)
59
- twitter_cldr (6.3.0)
60
- camertron-eprun
61
- cldr-plurals-runtime-rb (~> 1.0)
62
- tzinfo
63
- tzinfo (1.2.7)
64
- thread_safe (~> 0.1)
65
- unicode-display_width (1.7.0)
66
- zeitwerk (2.4.1)
67
-
68
- PLATFORMS
69
- ruby
70
-
71
- DEPENDENCIES
72
- activemodel (> 3.2.0)
73
- activesupport (> 3.2.0)
74
- bundler (~> 2.1)
75
- postcode_validator!
76
- rake (~> 13.0)
77
- rspec (~> 3.10.0)
78
- rubocop
79
-
80
- BUNDLED WITH
81
- 2.1.4
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