relaton-w3c 1.14.2 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -1
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/Gemfile +1 -0
- data/grammars/biblio.rng +1 -1
- data/lib/relaton_w3c/data_fetcher.rb +2 -2
- data/lib/relaton_w3c/version.rb +1 -1
- data/lib/relaton_w3c/w3c_bibliography.rb +3 -1
- data/relaton_w3c.gemspec +3 -5
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 845e2b18fd329b3f50315eebb7cdf91bd467d53397c65cd2a9124b09d9683e61
|
4
|
+
data.tar.gz: ed906f6bd964ac5af614c1ff88b485d73af30eb4006c6fdea7372f130ebd54cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: debbdc5fb438e7290748f825859dd432d75d19b4937ef5d749f66c0e899c0e6d9ba3e5287239898b1c773ec9c3832fed89050abacb913fee7171446211d015ea
|
7
|
+
data.tar.gz: 7e007f96fe6a1d712f9cb8766df8b844d1bcd61965e038fb28a3954b50b9d5d485bd7d6849627edc4a13902a94f2de9a0136f98adb4eaffabc194c701f8757fc
|
@@ -7,7 +7,8 @@ on:
|
|
7
7
|
inputs:
|
8
8
|
next_version:
|
9
9
|
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
|
11
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
11
12
|
required: true
|
12
13
|
default: 'skip'
|
13
14
|
repository_dispatch:
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/grammars/biblio.rng
CHANGED
@@ -74,13 +74,13 @@ module RelatonW3c
|
|
74
74
|
if File.exist? file
|
75
75
|
item = send "read_#{@format}", file
|
76
76
|
item.relation.each do |r1|
|
77
|
-
r1.type = "hasEdition" if r1.type == "
|
77
|
+
r1.type = "hasEdition" if r1.type == "instanceOf"
|
78
78
|
same_edition = bib.relation.detect { |r2| same_edition?(r1, r2) }
|
79
79
|
bib.relation << r1 unless same_edition
|
80
80
|
end
|
81
81
|
end
|
82
82
|
bib.relation.select { |r| r.type == "hasEdition" }
|
83
|
-
.max_by { |r| r.bibitem.id.match(/(?<=-)\d{8}$/).to_s }&.type = "
|
83
|
+
.max_by { |r| r.bibitem.id.match(/(?<=-)\d{8}$/).to_s }&.type = "instanceOf"
|
84
84
|
end
|
85
85
|
|
86
86
|
#
|
data/lib/relaton_w3c/version.rb
CHANGED
@@ -13,7 +13,9 @@ module RelatonW3c
|
|
13
13
|
# @return [RelatonW3c::W3cBibliographicItem]
|
14
14
|
def search(text) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
15
15
|
pubid = PubId.parse text.sub(/^W3C\s/, "")
|
16
|
-
index = Relaton::Index.find_or_create
|
16
|
+
index = Relaton::Index.find_or_create(
|
17
|
+
:W3C, url: "#{SOURCE}#{INDEX}.zip", file: "#{INDEX}.yaml", id_keys: PubId::PARTS
|
18
|
+
)
|
17
19
|
row = index.search { |r| pubid == r[:id] }.first
|
18
20
|
return unless row
|
19
21
|
|
data/relaton_w3c.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
"using the IsoBibliographicItem model"
|
15
15
|
spec.homepage = "https://github.com/relaton/relaton-wc3"
|
16
16
|
spec.license = "BSD-2-Clause"
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
18
18
|
|
19
19
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
20
20
|
|
@@ -31,14 +31,12 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
|
-
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
35
|
-
|
36
34
|
spec.add_dependency "linkeddata", "~> 3.2.0"
|
37
35
|
spec.add_dependency "mechanize", "~> 2.8.0"
|
38
36
|
spec.add_dependency "rdf", "~> 3.2.0"
|
39
37
|
spec.add_dependency "rdf-normalize", "~> 0.5.0"
|
40
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
41
|
-
spec.add_dependency "relaton-index", "~> 0.2.
|
38
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
39
|
+
spec.add_dependency "relaton-index", "~> 0.2.4"
|
42
40
|
spec.add_dependency "rubyzip", "~> 2.3.0"
|
43
41
|
spec.add_dependency "shex", "~> 0.7.0"
|
44
42
|
spec.add_dependency "sparql", "~> 3.2.0"
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-w3c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: equivalent-xml
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.6'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.6'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: linkeddata
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +72,28 @@ dependencies:
|
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
75
|
+
version: 1.16.0
|
90
76
|
type: :runtime
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
82
|
+
version: 1.16.0
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: relaton-index
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.2.
|
89
|
+
version: 0.2.4
|
104
90
|
type: :runtime
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.2.
|
96
|
+
version: 0.2.4
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rubyzip
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
189
|
requirements:
|
204
190
|
- - ">="
|
205
191
|
- !ruby/object:Gem::Version
|
206
|
-
version: 2.
|
192
|
+
version: 2.7.0
|
207
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
194
|
requirements:
|
209
195
|
- - ">="
|