personnummer 3.1.0 → 3.1.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: 3dcd80e850a666983b5212119f00f257477686d8e579508b3336274b359a1639
4
- data.tar.gz: 5cf6b2f2fd0084a10d70dca28da9e6d366d81d0f703533a07aa10754a56f6bbd
3
+ metadata.gz: c2e83e79d496e7154e0f90caadf985f8200c65cd6f00ab0991accece7cd398ee
4
+ data.tar.gz: 591742e1845951e8f2a99969a748afab249736c6015bb2e6d3c7c8150480372d
5
5
  SHA512:
6
- metadata.gz: 8d579a9dcfaa550c50aba9e5362f7f64b86e0d660255d4c0fbbc5a98eb5f732fa667e986d4361f485d40cbe0fdd02aaf41bf9ea8a7d6f225852e5e6736441b8e
7
- data.tar.gz: 3bb1d3cd98280c6e7fb5d742d7363ef7190aebb310dd0c43ef96a993d5e9c4f537615b744bbba30f34956f67757ede243ff25a8fe15fd828744012a3f38fa6bb
6
+ metadata.gz: d3951cbede266a85f41eeb1b168448e150eb30dd67804d2f427090dab2b8479c7fabf95e526c2cd7b599602e5e23e2ac420d6c586552ff2c484c53ee7ba134ca
7
+ data.tar.gz: dc9b29b8b192b85ee20f645929441121726d0bfdbfe3afee6764239076fbe6bc712f2953dafb0a6d25c2f93c218f73d90d43177c6afdf20f7e9b9ce0722aa549
@@ -0,0 +1,50 @@
1
+
2
+ name: publish
3
+
4
+ on:
5
+ # Publishing a GitHub release creates the tag and pushes the gem.
6
+ release:
7
+ types: [published]
8
+
9
+ # A manual run tests, builds and signs in to RubyGems, but does not push.
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ rubygems:
17
+ runs-on: ubuntu-latest
18
+
19
+ permissions:
20
+ contents: read
21
+ # Trusted publishing: RubyGems swaps the OIDC token for a short-lived API key.
22
+ id-token: write
23
+
24
+ steps:
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
28
+ with:
29
+ ruby-version: '4.0'
30
+ - name: gem install
31
+ run: gem install minitest timecop
32
+ - name: test
33
+ run: rake
34
+ # A published version cannot be replaced, so stop before the push if the
35
+ # release was tagged without the version bump.
36
+ - name: Check that the tag matches the gemspec version
37
+ if: github.event_name == 'release'
38
+ run: |
39
+ version=$(ruby -e 'puts Gem::Specification.load("personnummer.gemspec").version')
40
+ if [ "v$version" != "$GITHUB_REF_NAME" ]; then
41
+ echo "::error::Tag $GITHUB_REF_NAME does not match gemspec version $version"
42
+ exit 1
43
+ fi
44
+ - name: build
45
+ run: gem build personnummer.gemspec
46
+ - name: Sign in to RubyGems
47
+ uses: rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a # v2.1.0
48
+ - name: push
49
+ if: github.event_name == 'release'
50
+ run: gem push personnummer-*.gem
data/personnummer.gemspec CHANGED
@@ -3,11 +3,11 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'personnummer'
6
- s.version = '3.1.0'
6
+ s.version = '3.1.1'
7
7
  s.date = '2026-11-13'
8
8
  s.summary = 'Validate Swedish social security numbers'
9
9
  s.description = 'Validate Swedish social security numbers'
10
- s.authors = ['Jack Millard']
10
+ s.authors = ['Jack Millard', 'Rasmus Graham']
11
11
  s.email = ['millard64@hotmail.co.uk']
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: personnummer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Millard
8
+ - Rasmus Graham
8
9
  bindir: bin
9
10
  cert_chain: []
10
11
  date: 2026-11-13 00:00:00.000000000 Z
@@ -59,6 +60,7 @@ extensions: []
59
60
  extra_rdoc_files: []
60
61
  files:
61
62
  - ".github/renovate.json"
63
+ - ".github/workflows/publish.yml"
62
64
  - ".github/workflows/ruby.yml"
63
65
  - ".meta.yaml"
64
66
  - LICENSE
@@ -85,8 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
87
  - !ruby/object:Gem::Version
86
88
  version: '0'
87
89
  requirements: []
88
- rubygems_version: 3.6.2
90
+ rubygems_version: 4.0.20
89
91
  specification_version: 4
90
92
  summary: Validate Swedish social security numbers
91
- test_files:
92
- - test/test_personnummer.rb
93
+ test_files: []