relaton-calconnect 2.0.0.pre.alpha.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/relaton/calconnect/scraper.rb +11 -5
- data/lib/relaton/calconnect/version.rb +1 -1
- data/relaton_calconnect.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eff5f1246acef0ddfc8fdc13148865c6edb847ac294a1b51b67b26238a2bd6a8
|
|
4
|
+
data.tar.gz: c2816bd2ac945a9b4f25ded1935d8bd01855589e08eee4818f05f49d33d2ece7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83cf4b8c20eeb30ee09bde930d46be16de35b686d7bd72120f787b07052aed689be4b7df124936a6a3b725ec1078d458b0ca257919936cc92b4a5c57df867590
|
|
7
|
+
data.tar.gz: 855b74c2c51b36c43095802593aef209a3dd27a3c386134847a242fc9b60d152fe8a9e92b176b1ed35c19bf51617560e3be338ba4ffe2b208470cfbc66a47281
|
|
@@ -252,13 +252,19 @@ module Relaton
|
|
|
252
252
|
@errors[:editorialgroup] &&= eg.nil?
|
|
253
253
|
return unless eg
|
|
254
254
|
|
|
255
|
-
#
|
|
256
|
-
|
|
255
|
+
# Normalize: editorialgroup can be a single hash or an array of hashes
|
|
256
|
+
groups = array(eg).map do |g|
|
|
257
|
+
g = g[:technical_committee] if g.is_a?(Hash) && g[:technical_committee]
|
|
258
|
+
g
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
subdivisions = groups.map do |g|
|
|
262
|
+
subdiv_name = Bib::TypedLocalizedString.new content: g[:name]
|
|
263
|
+
Bib::Subdivision.new(type: "technical-committee", name: [subdiv_name])
|
|
264
|
+
end
|
|
257
265
|
|
|
258
|
-
subdiv_name = Bib::TypedLocalizedString.new content: eg[:name]
|
|
259
|
-
subdivision = Bib::Subdivision.new(type: "technical-committee", name: [subdiv_name])
|
|
260
266
|
org_name = Bib::TypedLocalizedString.new content: "CalConnect"
|
|
261
|
-
org = Bib::Organization.new name: [org_name], subdivision:
|
|
267
|
+
org = Bib::Organization.new name: [org_name], subdivision: subdivisions
|
|
262
268
|
description = Bib::LocalizedMarkedUpString.new content: "committee"
|
|
263
269
|
role = Bib::Contributor::Role.new type: "author", description: [description]
|
|
264
270
|
hash[:contributor] ||= []
|
data/relaton_calconnect.gemspec
CHANGED
|
@@ -27,7 +27,8 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
|
|
28
28
|
|
|
29
29
|
spec.add_dependency "faraday", "~> 2.7.0"
|
|
30
|
-
spec.add_dependency "relaton-bib", "~> 2.0.0
|
|
30
|
+
spec.add_dependency "relaton-bib", "~> 2.0.0"
|
|
31
31
|
spec.add_dependency "relaton-core", "~> 0.0.12"
|
|
32
|
+
spec.add_dependency "addressable", "~> 2.8"
|
|
32
33
|
spec.add_dependency "relaton-index", "~> 0.2.0"
|
|
33
34
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-calconnect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 2.0.0
|
|
32
|
+
version: 2.0.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.0.0
|
|
39
|
+
version: 2.0.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: relaton-core
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -51,6 +51,20 @@ dependencies:
|
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: 0.0.12
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: addressable
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '2.8'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '2.8'
|
|
54
68
|
- !ruby/object:Gem::Dependency
|
|
55
69
|
name: relaton-index
|
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|