relaton 1.6.0 → 1.7.pre7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +46 -0
  3. data/docs/README.adoc +233 -3
  4. data/globalcache/iec/iec_60050_102_2007.xml +58 -0
  5. data/globalcache/iec/version +1 -0
  6. data/lib/relaton.rb +8 -7
  7. data/lib/relaton/config.rb +3 -2
  8. data/lib/relaton/db.rb +247 -35
  9. data/lib/relaton/db_cache.rb +38 -7
  10. data/lib/relaton/processor.rb +11 -0
  11. data/lib/relaton/registry.rb +1 -1
  12. data/lib/relaton/version.rb +1 -1
  13. data/lib/relaton/workers_pool.rb +23 -0
  14. data/relaton.gemspec +18 -16
  15. data/spec/relaton/db_cache_spec.rb +26 -1
  16. data/spec/relaton/db_spec.rb +145 -0
  17. data/spec/relaton/processor_spec.rb +4 -0
  18. data/spec/relaton/regirtry_spec.rb +54 -44
  19. data/spec/relaton_spec.rb +121 -20
  20. data/spec/vcr_cassetes/19133_2005.yml +22 -22
  21. data/spec/vcr_cassetes/cc_dir_10005_2019.yml +10 -10
  22. data/spec/vcr_cassetes/cie_001_1980.yml +120 -0
  23. data/spec/vcr_cassetes/ecma_6.yml +159 -0
  24. data/spec/vcr_cassetes/fisp_140.yml +6 -6
  25. data/spec/vcr_cassetes/gb_t_20223_2006.yml +15 -11
  26. data/spec/vcr_cassetes/hist_cmbined_included.yml +105 -0
  27. data/spec/vcr_cassetes/iec_60050_102_2007.yml +285 -0
  28. data/spec/vcr_cassetes/iec_combined_included.yml +945 -0
  29. data/spec/vcr_cassetes/ieee_528_2019.yml +14 -14
  30. data/spec/vcr_cassetes/iho_b_11.yml +15 -15
  31. data/spec/vcr_cassetes/iso_111111119115_1.yml +4 -4
  32. data/spec/vcr_cassetes/iso_19115.yml +23 -23
  33. data/spec/vcr_cassetes/iso_19115_1.yml +22 -22
  34. data/spec/vcr_cassetes/iso_19115_1_2.yml +44 -44
  35. data/spec/vcr_cassetes/iso_awi_24229.yml +21 -21
  36. data/spec/vcr_cassetes/iso_combined_applied.yml +361 -0
  37. data/spec/vcr_cassetes/iso_combined_included.yml +361 -0
  38. data/spec/vcr_cassetes/itu_combined_included.yml +1296 -0
  39. data/spec/vcr_cassetes/ogc_19_025r1.yml +2569 -1910
  40. data/spec/vcr_cassetes/ogm_ami4ccm_1_0.yml +7 -7
  41. data/spec/vcr_cassetes/rfc_8341.yml +47 -15
  42. data/spec/vcr_cassetes/rfc_unsuccess.yml +70 -0
  43. data/spec/vcr_cassetes/sp_800_38b.yml +6 -6
  44. data/spec/vcr_cassetes/un_rtade_cefact_2004_32.yml +31 -31
  45. data/spec/vcr_cassetes/w3c_json_ld11.yml +18 -12
  46. metadata +81 -71
  47. data/.github/workflows/macos.yml +0 -34
  48. data/.github/workflows/ubuntu.yml +0 -32
  49. data/.github/workflows/windows.yml +0 -35
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-13 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton-bipm
@@ -16,196 +16,224 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.0
19
+ version: 1.7.0
20
20
  type: :runtime
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: 1.6.0
26
+ version: 1.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: relaton-calconnect
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.6.0
33
+ version: 1.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.6.0
40
+ version: 1.7.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: relaton-gb
42
+ name: relaton-cie
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.0
47
+ version: 1.7.pre1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.6.0
54
+ version: 1.7.pre1
55
55
  - !ruby/object:Gem::Dependency
56
- name: relaton-iec
56
+ name: relaton-ecma
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.6.0
61
+ version: 1.7.pre1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.6.0
68
+ version: 1.7.pre1
69
+ - !ruby/object:Gem::Dependency
70
+ name: relaton-gb
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.7.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.7.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: relaton-iec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.7.6
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.7.6
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: relaton-ieee
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: 1.6.0
103
+ version: 1.7.0
76
104
  type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: 1.6.0
110
+ version: 1.7.0
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: relaton-ietf
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: 1.6.0
117
+ version: 1.7.0
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: 1.6.0
124
+ version: 1.7.0
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: relaton-iho
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: 1.6.0
131
+ version: 1.7.0
104
132
  type: :runtime
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: 1.6.0
138
+ version: 1.7.0
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: relaton-iso
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
- - - "~>"
143
+ - - ">="
116
144
  - !ruby/object:Gem::Version
