relaton-plateau 1.19.1 → 1.19.2
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/README.adoc +3 -3
- data/{grammar → grammars}/biblio.rng +3 -1
- data/lib/relaton/plateau/parser.rb +14 -1
- data/lib/relaton/plateau/version.rb +1 -1
- metadata +7 -7
- /data/{grammar → grammars}/basicdoc.rng +0 -0
- /data/{grammar → grammars}/biblio-standoc.rng +0 -0
- /data/{grammar → grammars}/relaton-plateau-compile.rng +0 -0
- /data/{grammar → grammars}/relaton-plateau.rng +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e95b332f0144bd7af6816a2854082c34ba658ca7f0cc593e05a046be13ed44c
|
|
4
|
+
data.tar.gz: 2a69c3e8a2c0cde1603f4eadcb3f078b14a4b01970c28bf43edcdffb47ca034b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38f9bbd18d7ee0d63a9c0bdf25882af04004f863576a1999bf0f09d13effef3508c2acbe50cfbc9d3bafdcfd45fb91d688e5f328081427913969c21c1570ce05
|
|
7
|
+
data.tar.gz: 8e9bc8e67859ec617f302d1b080646be8e4157729619f71ee3e2fe3005984249ba36674fe48df663f444f0d06f3eb90ff0d7755107b11c8f966a0c8e149e6b3c
|
data/README.adoc
CHANGED
|
@@ -6,11 +6,11 @@ image:https://github.com/relaton/relaton-plateau/workflows/windows/badge.svg["Bu
|
|
|
6
6
|
image:https://github.com/relaton/relaton-plateau/workflows/ubuntu/badge.svg["Build Status (Ubuntu)", link="https://github.com/relaton/relaton-plateau/actions?workflow=ubuntu"]
|
|
7
7
|
image:https://codeclimate.com/github/relaton/relaton-plateau/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/relaton-plateau"]
|
|
8
8
|
image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-plateau.svg["Pull Requests", link="https://github.com/relaton/relaton-plateau/pulls"]
|
|
9
|
-
image:https://img.shields.io/github/commits-since/relaton/relaton/latest.svg["Commits since latest",link="https://github.com/relaton/relaton/releases"]
|
|
9
|
+
image:https://img.shields.io/github/commits-since/relaton/relaton/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-plateau/releases"]
|
|
10
10
|
|
|
11
|
-
RelatonPlateau is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-plateau#iso-bibliographic-item[
|
|
11
|
+
RelatonPlateau is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-plateau#iso-bibliographic-item[BibliographicItem model].
|
|
12
12
|
|
|
13
|
-
You can use it to retrieve metadata of
|
|
13
|
+
You can use it to retrieve metadata of Plateau Standards from GitHub repositori, and access such metadata through the `BibliographicItem` object.
|
|
14
14
|
|
|
15
15
|
== Installation
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@ module Relaton
|
|
|
2
2
|
module Plateau
|
|
3
3
|
class Parser
|
|
4
4
|
ATTRIS = %i[docid title abstract cover edition type doctype subdoctype
|
|
5
|
-
date link filesize keyword structuredidentifier].freeze
|
|
5
|
+
date link contributor filesize keyword structuredidentifier].freeze
|
|
6
6
|
|
|
7
7
|
def initialize(item)
|
|
8
8
|
@item = item
|
|
@@ -53,6 +53,19 @@ module Relaton
|
|
|
53
53
|
def parse_date; [] end
|
|
54
54
|
def parse_link; [] end
|
|
55
55
|
|
|
56
|
+
def parse_contributor
|
|
57
|
+
name = [
|
|
58
|
+
{ content: "国土交通省都市局", language: "ja", script: "Jpan" },
|
|
59
|
+
{
|
|
60
|
+
content: "Japanese Ministry of Land, Infrastructure, Transport and Tourism",
|
|
61
|
+
language: "en",
|
|
62
|
+
script: "Latn"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
org = RelatonBib::Organization.new(name: name, abbreviation: "MLIT")
|
|
66
|
+
[RelatonBib::ContributionInfo.new(entity: org, role: [type: "publisher"])]
|
|
67
|
+
end
|
|
68
|
+
|
|
56
69
|
def create_date(date, type = "published")
|
|
57
70
|
RelatonBib::BibliographicDate.new(type: type, on: date)
|
|
58
71
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-plateau
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.19.
|
|
4
|
+
version: 1.19.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-07-
|
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -84,11 +84,11 @@ files:
|
|
|
84
84
|
- Rakefile
|
|
85
85
|
- bin/console
|
|
86
86
|
- bin/setup
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
87
|
+
- grammars/basicdoc.rng
|
|
88
|
+
- grammars/biblio-standoc.rng
|
|
89
|
+
- grammars/biblio.rng
|
|
90
|
+
- grammars/relaton-plateau-compile.rng
|
|
91
|
+
- grammars/relaton-plateau.rng
|
|
92
92
|
- lib/relaton/plateau.rb
|
|
93
93
|
- lib/relaton/plateau/bibitem.rb
|
|
94
94
|
- lib/relaton/plateau/bibliography.rb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|