Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

e-id

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e-id

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

E-ID

Electronic identity in Estonia and in other countries

Supported countries

  • Estonia
  • Finland
  • Sweden
  • Lithuania
  • Latvia
  • Denmark

Installation

Add this line to your application's Gemfile:

gem 'e-id', '~> 0.3.0'

And then execute:

bundle

Or install it yourself as:

gem install e-id

Usage

Estonia

Identity code format is GYYMMDDSSSC

  • G – gender
  • YYMMDD – date of birth
  • SSS – serial number
  • C – checksum

More info: https://www.id.ee/en/

irb -I lib
require 'e-id'

Eid::Estonia.new(50001029996).valid?
=> true

Eid::Estonia.new(50001029996).gender
=> :female

Eid::Estonia.new(50001029996).birth_date
=> #<Date: 2000-01-02 ((2451546j,0s,0n),+0s,2299161j)>

Eid::Estonia.new(50001029996).age
=> 23

Development

Build docker container with compose:

docker-compose build
docker-compose up

Access to the container:

docker-compose exec e-id sh

Run rspec or rubocop checks:

/package # bundle exec rubocop
/package # bundle exec rspec

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tab/e-id. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the e-id project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 06 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc