relaton 1.9.6 → 1.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0856681e37a3dfb7fef7e84084c49990f4f980efcdf2bd3be6e019c9baf8c3e6'
4
- data.tar.gz: 9c53c38d1b422435f5969ce02f7bee7b05d1195e57b0526a958a83abcaf2eea6
3
+ metadata.gz: daae758f0751cfb8c4682b4f74c4d67b4046290562d47e84bc7103df5da670d4
4
+ data.tar.gz: 1348bdfebcf234ac6b29c0ba5e09a357eb3d8885645671932d937a95e2528a91
5
5
  SHA512:
6
- metadata.gz: fc981fcd5df1fc7de922df2a2e979963d26ef784e4a6bc88448a632a8b09a0483292edbd2ecbe70caa129d59a7c9254c95c9307d01bd5dba6d0e28cd17832fbb
7
- data.tar.gz: 27cb0dd8f208880222fdc4d8960ef644ca9ec1b1ed678621807ca319fe0596e7a560815c78504b4ebd4de35198f91a054125e5632273a068d44781abfa62a65e
6
+ metadata.gz: 01c4d8fcc1c8a77e4425a87be0f28e5d178b758a1bedb19aaceacde9df7f9f138da4bd1df849d819d6ad2e6675a7e79479168ab9edce7800bd5491e4ee2e123d
7
+ data.tar.gz: 115ce0d39bf35ae82c973fc2043bc5f07d5b0d87ca5f6f1fc7e36cdc032c4e97c7aea9129d168c2e30f2073713f2d0128fd5d2f8de78eaa5f07344cb949723a4
data/.rubocop.yml CHANGED
@@ -2,6 +2,8 @@
2
2
  # https://github.com/riboseinc/oss-guides
3
3
  # All project-specific additions and overrides should be specified in this file.
4
4
 
5
+ require: rubocop-rails
6
+
5
7
  inherit_from:
6
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
7
9
  AllCops:
@@ -9,7 +9,7 @@ module Relaton
9
9
  relaton_gb relaton_iec relaton_ietf relaton_iso relaton_itu relaton_nist
10
10
  relaton_ogc relaton_calconnect relaton_omg relaton_un relaton_w3c
11
11
  relaton_ieee relaton_iho relaton_bipm relaton_ecma relaton_cie relaton_bsi
12
- relaton_cen relaton_iana
12
+ relaton_cen relaton_iana relaton_3gpp
13
13
  ].freeze
14
14
 
15
15
  include Singleton
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "1.9.6".freeze
2
+ VERSION = "1.9.7".freeze
3
3
  end
data/relaton.gemspec CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
30
30
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
31
31
 
32
+ spec.add_dependency "relaton-3gpp", "~> 1.9.0"
32
33
  spec.add_dependency "relaton-bipm", "~> 1.9.0"
33
34
  spec.add_dependency "relaton-bsi", "~> 1.9.0"
34
35
  spec.add_dependency "relaton-calconnect", "~> 1.9.0"
@@ -91,6 +91,10 @@ RSpec.describe Relaton::Registry do
91
91
  it "IANA" do
92
92
  expect(Relaton::Registry.instance.by_type("IANA")).to be_instance_of RelatonIana::Processor
93
93
  end
94
+
95
+ it "3GPP" do
96
+ expect(Relaton::Registry.instance.by_type("3GPP")).to be_instance_of Relaton3gpp::Processor
97
+ end
94
98
  end
95
99
 
96
100
  it "find processot by dataset" do
data/spec/relaton_spec.rb CHANGED
@@ -306,6 +306,13 @@ RSpec.describe Relaton::Db do
306
306
  end
307
307
  end
308
308
 
309
+ it "get 3GPP reference" do
310
+ VCR.use_cassette "3gpp_tr_00_01u_umts_3_0_0" do
311
+ bib = @db.fetch "3GPP TR 00.01U:UMTS/3.0.0"
312
+ expect(bib).to be_instance_of Relaton3gpp::BibliographicItem
313
+ end
314
+ end
315
+
309
316
  context "get combined documents" do
310
317
  context "ISO" do
311
318
  it "included" do
@@ -0,0 +1,112 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://raw.githubusercontent.com/relaton/relaton-data-3gpp/main/data/TR_00.01U_UMTS_3.0.0.yaml
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - raw.githubusercontent.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Length:
26
+ - '457'
27
+ Cache-Control:
28
+ - max-age=300
29
+ Content-Security-Policy:
30
+ - default-src 'none'; style-src 'unsafe-inline'; sandbox
31
+ Content-Type:
32
+ - text/plain; charset=utf-8
33
+ Etag:
34
+ - W/"5d2f491d96c7faf0fe7b769cefadb3f744327d06d70da694edc1386de14fee7a"
35
+ Strict-Transport-Security:
36
+ - max-age=31536000
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - deny
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Github-Request-Id:
44
+ - 45B8:60DB:8C2BC7:933607:61B60A00
45
+ Accept-Ranges:
46
+ - bytes
47
+ Date:
48
+ - Sun, 12 Dec 2021 14:41:05 GMT
49
+ Via:
50
+ - 1.1 varnish
51
+ X-Served-By:
52
+ - cache-sof1510064-SOF
53
+ X-Cache:
54
+ - MISS
55
+ X-Cache-Hits:
56
+ - '0'
57
+ X-Timer:
58
+ - S1639320065.893291,VS0,VE196
59
+ Vary:
60
+ - Authorization,Accept-Encoding,Origin
61
+ Access-Control-Allow-Origin:
62
+ - "*"
63
+ X-Fastly-Request-Id:
64
+ - 93f34b3047b3a5fc6b81f1b6684eeb810830e9b0
65
+ Expires:
66
+ - Sun, 12 Dec 2021 14:46:05 GMT
67
+ Source-Age:
68
+ - '0'
69
+ body:
70
+ encoding: ASCII-8BIT
71
+ string: |
72
+ ---
73
+ id: 3GPPTR00.01U-UMTS/3.0.0
74
+ title:
75
+ type: main
76
+ content: Work programme for the standardization of Universal Mobile Telecommunications
77
+ System (UMTS)
78
+ format: text/plain
79
+ link:
80
+ content: http://www.3gpp.org/ftp/Specs/archive/00_series/00.01U/0001U-300.zip
81
+ type: src
82
+ type: standard
83
+ docid:
84
+ - id: 3GPP TR 00.01U:UMTS/3.0.0
85
+ type: 3GPP
86
+ - id: '2261'
87
+ type: rapporteurId
88
+ docnumber: TR 00.01U:UMTS/3.0.0
89
+ language: en
90
+ script: Latn
91
+ docstatus:
92
+ stage:
93
+ value: withdrawn
94
+ fetched: '2021-12-09'
95
+ doctype: TR
96
+ editorialgroup:
97
+ name: SMG5
98
+ type: prime
99
+ radiotechnology: 3G
100
+ release:
101
+ version2g: '3'
102
+ version3g: '3'
103
+ defunct: true
104
+ freeze_meeting: SMG-28
105
+ freeze_stage1_meeting: SMG-28
106
+ freeze_stage2_meeting: SMG-28
107
+ freeze_stage3_meeting: SMG-28
108
+ close_meeting: SP-28
109
+ project_end: '1999-02-12'
110
+ http_version:
111
+ recorded_at: Sun, 12 Dec 2021 14:41:05 GMT
112
+ recorded_with: VCR 5.1.0
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: relaton-3gpp
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.9.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.9.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: relaton-bipm
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -528,6 +542,7 @@ files:
528
542
  - spec/support/iso_19115_1.xml
529
543
  - spec/support/iso_19115_2.xml
530
544
  - spec/support/rfc_8341.xml
545
+ - spec/vcr_cassetes/3gpp_tr_00_01u_umts_3_0_0.yml
531
546
  - spec/vcr_cassetes/api_relaton_org.yml
532
547
  - spec/vcr_cassetes/api_relaton_org_unavailable.yml
533
548
  - spec/vcr_cassetes/async_fetch.yml