Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/personnummer/ruby
Validate Swedish personal identity numbers
https://github.com/personnummer/ruby
hacktoberfest personal-identity-number personnummer ruby social-security-number validation
Last synced: 10 days ago
JSON representation
Validate Swedish personal identity numbers
- Host: GitHub
- URL: https://github.com/personnummer/ruby
- Owner: personnummer
- License: mit
- Created: 2017-10-21T15:23:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T07:14:36.000Z (over 1 year ago)
- Last Synced: 2024-11-14T08:35:18.967Z (29 days ago)
- Topics: hacktoberfest, personal-identity-number, personnummer, ruby, social-security-number, validation
- Language: Ruby
- Homepage:
- Size: 34.2 KB
- Stars: 6
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - Ruby
README
# personnummer [![Build Status](https://github.com/personnummer/ruby/workflows/build/badge.svg)](https://github.com/personnummer/ruby/actions)
Validate personal identity numbers.
## Installation
Add this to your `Gemfile`
```
gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'
```Then run `bundle install`
## Example
```ruby
require 'personnummer'puts Personnummer.valid?("8507099805")
# => True
```See [test/test_personnummer.rb](test/test_personnummer.rb) for more examples.
## License
MIT