company_number 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4730b631eea536093350f53559626fb2ed03dd1ca63fb31169a5c9c0e0a1b1c7
4
+ data.tar.gz: 555444d1b274831d7bb4a2476af3d173976c59b9f44894d78198e427d88fa755
5
+ SHA512:
6
+ metadata.gz: 4f6b3a8f6c65310e782b9fd099da1edd05f70b8b66c9e7b1e690387be6f28f086b4d72a5adf4d641148c3729dbbfd4ec28db41766c0e5837bc54bff112671dcb
7
+ data.tar.gz: 776f84d792a78b870ce940302b61dcf264f70e10282747bd1e5e6e9029ffad0d30b66ff289c1ba6b4223174e467b413e22ad91eaa96a13bbaad0b0d3edd4a7e1
@@ -0,0 +1,93 @@
1
+ name: build
2
+
3
+ on: [ push ]
4
+
5
+ jobs:
6
+ rubocop:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - uses: actions/setup-ruby@v1
11
+ - name: Run Rubocop
12
+ run: |
13
+ gem install rubocop
14
+ mkdir rubocop
15
+ rubocop --format html -o rubocop/rubocop.html || true
16
+ - name: Store Rubocop artifacts
17
+ uses: actions/upload-artifact@v2
18
+ with:
19
+ name: rubocop-report
20
+ path: rubocop/rubocop.html
21
+
22
+ rubycritic:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - uses: actions/setup-ruby@v1
27
+ - name: Run RubyCritic
28
+ run: |
29
+ gem install rubycritic
30
+ rubycritic lib --no-browser
31
+ - name: Store RubyCritic artifacts
32
+ uses: actions/upload-artifact@v2
33
+ with:
34
+ name: rubycritic-report
35
+ path: tmp/rubycritic
36
+
37
+ fukuzatsu:
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v2
41
+ - uses: actions/setup-ruby@v1
42
+ - name: Run Fukuzatsu
43
+ run: |
44
+ gem install fukuzatsu
45
+ fuku check lib -f html
46
+ - name: Store Fukuzatsu artifacts
47
+ uses: actions/upload-artifact@v2
48
+ with:
49
+ name: fukuzatsu-report
50
+ path: doc/fukuzatsu/htm
51
+
52
+ fasterer:
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - uses: actions/checkout@v2
56
+ - uses: actions/setup-ruby@v1
57
+ - name: Install Fasterer
58
+ run: gem install fasterer
59
+ - name: Configure Fasterer
60
+ run: |
61
+ cat << EOF > .fasterer.yml
62
+ exclude_paths:
63
+ - 'vendor/**/*.rb'
64
+ EOF
65
+ - name: Run Fasterer
66
+ run: fasterer || true
67
+
68
+ rspec:
69
+ runs-on: ubuntu-latest
70
+ steps:
71
+ - uses: actions/checkout@v2
72
+ - uses: actions/setup-ruby@v1
73
+ - name: Setup
74
+ run: gem install simplecov pry rspec
75
+ - name: Run RSpec
76
+ run: rspec --format progress
77
+ - name: Store SimpleCov artifacts
78
+ uses: actions/upload-artifact@v2
79
+ with:
80
+ name: simplecov-report
81
+ path: coverage
82
+
83
+ audit:
84
+ runs-on: ubuntu-latest
85
+ steps:
86
+ - uses: actions/checkout@v2
87
+ - uses: actions/setup-ruby@v1
88
+ - name: Setup
89
+ run : |
90
+ gem install bundler bundler-audit
91
+ bundle install
92
+ - name: Run Bundler Audit
93
+ run : bundle audit --update
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.lock
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,21 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.7
3
+
4
+ Style/FrozenStringLiteralComment:
5
+ Enabled: false
6
+
7
+ Style/StringLiterals:
8
+ Enabled: false
9
+
10
+ Metrics/BlockLength:
11
+ Exclude:
12
+ - spec/**/*
13
+
14
+ Metrics/CyclomaticComplexity:
15
+ Enabled: true
16
+
17
+ Metrics/MethodLength:
18
+ Max: 20
19
+
20
+ Layout/LineLength:
21
+ Max: 80
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 [☰](https://github.com/victorauthiat/company_number)
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at authiatv@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in company_number.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 victorauthiat
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # CompanyNumber
2
+
3
+ [![Build Status](https://github.com/victorauthiat/company_number/actions/workflows/build.yml/badge.svg)](https://github.com/victorauthiat/company_number/actions/workflows/build.yml)
4
+
5
+ CompanyNumber is a gem allowing you to validate company number based on a country code
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'company_number'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install company_number
22
+
23
+ ## Usage
24
+
25
+ You can obtain a `CompanyNumber::Number` object calling `parse` method:
26
+
27
+ ```ruby
28
+ company_number = CompanyNumber.parse('123456789', :fr)
29
+
30
+ # => #<CompanyNumber::Number:0x00007fd945013d50 @company_number="123456789", @countries=[:bg, :fr, :gr, :lt, :no, :pt, :si, :ch, :gb], @country_code=:fr, @regexp=/^(\d{9}|\d{14})$/>
31
+ ```
32
+
33
+ Then you can run validation methods
34
+
35
+ ```ruby
36
+ company_number.valid?
37
+ # => true
38
+ company_number.valid_country?
39
+ # => true
40
+ company_number.valid_for_country?(:at)
41
+ # => false
42
+ ```
43
+
44
+ You can also fetch matched countries
45
+
46
+ ```ruby
47
+ company_number.countries
48
+ # => [:bg, :fr, :gr, :lt, :no, :pt, :si, :ch, :gb]
49
+ ```
50
+
51
+ There is a `to_s` method, which returns the company number with the country code.
52
+
53
+ ```ruby
54
+ company_number.to_s
55
+ # => "123456789 fr"
56
+ ```
57
+
58
+ There is a `to_h` method, which returns all attr_reader
59
+
60
+ ```ruby
61
+ company_number.to_h
62
+ # => {:company_number=>"123456789", :country_code=>:fr, :countries=>[:bg, :fr, :gr, :lt, :no, :pt, :si, :ch, :gb], :regexp=>/^(\d{9}|\d{14})$/}
63
+ ```
64
+
65
+ You can compare 2 instances of `CompanyNumber::Number` with `==` method
66
+
67
+ ```ruby
68
+ CompanyNumber.parse('123') == CompanyNumber.parse('123')
69
+ # => true
70
+ ```
71
+
72
+ ## Development
73
+
74
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
75
+
76
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
77
+
78
+ ## Contributing
79
+
80
+ Bug reports and pull requests are welcome on GitHub at https://github.com/victorauthiat/company_number. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/victorauthiat/company_number/blob/master/CODE_OF_CONDUCT.md).
81
+
82
+ ## License
83
+
84
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
85
+
86
+ ## Code of Conduct
87
+
88
+ Everyone interacting in the CompanyNumber project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/victorauthiat/company_number/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "company_number"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/company_number/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "company_number"
7
+ spec.version = CompanyNumber::VERSION
8
+ spec.authors = ["victorauthiat"]
9
+ spec.email = ["authiatv@gmail.com"]
10
+
11
+ spec.summary = 'Validate a company number according to a country code'
12
+ spec.homepage = 'https://github.com/victorauthiat/company_number'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
16
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency 'bundler', '~> 2.2.25'
23
+ spec.add_development_dependency 'pry', '~> 0.14.1'
24
+ spec.add_development_dependency 'rake', '~> 13.0.6'
25
+ spec.add_development_dependency 'rspec', '~> 3.10.0'
26
+ spec.add_development_dependency 'simplecov', '~> 0.21.2'
27
+ end
@@ -0,0 +1,63 @@
1
+ module CompanyNumber
2
+ class Number
3
+ attr_reader :company_number, :country_code, :countries, :regexp
4
+
5
+ def initialize(company_number, country_code = nil)
6
+ validate_attributes(company_number, country_code)
7
+
8
+ @company_number = company_number
9
+ @country_code = country_code&.downcase&.to_sym
10
+ @countries = fetch_countries
11
+ @regexp = CompanyNumber::VALIDATIONS[@country_code]
12
+ end
13
+
14
+ def valid?
15
+ !valid_country? || valid_for_country?(@country_code)
16
+ end
17
+
18
+ def valid_country?
19
+ CompanyNumber::VALIDATIONS.keys.include?(@country_code)
20
+ end
21
+
22
+ def valid_for_country?(country_code)
23
+ !!(@company_number =~ CompanyNumber::VALIDATIONS[country_code])
24
+ end
25
+
26
+ def to_s
27
+ "#{@company_number} #{@country_code}"
28
+ end
29
+
30
+ def to_h
31
+ {
32
+ company_number: @company_number,
33
+ country_code: @country_code,
34
+ countries: @countries,
35
+ regexp: @regexp
36
+ }
37
+ end
38
+
39
+ def ==(other)
40
+ self.class == other.class && other.to_s == to_s
41
+ end
42
+
43
+ private
44
+
45
+ def validate_attributes(company_number, country_code)
46
+ unless company_number.is_a?(String)
47
+ raise ArgumentError, 'Expect company_number to be String'
48
+ end
49
+
50
+ return if [NilClass, Symbol, String].include?(country_code.class)
51
+
52
+ raise ArgumentError, 'Expect country_code to be String, Symbol or nil'
53
+ end
54
+
55
+ def fetch_countries
56
+ return [] if !valid_country? && @country_code
57
+
58
+ CompanyNumber::VALIDATIONS.select do |country_code, regexp|
59
+ country_code if @company_number =~ regexp
60
+ end.keys
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CompanyNumber
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "company_number/version"
4
+
5
+ module CompanyNumber
6
+ autoload :Number, 'company_number/number'
7
+
8
+ VALIDATIONS = {
9
+ at: /^([a-zA-Z]{2}\d{1,6}|\d{1,6})[A-Z]$/,
10
+ be: /^\d{10}$/,
11
+ bg: /^(\d{9}|\d{13})$/,
12
+ hr: /^(\d{8}|\d{11})$/,
13
+ cz: /^\d{8}$/,
14
+ dk: /^\d{8}$/,
15
+ ee: /^\d{8}$/,
16
+ fi: /^\d{8}$/,
17
+ fr: /^(\d{9}|\d{14})$/,
18
+ de: /^[a-zA-Z]{1,3}\d{1,6}[a-zA-Z]{0,3}$/,
19
+ gr: /^(\d{9}|\d{12})$/,
20
+ hu: /^[a-zA-Z]{2}\d{10}$/,
21
+ ie: /^(\d{5}|\d{6})$/,
22
+ is: /^\d{10}$/,
23
+ it: /^[a-zA-Z]{2}\d{7}|\d{11}$/,
24
+ lv: /^\d{11}$/,
25
+ li: /^[a-zA-Z]{3}\d{3}\s\d{3}\s\d{3}$/,
26
+ lt: /^\d{9}$/,
27
+ lu: /^[a-zA-Z]{1}\d{6}|[a-jA-J]\d{3}$/,
28
+ mt: /^[a-zA-Z]{1}\d{5}$/,
29
+ nl: /^\d{8}$/,
30
+ no: /^(\d{9}|\d{11})$/,
31
+ pl: /^(\d{6}|\d{8})$/,
32
+ pt: /^(\d{9}|\d{3,6})$/,
33
+ ro: /^\d{3}\s\d{2}\s\d{3}$/,
34
+ sk: /^\d{3}\s\d{2}\s\d{3}$/,
35
+ si: /^\d{10}|\d{7,10}$/,
36
+ es: /^[a-zA-Z]{1}(\d{8}|\d{7}[a-zA-Z]{1})$/,
37
+ se: /^\d{10}$/,
38
+ ch: /^CHE\d{9}|\d{9}$/,
39
+ gb: /^\d{8}|(OC|SC|NI)\d{6}|R\d{7}|IP\d{5}R$/
40
+ }.freeze
41
+
42
+ def self.parse(company_number, country_code = nil)
43
+ CompanyNumber::Number.new(company_number, country_code)
44
+ end
45
+ end
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: company_number
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - victorauthiat
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-09-24 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: 2.2.25
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.2.25
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.14.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.14.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 13.0.6
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 13.0.6
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.10.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.10.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.21.2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.21.2
83
+ description:
84
+ email:
85
+ - authiatv@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".github/workflows/build.yml"
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".rubocop.yml"
94
+ - CHANGELOG.md
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - company_number.gemspec
103
+ - lib/company_number.rb
104
+ - lib/company_number/number.rb
105
+ - lib/company_number/version.rb
106
+ homepage: https://github.com/victorauthiat/company_number
107
+ licenses:
108
+ - MIT
109
+ metadata: {}
110
+ post_install_message:
111
+ rdoc_options: []
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ requirements: []
125
+ rubygems_version: 3.0.3
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Validate a company number according to a country code
129
+ test_files: []