relaton-w3c 2.1.0 → 2.1.1
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/.github/workflows/rake.yml +1 -1
- data/Rakefile +1 -1
- data/lib/relaton/w3c/bibliography.rb +1 -1
- data/lib/relaton/w3c/pubid.rb +14 -0
- data/lib/relaton/w3c/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 36c34b0daf914dbc2cf41cd4fe4842fc04d67147d977ac1282b9d7f0452538d7
|
|
4
|
+
data.tar.gz: f6f0fdf9774a4bdb798b4d00e0ba4dae18e6d9ec772ce80d6604d5666fb22893
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6b3105b9b30556d46badf314f8c298718422c2cda7b9e015af0469cf64d99205238c7e786b1d7d429277ef2f58498241f99a2f170463ff273f94a53e1d58857
|
|
7
|
+
data.tar.gz: f51e0ee34082f78e51d0da502087ecd4ca7b7cb4e1903f7b2db20123ebddaf56d57c655c057825022df459f02e50ade7b1cbb7d3ad34aff4c621240aeebe6006
|
data/.github/workflows/rake.yml
CHANGED
data/Rakefile
CHANGED
|
@@ -11,7 +11,7 @@ namespace :spec do
|
|
|
11
11
|
require "net/http"
|
|
12
12
|
require "uri"
|
|
13
13
|
|
|
14
|
-
url = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/
|
|
14
|
+
url = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/v2/index-v1.zip"
|
|
15
15
|
dest = File.join(__dir__, "spec", "fixtures", "index-v1.zip")
|
|
16
16
|
|
|
17
17
|
puts "Downloading \#{url} ..."
|
|
@@ -8,7 +8,7 @@ module Relaton
|
|
|
8
8
|
module W3c
|
|
9
9
|
# Class methods for search W3C standards.
|
|
10
10
|
class Bibliography
|
|
11
|
-
SOURCE = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/
|
|
11
|
+
SOURCE = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/v2/"
|
|
12
12
|
|
|
13
13
|
class << self
|
|
14
14
|
# @param text [String]
|
data/lib/relaton/w3c/pubid.rb
CHANGED
|
@@ -54,6 +54,20 @@ module Relaton
|
|
|
54
54
|
def to_hash
|
|
55
55
|
PARTS.each_with_object({}) { |part, hash| hash[part] = send part if send part }
|
|
56
56
|
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Render docidentifier as a string, the inverse of {.parse}.
|
|
60
|
+
#
|
|
61
|
+
# @return [String] document identifier
|
|
62
|
+
#
|
|
63
|
+
def to_s
|
|
64
|
+
prefix = stage || (type if type && type != "TR")
|
|
65
|
+
base = [prefix, code].compact.join("-")
|
|
66
|
+
base = "#{base}-#{year}" if year
|
|
67
|
+
base = "#{base}-#{date}" if date
|
|
68
|
+
base = "#{base}/#{suff}" if suff
|
|
69
|
+
base
|
|
70
|
+
end
|
|
57
71
|
end
|
|
58
72
|
end
|
|
59
73
|
end
|
data/lib/relaton/w3c/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-w3c
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: linkeddata
|