117
- version: 1.6.0
145
+ version: 1.7.1
118
146
  type: :runtime
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
- - - "~>"
150
+ - - ">="
123
151
  - !ruby/object:Gem::Version
124
- version: 1.6.0
152
+ version: 1.7.1
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: relaton-itu
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
- - - "~>"
157
+ - - ">="
130
158
  - !ruby/object:Gem::Version
131
- version: 1.6.0
159
+ version: 1.7.2
132
160
  type: :runtime
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
- - - "~>"
164
+ - - ">="
137
165
  - !ruby/object:Gem::Version
138
- version: 1.6.0
166
+ version: 1.7.2
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: relaton-nist
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
- - - "~>"
171
+ - - ">="
144
172
  - !ruby/object:Gem::Version
145
- version: 1.6.0
173
+ version: 1.7.1
146
174
  type: :runtime
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
- - - "~>"
178
+ - - ">="
151
179
  - !ruby/object:Gem::Version
152
- version: 1.6.0
180
+ version: 1.7.1
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: relaton-ogc
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
185
  - - "~>"
158
186
  - !ruby/object:Gem::Version
159
- version: 1.6.0
187
+ version: 1.7.0
160
188
  type: :runtime
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
192
  - - "~>"
165
193
  - !ruby/object:Gem::Version
166
- version: 1.6.0
194
+ version: 1.7.0
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: relaton-omg
169
197
  requirement: !ruby/object:Gem::Requirement
170
198
  requirements:
171
199
  - - "~>"
172
200
  - !ruby/object:Gem::Version
173
- version: 1.6.0
201
+ version: 1.7.0
174
202
  type: :runtime
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
178
206
  - - "~>"
179
207
  - !ruby/object:Gem::Version
180
- version: 1.6.0
208
+ version: 1.7.0
181
209
  - !ruby/object:Gem::Dependency
182
210
  name: relaton-un
183
211
  requirement: !ruby/object:Gem::Requirement
184
212
  requirements:
185
213
  - - "~>"
186
214
  - !ruby/object:Gem::Version
187
- version: 1.6.0
215
+ version: 1.7.0
188
216
  type: :runtime
189
217
  prerelease: false
190
218
  version_requirements: !ruby/object:Gem::Requirement
191
219
  requirements:
192
220
  - - "~>"
193
221
  - !ruby/object:Gem::Version
194
- version: 1.6.0
222
+ version: 1.7.0
195
223
  - !ruby/object:Gem::Dependency
196
224
  name: relaton-w3c
197
225
  requirement: !ruby/object:Gem::Requirement
198
226
  requirements:
199
227
  - - "~>"
200
228
  - !ruby/object:Gem::Version
201
- version: 1.6.0
229
+ version: 1.7.0
202
230
  type: :runtime
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
205
233
  requirements:
206
234
  - - "~>"
207
235
  - !ruby/object:Gem::Version
208
- version: 1.6.0
236
+ version: 1.7.0
209
237
  - !ruby/object:Gem::Dependency
210
238
  name: byebug
211
239
  requirement: !ruby/object:Gem::Requirement
@@ -220,20 +248,6 @@ dependencies:
220
248
  - - "~>"
221
249
  - !ruby/object:Gem::Version
222
250
  version: '11.0'
223
- - !ruby/object:Gem::Dependency
224
- name: debase
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: equivalent-xml
239
253
  requirement: !ruby/object:Gem::Requirement
@@ -332,20 +346,6 @@ dependencies:
332
346
  - - '='
333
347
  - !ruby/object:Gem::Version
334
348
  version: 0.54.0
335
- - !ruby/object:Gem::Dependency
336
- name: ruby-debug-ide
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- type: :development
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - ">="
347
- - !ruby/object:Gem::Version
348
- version: '0'
349
349
  - !ruby/object:Gem::Dependency
350
350
  name: simplecov
351
351
  requirement: !ruby/object:Gem::Requirement
@@ -414,9 +414,7 @@ executables: []
414
414
  extensions: []
415
415
  extra_rdoc_files: []
416
416
  files:
417
- - ".github/workflows/macos.yml"
418
- - ".github/workflows/ubuntu.yml"
419
- - ".github/workflows/windows.yml"
417
+ - ".github/workflows/rake.yml"
420
418
  - ".gitignore"
421
419
  - ".hound.yml"
422
420
  - ".rspec"
@@ -429,6 +427,8 @@ files:
429
427
  - bin/setup
430
428
  - docs/README.adoc
431
429
  - docs/navigation.adoc
