postnummer_norge 1.0.0 → 1.0.1
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 +4 -4
- data/.github/workflows/build.yml +34 -8
- data/.github/workflows/update-postal-codes.yml +28 -0
- data/.release-please-manifest.json +3 -0
- data/.rubocop.yml +1 -1
- data/.tool-versions +1 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +45 -45
- data/lib/postnummer_norge/postal_codes.tab +1612 -1636
- data/lib/postnummer_norge/version.rb +1 -1
- data/mise.toml +2 -0
- data/release-please-config.json +17 -0
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7fcdf05ab133f2f6333b294e2b26f31a07d691bab837365284146df8ba26db0
|
|
4
|
+
data.tar.gz: 43d5a0c202433172d249dff7422473c92643bfa677c13b9d73c9b0acc0b8e807
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26cffb57ae2012c2a8f624f5b82dbda87b8ef03d6ce9d9c067d4f8c1bf322cd0f4c4197252bab32865316c440600e47028be7d0d06414ce21336b71967f519e8
|
|
7
|
+
data.tar.gz: a939c7f725044f8e7ebe7d5f77770c40b84f0efadcceeb6f5307bb691e828106663ee8de8f224ba358981ef2f5d975b7664015fef054963172fc7a97607e2aa9
|
data/.github/workflows/build.yml
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
env:
|
|
2
|
-
RUBY_VERSION: 3.0
|
|
3
|
-
|
|
4
1
|
name: Build
|
|
5
2
|
on:
|
|
6
3
|
push:
|
|
7
4
|
branches:
|
|
8
|
-
-
|
|
5
|
+
- main
|
|
9
6
|
- develop
|
|
10
7
|
pull_request:
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
issues: write
|
|
11
|
+
pull-requests: write
|
|
12
|
+
id-token: write
|
|
11
13
|
jobs:
|
|
12
14
|
rubocop-test:
|
|
13
15
|
name: Rubocop
|
|
14
16
|
runs-on: ubuntu-latest
|
|
15
17
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v6
|
|
17
19
|
- uses: ruby/setup-ruby@v1
|
|
18
20
|
with:
|
|
19
|
-
ruby-version:
|
|
21
|
+
ruby-version: '4.0'
|
|
20
22
|
bundler-cache: true
|
|
21
23
|
- name: Check code
|
|
22
24
|
run: bundle exec rubocop
|
|
@@ -26,12 +28,36 @@ jobs:
|
|
|
26
28
|
runs-on: ubuntu-latest
|
|
27
29
|
strategy:
|
|
28
30
|
matrix:
|
|
29
|
-
ruby: ['3.
|
|
31
|
+
ruby: ['3.3', '3.4', '4.0']
|
|
30
32
|
steps:
|
|
31
|
-
- uses: actions/checkout@
|
|
33
|
+
- uses: actions/checkout@v6
|
|
32
34
|
- uses: ruby/setup-ruby@v1
|
|
33
35
|
with:
|
|
34
36
|
ruby-version: ${{ matrix.ruby }}
|
|
35
37
|
bundler-cache: true
|
|
36
38
|
- name: Run tests
|
|
37
39
|
run: bundle exec rspec
|
|
40
|
+
|
|
41
|
+
release-please:
|
|
42
|
+
needs: [rubocop-test, rspec-test]
|
|
43
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
outputs:
|
|
46
|
+
release_created: ${{ steps.release.outputs.release_created }}
|
|
47
|
+
steps:
|
|
48
|
+
- uses: googleapis/release-please-action@v4
|
|
49
|
+
id: release
|
|
50
|
+
with:
|
|
51
|
+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
needs: release-please
|
|
55
|
+
if: ${{ needs.release-please.outputs.release_created }}
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v6
|
|
59
|
+
- uses: ruby/setup-ruby@v1
|
|
60
|
+
with:
|
|
61
|
+
ruby-version: "4.0"
|
|
62
|
+
bundler-cache: true
|
|
63
|
+
- uses: rubygems/release-gem@v1
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Update Postal Codes
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: '0 8 1 * *'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
pull-requests: write
|
|
9
|
+
jobs:
|
|
10
|
+
update:
|
|
11
|
+
name: Update postal codes
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v6
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: '4.0'
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- name: Update postal codes
|
|
20
|
+
run: bundle exec rake update_codes
|
|
21
|
+
- name: Create Pull Request
|
|
22
|
+
uses: peter-evans/create-pull-request@v7
|
|
23
|
+
with:
|
|
24
|
+
add-paths: lib/postnummer_norge/postal_codes.tab
|
|
25
|
+
commit-message: 'fix: Update postal codes'
|
|
26
|
+
title: 'Update postal codes'
|
|
27
|
+
branch: update-postal-codes
|
|
28
|
+
delete-branch: true
|
data/.rubocop.yml
CHANGED
data/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby 4.0
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.1](https://github.com/elektronaut/postnummer_norge/compare/postnummer_norge-v1.0.0...postnummer_norge/v1.0.1) (2026-01-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Add Gemfile.lock to release-please config ([d93030f](https://github.com/elektronaut/postnummer_norge/commit/d93030fbd9a7128305cd6316bc97a5ce4ceca490))
|
|
9
|
+
* Limit PR to postal codes file only ([d4e5f33](https://github.com/elektronaut/postnummer_norge/commit/d4e5f3398415156b75ebc18b0670b65559963bef))
|
|
10
|
+
* Update postal codes ([5cbac1a](https://github.com/elektronaut/postnummer_norge/commit/5cbac1a0a48f820c33f3a49917ff1ae95fad1e7f))
|
|
11
|
+
* Use simple release type for plain VERSION file ([d80825c](https://github.com/elektronaut/postnummer_norge/commit/d80825cdab8db38fab4c1f3457e85f5258b09982))
|
data/Gemfile.lock
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
postnummer_norge (1.0.
|
|
4
|
+
postnummer_norge (1.0.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: http://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
ast (2.4.
|
|
10
|
-
diff-lcs (1.
|
|
11
|
-
docile (1.4.
|
|
12
|
-
json (2.
|
|
13
|
-
language_server-protocol (3.17.0.
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
ast (2.4.3)
|
|
10
|
+
diff-lcs (1.6.2)
|
|
11
|
+
docile (1.4.1)
|
|
12
|
+
json (2.18.0)
|
|
13
|
+
language_server-protocol (3.17.0.5)
|
|
14
|
+
lint_roller (1.1.0)
|
|
15
|
+
parallel (1.27.0)
|
|
16
|
+
parser (3.3.10.1)
|
|
16
17
|
ast (~> 2.4.1)
|
|
17
18
|
racc
|
|
18
|
-
|
|
19
|
+
prism (1.8.0)
|
|
20
|
+
racc (1.8.1)
|
|
19
21
|
rainbow (3.1.1)
|
|
20
|
-
rake (13.1
|
|
21
|
-
regexp_parser (2.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
rspec-
|
|
25
|
-
rspec-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
rspec-expectations (3.12.3)
|
|
22
|
+
rake (13.3.1)
|
|
23
|
+
regexp_parser (2.11.3)
|
|
24
|
+
rspec (3.13.2)
|
|
25
|
+
rspec-core (~> 3.13.0)
|
|
26
|
+
rspec-expectations (~> 3.13.0)
|
|
27
|
+
rspec-mocks (~> 3.13.0)
|
|
28
|
+
rspec-core (3.13.6)
|
|
29
|
+
rspec-support (~> 3.13.0)
|
|
30
|
+
rspec-expectations (3.13.5)
|
|
30
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
|
-
rspec-support (~> 3.
|
|
32
|
-
rspec-mocks (3.
|
|
32
|
+
rspec-support (~> 3.13.0)
|
|
33
|
+
rspec-mocks (3.13.7)
|
|
33
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
34
|
-
rspec-support (~> 3.
|
|
35
|
-
rspec-support (3.
|
|
36
|
-
rubocop (1.
|
|
35
|
+
rspec-support (~> 3.13.0)
|
|
36
|
+
rspec-support (3.13.6)
|
|
37
|
+
rubocop (1.82.1)
|
|
37
38
|
json (~> 2.3)
|
|
38
|
-
language_server-protocol (
|
|
39
|
+
language_server-protocol (~> 3.17.0.2)
|
|
40
|
+
lint_roller (~> 1.1.0)
|
|
39
41
|
parallel (~> 1.10)
|
|
40
|
-
parser (>= 3.
|
|
42
|
+
parser (>= 3.3.0.2)
|
|
41
43
|
rainbow (>= 2.2.2, < 4.0)
|
|
42
|
-
regexp_parser (>=
|
|
43
|
-
|
|
44
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
|
44
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
45
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
45
46
|
ruby-progressbar (~> 1.7)
|
|
46
|
-
unicode-display_width (>= 2.4.0, <
|
|
47
|
-
rubocop-ast (1.
|
|
48
|
-
parser (>= 3.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
rubocop (
|
|
53
|
-
rubocop-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
rubocop (~> 1.40)
|
|
57
|
-
rubocop-capybara (~> 2.17)
|
|
58
|
-
rubocop-factory_bot (~> 2.22)
|
|
47
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
48
|
+
rubocop-ast (1.49.0)
|
|
49
|
+
parser (>= 3.3.7.2)
|
|
50
|
+
prism (~> 1.7)
|
|
51
|
+
rubocop-rake (0.7.1)
|
|
52
|
+
lint_roller (~> 1.1)
|
|
53
|
+
rubocop (>= 1.72.1)
|
|
54
|
+
rubocop-rspec (3.9.0)
|
|
55
|
+
lint_roller (~> 1.1)
|
|
56
|
+
rubocop (~> 1.81)
|
|
59
57
|
ruby-progressbar (1.13.0)
|
|
60
58
|
simplecov (0.22.0)
|
|
61
59
|
docile (~> 1.1)
|
|
62
60
|
simplecov-html (~> 0.11)
|
|
63
61
|
simplecov_json_formatter (~> 0.1)
|
|
64
|
-
simplecov-html (0.
|
|
62
|
+
simplecov-html (0.13.2)
|
|
65
63
|
simplecov_json_formatter (0.1.4)
|
|
66
|
-
unicode-display_width (2.
|
|
64
|
+
unicode-display_width (3.2.0)
|
|
65
|
+
unicode-emoji (~> 4.1)
|
|
66
|
+
unicode-emoji (4.2.0)
|
|
67
67
|
|
|
68
68
|
PLATFORMS
|
|
69
69
|
ruby
|
|
@@ -78,4 +78,4 @@ DEPENDENCIES
|
|
|
78
78
|
simplecov
|
|
79
79
|
|
|
80
80
|
BUNDLED WITH
|
|
81
|
-
|
|
81
|
+
4.0.4
|