Validate Swedish social security numbers.
Add this to your Gemfile
gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'
Then run bundle install
require 'personnummer'
puts Personnummer::valid("0001010107")
# => TrueSee test/test_personnummer.rb for more examples.
MIT
