company_number 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompanyNumber
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "yaml"
3
+ require "json"
4
4
  require_relative "company_number/version"
5
5
  require_relative "company_number/validation"
6
6
 
7
7
  module CompanyNumber
8
- autoload :Configuration, 'company_number/configuration'
9
- autoload :Dictionary, 'company_number/dictionary'
10
- autoload :Number, 'company_number/number'
8
+ autoload :Configuration, "company_number/configuration"
9
+ autoload :Dictionary, "company_number/dictionary"
10
+ autoload :Number, "company_number/number"
11
11
 
12
12
  class << self
13
13
  def parse(company_number, country_code = nil)
@@ -0,0 +1,433 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset='UTF-8' />
5
+ <title>RuboCop Inspection Report</title>
6
+
7
+ <style>
8
+ * {
9
+ -webkit-box-sizing: border-box;
10
+ -moz-box-sizing: border-box;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body, html {
15
+ font-size: 62.5%;
16
+ }
17
+ body {
18
+ background-color: #ecedf0;
19
+ font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
20
+ margin: 0;
21
+ }
22
+ code {
23
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
24
+ font-size: 85%;
25
+ }
26
+ #header {
27
+ background: #f9f9f9;
28
+ color: #333;
29
+ border-bottom: 3px solid #ccc;
30
+ height: 50px;
31
+ padding: 0;
32
+ }
33
+ #header .logo {
34
+ float: left;
35
+ margin: 5px 12px 7px 20px;
36
+ width: 38px;
37
+ height: 38px;
38
+ }
39
+ #header .title {
40
+ display: inline-block;
41
+ float: left;
42
+ height: 50px;
43
+ font-size: 2.4rem;
44
+ letter-spacing: normal;
45
+ line-height: 50px;
46
+ margin: 0;
47
+ }
48
+
49
+ .information, #offenses {
50
+ width: 100%;
51
+ padding: 20px;
52
+ color: #333;
53
+ }
54
+ #offenses {
55
+ padding: 0 20px;
56
+ }
57
+
58
+ .information .infobox {
59
+ border-left: 3px solid;
60
+ border-radius: 4px;
61
+ background-color: #fff;
62
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
63
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
64
+ padding: 15px;
65
+ border-color: #0088cc;
66
+ font-size: 1.4rem;
67
+ }
68
+ .information .infobox .info-title {
69
+ font-size: 1.8rem;
70
+ line-height: 2.2rem;
71
+ margin: 0 0 0.5em;
72
+ }
73
+ .information .offenses-list li {
74
+ line-height: 1.8rem
75
+ }
76
+ .information .offenses-list {
77
+ padding-left: 20px;
78
+ margin-bottom: 0;
79
+ }
80
+
81
+ #offenses .offense-box {
82
+ border-radius: 4px;
83
+ margin-bottom: 20px;
84
+ background-color: #fff;
85
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
86
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
87
+ }
88
+ .fixed .box-title {
89
+ position: fixed;
90
+ top: 0;
91
+ z-index: 10;
92
+ width: 100%;
93
+ }
94
+ .box-title-placeholder {
95
+ display: none;
96
+ }
97
+ .fixed .box-title-placeholder {
98
+ display: block;
99
+ }
100
+ #offenses .offense-box .box-title h3, #offenses .offense-box .box-title-placeholder h3 {
101
+ color: #33353f;
102
+ background-color: #f6f6f6;
103
+ font-size: 2rem;
104
+ line-height: 2rem;
105
+ display: block;
106
+ padding: 15px;
107
+ border-radius: 5px;
108
+ margin: 0;
109
+ }
110
+ #offenses .offense-box .offense-reports {
111
+ padding: 0 15px;
112
+ }
113
+ #offenses .offense-box .offense-reports .report {
114
+ border-bottom: 1px dotted #ddd;
115
+ padding: 15px 0px;
116
+ position: relative;
117
+ font-size: 1.3rem;
118
+ }
119
+ #offenses .offense-box .offense-reports .report:last-child {
120
+ border-bottom: none;
121
+ }
122
+ #offenses .offense-box .offense-reports .report pre code {
123
+ display: block;
124
+ background: #000;
125
+ color: #fff;
126
+ padding: 10px 15px;
127
+ border-radius: 5px;
128
+ line-height: 1.6rem;
129
+ }
130
+ #offenses .offense-box .offense-reports .report .location {
131
+ font-weight: bold;
132
+ }
133
+ #offenses .offense-box .offense-reports .report .message code {
134
+ padding: 0.3em;
135
+ background-color: rgba(0,0,0,0.07);
136
+ border-radius: 3px;
137
+ }
138
+ .severity {
139
+ text-transform: capitalize;
140
+ font-weight: bold;
141
+ }
142
+ .highlight {
143
+ padding: 2px;
144
+ border-radius: 2px;
145
+ font-weight: bold;
146
+ }
147
+
148
+ .severity.refactor {
149
+ color: rgba(237, 156, 40, 1.0);
150
+ }
151
+ .highlight.refactor {
152
+ background-color: rgba(237, 156, 40, 0.6);
153
+ border: 1px solid rgba(237, 156, 40, 0.4);
154
+ }
155
+
156
+ .severity.convention {
157
+ color: rgba(237, 156, 40, 1.0);
158
+ }
159
+ .highlight.convention {
160
+ background-color: rgba(237, 156, 40, 0.6);
161
+ border: 1px solid rgba(237, 156, 40, 0.4);
162
+ }
163
+
164
+ .severity.warning {
165
+ color: rgba(150, 40, 239, 1.0);
166
+ }
167
+ .highlight.warning {
168
+ background-color: rgba(150, 40, 239, 0.6);
169
+ border: 1px solid rgba(150, 40, 239, 0.4);
170
+ }
171
+
172
+ .severity.error {
173
+ color: rgba(210, 50, 45, 1.0);
174
+ }
175
+ .highlight.error {
176
+ background-color: rgba(210, 50, 45, 0.6);
177
+ border: 1px solid rgba(210, 50, 45, 0.4);
178
+ }
179
+
180
+ .severity.fatal {
181
+ color: rgba(210, 50, 45, 1.0);
182
+ }
183
+ .highlight.fatal {
184
+ background-color: rgba(210, 50, 45, 0.6);
185
+ border: 1px solid rgba(210, 50, 45, 0.4);
186
+ }
187
+
188
+ footer {
189
+ margin-bottom: 20px;
190
+ margin-right: 20px;
191
+ font-size: 1.3rem;
192
+ color: #777;
193
+ text-align: right;
194
+ }
195
+ .extra-code {
196
+ color: #ED9C28
197
+ }
198
+ </style>
199
+
200
+ <script>
201
+ (function() {
202
+ // floating headers. requires classList support.
203
+ if (!('classList' in document.createElement("_"))) return;
204
+
205
+ var loaded = false,
206
+ boxes,
207
+ boxPositions;
208
+
209
+ window.onload = function() {
210
+ var scrollY = window.scrollY;
211
+ boxes = document.querySelectorAll('.offense-box');
212
+ boxPositions = [];
213
+ for (var i = 0; i < boxes.length; i++)
214
+ // need to add scrollY because the page might be somewhere other than the top when loaded.
215
+ boxPositions[i] = boxes[i].getBoundingClientRect().top + scrollY;
216
+ loaded = true;
217
+ };
218
+
219
+ window.onscroll = function() {
220
+ if (!loaded) return;
221
+ var i,
222
+ idx,
223
+ scrollY = window.scrollY;
224
+ for (i = 0; i < boxPositions.length; i++) {
225
+ if (scrollY <= boxPositions[i] - 1) {
226
+ idx = i;
227
+ break;
228
+ }
229
+ }
230
+ if (typeof idx == 'undefined') idx = boxes.length;
231
+ if (idx > 0)
232
+ boxes[idx - 1].classList.add('fixed');
233
+ for (i = 0; i < boxes.length; i++) {
234
+ if (i < idx) continue;
235
+ boxes[i].classList.remove('fixed');
236
+ }
237
+ };
238
+ })();
239
+ </script>
240
+ </head>
241
+ <body>
242
+ <div id="header">
243
+ <img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAKQWlDQ1BJQ0Mg
244
+ UHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKG
245
+ hCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a
246
+ /cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA
247
+ 4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8
248
+ fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGln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LBvruLr57/17cPel93v3RB6kPXj/Mejj9aP1j
299
+ 7OOiJwpPKp6qP6391fjXZqm99Oyg12DPs4hnj4a4Qy//lfmvT8MFz6nPK0a0
300
+ RupHrUfPjPmM3Xqx9MXwy4yX0+OFvyn+tveV0auffnf7vWdiycTwa9HrmT9K
301
+ 3qi+OfrW9m3nZOjk03dp76anit6rvj/2gf2h+2P0x5Hp7E/4T5WfjT93fAn8
302
+ 8ngmbWbm3/eE8/syOll+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAEJGlUWHRY
303
+ TUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9i
304
+ ZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRm
305
+ OlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjIt
306
+ cmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjph
307
+ Ym91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRv
308
+ YmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0
309
+ cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICAgICAgICAgIHhtbG5z
310
+ OmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAg
311
+ ICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAv
312
+ Ij4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MTwvdGlmZjpSZXNv
313
+ bHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlm
314
+ ZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8
315
+ L3RpZmY6WFJ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xUuGt7w6ITP/Xmfoj0s8n/sFSIz
349
+ Low4Szw8Jov33F+FgfezIn+r+UDkH77/I+0K+MywRm7+0P6hGF7vM2rbIh4V
350
+ i4S1EvOeGP6ZOY+hHxKPi7GR5GkFYxDBsmwGS5RlWzSg6QYxPDlYjt7+vQfU
351
+ q2G6G6bNdF6rD1naPKZXHNk0wEx/yxEITWgLzzCTB0eoBBV2RrR3eEC7Xxcv
352
+ sHeLvXdUPcfFz2KPaLFjllc1foD7hphWsbBOLGISOxMkXZJJxLEMuWAALuEY
353
+ PcebBKBQW0XOT8Qk9ndiIbFKqlgGnBuayS+SbxGj0KUdz4sUaUdUJ492YhCL
354
+ mMSOAppMv/zGA17ajqQFawhj+YSvWI19PltixFmKqRYsyyXZKEZaS4fZnVas
355
+ hjbnNo+ChUVtVMP1omvWUaCfxW/EUuFqqTX9m21W7es8nTyl/oxrPhfaXtOX
356
+ MT5AkykHHvDSdgwpw1+iyRgfjeLiHnU8I5ri2NoYw9i4QJMpHh7w0nZw7zYm
357
+ mkS8GTP7SvX7JSKGKW64jbHEiIO96hQez3s8ZHYf+nKECKb+NtEGzpvviyYT
358
+ Pm3EcJ2D0WJajuTBQ2bYqEz8wMpkcErtu8TLxTC4X3pJNI1L0kYs0z0YudGA
359
+ FlNctOPBG64rU1RARH4kborqoPZj4mGx8cUCuVaJG8Q0cVDB/hQpDKiJ/C/K
360
+ tmQ/1f7NovNXdeqTGu5SJB6RmI5gkdvQjPZc8KyyFrk4Jm1ozhXPKTvPzE3i
361
+ itSGRrQWAo9LxR9ikQrUrAVtaCwUOMm+KB4Vm8Xm+RotaLJdALQ7Xwwq/b3i
362
+ TvFXMeuCkZPcaEBLqvgPBhCuiZo8+sAAAAAASUVORK5CYII=
363
+ " alt="">
364
+ <h1 class="title">RuboCop Inspection Report</h1>
365
+ </div>
366
+ <div class="information">
367
+ <div class="infobox">
368
+ <div class="total">
369
+ 16 files inspected,
370
+ no offenses detected:
371
+ </div>
372
+ <ul class="offenses-list">
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+ </ul>
391
+ </div>
392
+ </div>
393
+ <div id="offenses">
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+ </div>
428
+ <footer>
429
+ Generated by <a href="https://github.com/rubocop/rubocop">RuboCop</a>
430
+ <span class="version">1.23.0</span>
431
+ </footer>
432
+ </body>
433
+ </html>
metadata CHANGED
@@ -1,85 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: company_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - victorauthiat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-21 00:00:00.000000000 Z
11
+ date: 2022-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.25
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
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
26
+ version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - "~>"
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
- version: 13.0.6
33
+ version: '0'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - "~>"
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
- version: 13.0.6
40
+ version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - "~>"
45
+ - - ">="
60
46
  - !ruby/object:Gem::Version
