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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a5bfd2544e9be22fad9cf3b68b0d6beb5d8c520336f470111bff03e7f69a6cf
4
- data.tar.gz: dec56ecded6a1c4da553d38cbb36eacb9d78797ae4f8760965c0219579bd3b8e
3
+ metadata.gz: d7fcdf05ab133f2f6333b294e2b26f31a07d691bab837365284146df8ba26db0
4
+ data.tar.gz: 43d5a0c202433172d249dff7422473c92643bfa677c13b9d73c9b0acc0b8e807
5
5
  SHA512:
6
- metadata.gz: 455f85de7395d998c2fe199a01a1840ae25a220d86ae2ff85efc596b3a300da65c6e743ddb72e89e70fba22884a4b8c14cee8af0024084e7aabdc52944684d97
7
- data.tar.gz: a9d0e13711f55d3fb2aee16ef4c3fdc69e0e2798fe0da7ec17b6d09b8c4dcb3b65f070facbf1dd07ce2bfeb118ef38496cdd07d51f7620b913f1b9035e02efeb
6
+ metadata.gz: 26cffb57ae2012c2a8f624f5b82dbda87b8ef03d6ce9d9c067d4f8c1bf322cd0f4c4197252bab32865316c440600e47028be7d0d06414ce21336b71967f519e8
7
+ data.tar.gz: a939c7f725044f8e7ebe7d5f77770c40b84f0efadcceeb6f5307bb691e828106663ee8de8f224ba358981ef2f5d975b7664015fef054963172fc7a97607e2aa9
@@ -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
- - master
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@v1
18
+ - uses: actions/checkout@v6
17
19
  - uses: ruby/setup-ruby@v1
18
20
  with:
19
- ruby-version: ${{ env.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.0', '3.1', '3.2']
31
+ ruby: ['3.3', '3.4', '4.0']
30
32
  steps:
31
- - uses: actions/checkout@v1
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
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.0.1"
3
+ }
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rake
3
3
  - rubocop-rspec
4
4
 
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.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.2)
10
- diff-lcs (1.5.0)
11
- docile (1.4.0)
12
- json (2.6.3)
13
- language_server-protocol (3.17.0.3)
14
- parallel (1.23.0)
15
- parser (3.2.2.4)
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
- racc (1.7.3)
19
+ prism (1.8.0)
20
+ racc (1.8.1)
19
21
  rainbow (3.1.1)
20
- rake (13.1.0)
21
- regexp_parser (2.8.2)
22
- rexml (3.2.6)
23
- rspec (3.12.0)
24
- rspec-core (~> 3.12.0)
25
- rspec-expectations (~> 3.12.0)
26
- rspec-mocks (~> 3.12.0)
27
- rspec-core (3.12.2)
28
- rspec-support (~> 3.12.0)
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.12.0)
32
- rspec-mocks (3.12.6)
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.12.0)
35
- rspec-support (3.12.1)
36
- rubocop (1.57.2)
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 (>= 3.17.0)
39
+ language_server-protocol (~> 3.17.0.2)
40
+ lint_roller (~> 1.1.0)
39
41
  parallel (~> 1.10)
40
- parser (>= 3.2.2.4)
42
+ parser (>= 3.3.0.2)
41
43
  rainbow (>= 2.2.2, < 4.0)
42
- regexp_parser (>= 1.8, < 3.0)
43
- rexml (>= 3.2.5, < 4.0)
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, < 3.0)
47
- rubocop-ast (1.30.0)
48
- parser (>= 3.2.1.0)
49
- rubocop-capybara (2.19.0)
50
- rubocop (~> 1.41)
51
- rubocop-factory_bot (2.24.0)
52
- rubocop (~> 1.33)
53
- rubocop-rake (0.6.0)
54
- rubocop (~> 1.0)
55
- rubocop-rspec (2.25.0)
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.12.3)
62
+ simplecov-html (0.13.2)
65
63
  simplecov_json_formatter (0.1.4)
66
- unicode-display_width (2.5.0)
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
- 2.4.22
81
+ 4.0.4