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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae5d826317709e8c18d51a8b92a78a12b213d22c0f9d9dc215edbec03e9edea4
4
- data.tar.gz: 5c8e0509587c6c6cdba671fbb6d44af70df2b8c60576be9800bfd16d7b1517c4
3
+ metadata.gz: 9e95b332f0144bd7af6816a2854082c34ba658ca7f0cc593e05a046be13ed44c
4
+ data.tar.gz: 2a69c3e8a2c0cde1603f4eadcb3f078b14a4b01970c28bf43edcdffb47ca034b
5
5
  SHA512:
6
- metadata.gz: dd8ce7ce303cdb163bc0ff9a3c70b948d15f8d69051d37d1f2a77f449eab95addba439d898600c038457b7aa94b43ab80e271fafee224044029c87971ad406aa
7
- data.tar.gz: 1909f32fe4006048df00982c4ff6e1560c0dcf2cdf9fe40087cf1200e6482b14cd86ddcf92486f913d873c241d36c77e63b7fd70bad5107fbb2b7d06a187140b
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[IsoBibliographicItem model].
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 ISO Standards from https://www.iso.org, and access such metadata through the `IsoBibliographicItem` object.
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
 
@@ -1204,7 +1204,9 @@
1204
1204
  <optional>
1205
1205
  <ref name="formattedref"/>
1206
1206
  </optional>
1207
- <ref name="btitle"/>
1207
+ <oneOrMore>
1208
+ <ref name="btitle"/>
1209
+ </oneOrMore>
1208
1210
  <optional>
1209
1211
  <ref name="bplace"/>
1210
1212
  </optional>
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Plateau
5
- VERSION = "1.19.1"
5
+ VERSION = "1.19.2"
6
6
  end
7
7
  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.1
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-26 00:00:00.000000000 Z
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
- - grammar/basicdoc.rng
88
- - grammar/biblio-standoc.rng
89
- - grammar/biblio.rng
90
- - grammar/relaton-plateau-compile.rng
91
- - grammar/relaton-plateau.rng
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