61
- version: 3.10.0
47
+ version: '0'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - "~>"
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
- version: 3.10.0
54
+ version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: simplecov
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - "~>"
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: 0.21.2
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - "~>"
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: 0.21.2
68
+ version: '0'
83
69
  description:
84
70
  email:
85
71
  - authiatv@gmail.com
@@ -87,10 +73,12 @@ executables: []
87
73
  extensions: []
88
74
  extra_rdoc_files: []
89
75
  files:
90
- - ".github/workflows/build.yml"
76
+ - ".codeclimate.yml"
77
+ - ".github/workflows/ci.yml"
91
78
  - ".gitignore"
92
79
  - ".rspec"
93
80
  - ".rubocop.yml"
81
+ - ".simplecov"
94
82
  - CHANGELOG.md
95
83
  - CODE_OF_CONDUCT.md
96
84
  - Gemfile
@@ -100,13 +88,14 @@ files:
100
88
  - bin/console
101
89
  - bin/setup
102
90
  - company_number.gemspec
103
- - config/dictionary.yml
91
+ - config/dictionary.json
104
92
  - lib/company_number.rb
105
93
  - lib/company_number/configuration.rb
106
94
  - lib/company_number/dictionary.rb
107
95
  - lib/company_number/number.rb
108
96
  - lib/company_number/validation.rb
109
97
  - lib/company_number/version.rb
98
+ - rubocop/rubocop.html
110
99
  homepage: https://github.com/victorauthiat/company_number
111
100
  licenses:
112
101
  - MIT
@@ -119,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
108
  requirements:
120
109
  - - ">="
121
110
  - !ruby/object:Gem::Version
122
- version: '0'
111
+ version: '2.5'
123
112
  required_rubygems_version: !ruby/object:Gem::Requirement
124
113
  requirements:
125
114
  - - ">="
@@ -1,93 +0,0 @@
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:2.2.25 bundler-audit:0.9.0.1
91
- bundle install
92
- - name: Run Bundler Audit
93
- run : bundle audit --update