430
+ - globalcache/iec/iec_60050_102_2007.xml
431
+ - globalcache/iec/version
432
432
  - lib/relaton.rb
433
433
  - lib/relaton/config.rb
434
434
  - lib/relaton/db.rb
@@ -444,6 +444,7 @@ files:
444
444
  - lib/relaton/static_cache/iso/iso_iec_dir_jtc_1_sup.yml
445
445
  - lib/relaton/util.rb
446
446
  - lib/relaton/version.rb
447
+ - lib/relaton/workers_pool.rb
447
448
  - relaton.gemspec
448
449
  - spec/relaton/config_spec.rb
449
450
  - spec/relaton/db_cache_spec.rb
@@ -459,8 +460,13 @@ files:
459
460
  - spec/support/rfc_8341.xml
460
461
  - spec/vcr_cassetes/19133_2005.yml
461
462
  - spec/vcr_cassetes/cc_dir_10005_2019.yml
463
+ - spec/vcr_cassetes/cie_001_1980.yml
464
+ - spec/vcr_cassetes/ecma_6.yml
462
465
  - spec/vcr_cassetes/fisp_140.yml
463
466
  - spec/vcr_cassetes/gb_t_20223_2006.yml
467
+ - spec/vcr_cassetes/hist_cmbined_included.yml
468
+ - spec/vcr_cassetes/iec_60050_102_2007.yml
469
+ - spec/vcr_cassetes/iec_combined_included.yml
464
470
  - spec/vcr_cassetes/ieee_528_2019.yml
465
471
  - spec/vcr_cassetes/iho_b_11.yml
466
472
  - spec/vcr_cassetes/iso_111111119115_1.yml
@@ -468,10 +474,14 @@ files:
468
474
  - spec/vcr_cassetes/iso_19115_1.yml
469
475
  - spec/vcr_cassetes/iso_19115_1_2.yml
470
476
  - spec/vcr_cassetes/iso_awi_24229.yml
477
+ - spec/vcr_cassetes/iso_combined_applied.yml
478
+ - spec/vcr_cassetes/iso_combined_included.yml
471
479
  - spec/vcr_cassetes/iso_iec_guide_2.yml
480
+ - spec/vcr_cassetes/itu_combined_included.yml
472
481
  - spec/vcr_cassetes/ogc_19_025r1.yml
473
482
  - spec/vcr_cassetes/ogm_ami4ccm_1_0.yml
474
483
  - spec/vcr_cassetes/rfc_8341.yml
484
+ - spec/vcr_cassetes/rfc_unsuccess.yml
475
485
  - spec/vcr_cassetes/sp_800_38b.yml
476
486
  - spec/vcr_cassetes/un_rtade_cefact_2004_32.yml
477
487
  - spec/vcr_cassetes/w3c_json_ld11.yml
@@ -490,9 +500,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
490
500
  version: 2.4.0
491
501
  required_rubygems_version: !ruby/object:Gem::Requirement
492
502
  requirements:
493
- - - ">="
503
+ - - ">"
494
504
  - !ruby/object:Gem::Version
495
- version: '0'
505
+ version: 1.3.1
496
506
  requirements: []
497
507
  rubygems_version: 3.0.6
498
508
  signing_key:
@@ -1,34 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: macos
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- branches: [ '**' ]
10
-
11
- jobs:
12
- test-macos:
13
- name: Test on Ruby ${{ matrix.ruby }} macOS
14
- runs-on: macos-latest
15
- strategy:
16
- fail-fast: false
17
- matrix:
18
- ruby: [ '2.6', '2.5', '2.4' ]
19
- steps:
20
- - uses: actions/checkout@master
21
- - name: Use Ruby
22
- uses: actions/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby }}
25
- architecture: 'x64'
26
- - name: Update gems
27
- run: |
28
- sudo gem install bundler --force
29
- ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
30
- ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
31
- bundle install --jobs 4 --retry 3
32
- - name: Run specs
33
- run: |
34
- bundle exec rake
@@ -1,32 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: ubuntu
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- branches: [ '**' ]
10
-
11
- jobs:
12
- test-linux:
13
- name: Test on Ruby ${{ matrix.ruby }} Ubuntu
14
- runs-on: ubuntu-latest
15
- strategy:
16
- fail-fast: false
17
- matrix:
18
- ruby: [ '2.6', '2.5', '2.4' ]
19
- steps:
20
- - uses: actions/checkout@master
21
- - name: Use Ruby
22
- uses: actions/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby }}
25
- architecture: 'x64'
26
- - name: Update gems
27
- run: |
28
- gem install bundler
29
- bundle install --jobs 4 --retry 3
30
- - name: Run specs
31
- run: |
32
- bundle exec rake