social_security_number 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +97 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/lib/social_security_number/country/be.rb +33 -0
  13. data/lib/social_security_number/country/ca.rb +48 -0
  14. data/lib/social_security_number/country/ch.rb +34 -0
  15. data/lib/social_security_number/country/cn.rb +42 -0
  16. data/lib/social_security_number/country/cz.rb +46 -0
  17. data/lib/social_security_number/country/de.rb +80 -0
  18. data/lib/social_security_number/country/dk.rb +48 -0
  19. data/lib/social_security_number/country/es.rb +41 -0
  20. data/lib/social_security_number/country/fi.rb +30 -0
  21. data/lib/social_security_number/country/fr.rb +32 -0
  22. data/lib/social_security_number/country/ie.rb +38 -0
  23. data/lib/social_security_number/country/is.rb +38 -0
  24. data/lib/social_security_number/country/it.rb +27 -0
  25. data/lib/social_security_number/country/lt.rb +57 -0
  26. data/lib/social_security_number/country/mx.rb +56 -0
  27. data/lib/social_security_number/country/nl.rb +26 -0
  28. data/lib/social_security_number/country/no.rb +56 -0
  29. data/lib/social_security_number/country/pk.rb +14 -0
  30. data/lib/social_security_number/country/se.rb +54 -0
  31. data/lib/social_security_number/country/uk.rb +68 -0
  32. data/lib/social_security_number/country/us.rb +52 -0
  33. data/lib/social_security_number/country.rb +103 -0
  34. data/lib/social_security_number/validator.rb +40 -0
  35. data/lib/social_security_number/version.rb +3 -0
  36. data/lib/social_security_number.rb +7 -0
  37. data/social_security_number.gemspec +36 -0
  38. metadata +126 -0
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "social_security_number/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "social_security_number"
8
+ spec.version = SocialSecurityNumber::VERSION
9
+ spec.authors = ["SameSystem"]
10
+ spec.email = ["devops@samesystem.com"]
11
+
12
+ spec.summary = %q{It provides validators for national identification numbers.}
13
+ spec.description = %q{It provides validators for national identification numbers. Currently the following countries are supported: Belgium, Canada, China, Czech Republic, Denmark, Germany, Finland, France, Iceland, Ireland, Italy, Lithuania, Mexico, Netherlands, Norway, Pakistan, Spain, Sweden, Switzerland, United Kingdom, United States }
14
+ spec.homepage = "https://github.com/samesystem/social_security_number"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.15"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: social_security_number
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - SameSystem
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: 'It provides validators for national identification numbers. Currently
56
+ the following countries are supported: Belgium, Canada, China, Czech Republic, Denmark,
57
+ Germany, Finland, France, Iceland, Ireland, Italy, Lithuania, Mexico, Netherlands,
58
+ Norway, Pakistan, Spain, Sweden, Switzerland, United Kingdom, United States '
59
+ email:
60
+ - devops@samesystem.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - ".gitignore"
66
+ - ".rspec"
67
+ - ".travis.yml"
68
+ - CODE_OF_CONDUCT.md
69
+ - Gemfile
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - lib/social_security_number.rb
76
+ - lib/social_security_number/country.rb
77
+ - lib/social_security_number/country/be.rb
78
+ - lib/social_security_number/country/ca.rb
79
+ - lib/social_security_number/country/ch.rb
80
+ - lib/social_security_number/country/cn.rb
81
+ - lib/social_security_number/country/cz.rb
82
+ - lib/social_security_number/country/de.rb
83
+ - lib/social_security_number/country/dk.rb
84
+ - lib/social_security_number/country/es.rb
85
+ - lib/social_security_number/country/fi.rb
86
+ - lib/social_security_number/country/fr.rb
87
+ - lib/social_security_number/country/ie.rb
88
+ - lib/social_security_number/country/is.rb
89
+ - lib/social_security_number/country/it.rb
90
+ - lib/social_security_number/country/lt.rb
91
+ - lib/social_security_number/country/mx.rb
92
+ - lib/social_security_number/country/nl.rb
93
+ - lib/social_security_number/country/no.rb
94
+ - lib/social_security_number/country/pk.rb
95
+ - lib/social_security_number/country/se.rb
96
+ - lib/social_security_number/country/uk.rb
97
+ - lib/social_security_number/country/us.rb
98
+ - lib/social_security_number/validator.rb
99
+ - lib/social_security_number/version.rb
100
+ - social_security_number.gemspec
101
+ homepage: https://github.com/samesystem/social_security_number
102
+ licenses:
103
+ - MIT
104
+ metadata:
105
+ allowed_push_host: https://rubygems.org
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 2.6.13
123
+ signing_key:
124
+ specification_version: 4
125
+ summary: It provides validators for national identification numbers.
126
+ test_files: []