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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13b1cff0388614accbd3e92eb118b4af836dcb22ff9844c0f07085593286f549
4
- data.tar.gz: b4eb76c6c066551c76ce7a46618600627a3dec79fbe4d3072f038780d4ffa3b4
3
+ metadata.gz: 36c34b0daf914dbc2cf41cd4fe4842fc04d67147d977ac1282b9d7f0452538d7
4
+ data.tar.gz: f6f0fdf9774a4bdb798b4d00e0ba4dae18e6d9ec772ce80d6604d5666fb22893
5
5
  SHA512:
6
- metadata.gz: b1fa3ce8ff6601acbd02b63c685e5218547da53ee43e8845dbe12bd7182ddf003cfdd8729bfa0a051f498bda2a242c8f8b6c1e49093face23d3423b93fef3c3b
7
- data.tar.gz: ea0d9a344e540ab2a08bf157b38265f246a28c92d0b93cab2f0779360e0f58f25405c896f0511a37cad30f69b5fdd9a9ac1254c23e1b5ee3b300d745e28b974a
6
+ metadata.gz: a6b3105b9b30556d46badf314f8c298718422c2cda7b9e015af0469cf64d99205238c7e786b1d7d429277ef2f58498241f99a2f170463ff273f94a53e1d58857
7
+ data.tar.gz: f51e0ee34082f78e51d0da502087ecd4ca7b7cb4e1903f7b2db20123ebddaf56d57c655c057825022df459f02e50ade7b1cbb7d3ad34aff4c621240aeebe6006
@@ -4,7 +4,7 @@ name: rake
4
4
 
5
5
  on:
6
6
  push:
7
- branches: [ master, main ]
7
+ branches: [ master, main, lutaml-integration ]
8
8
  tags: [ v* ]
9
9
  pull_request:
10
10
 
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/data-v2/index-v1.zip"
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/data-v2/"
11
+ SOURCE = "https://raw.githubusercontent.com/relaton/relaton-data-w3c/v2/"
12
12
 
13
13
  class << self
14
14
  # @param text [String]
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module W3c
3
- VERSION = "2.1.0".freeze
3
+ VERSION = "2.1.1".freeze
4
4
  end
5
5
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2026-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: linkeddata