relaton-un 2.0.1 → 2.1.0

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: 136ee52ed50447fc064129777ee52bcf2ab5458ede46082d0a02a4fe0521f059
4
- data.tar.gz: c521ceeff0222f4fb0ac9b45316f67bffe636c44078b8f1f75990d9e5a85d914
3
+ metadata.gz: 0d4039da98331ed950c1b39945ac3ae22fcca20279b6fe151d91c1e7e65c0811
4
+ data.tar.gz: 10ed51aa8d99ad31c732fc280dc120f482663e44bfc8c25191408835ad17eb6a
5
5
  SHA512:
6
- metadata.gz: d33306628aec979c802d9141d3434f360099fa7ee294a5a5e3a975df361a557273847e2846fd38eaeb4c1ba96f2a351ba47a7e6fe125b77552eb38f3bbe5f69e
7
- data.tar.gz: 9c5d6c61b111e6856f32c584ef6e1832c6245298383e55c3fecda05e63fd454abb53af4e21b15a1dda08c1ca4af5d64cafc4d5866d2a6b5353b5d48f645d607f
6
+ metadata.gz: 0504dc57daa40acdbd2255ce64c8244794183c0c9e24e1f14c82e723f3655be36ba628af91568cb950442fcfd6aad9a8e57b8bb5beb8451cd39f2a02125580ff
7
+ data.tar.gz: 1929cc7e26616e2f2245d562b0c20927b4396a5363a23faee610f6723ddff02ad93223473516897c5455f25f9a983a8ca4de4011f5f561d563cfcb2d8b244f37
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in relaton-un.gemspec
4
4
  gemspec
5
5
 
6
+
6
7
  gem "equivalent-xml", "~> 0.6"
7
8
  gem "rake", "~> 13.0"
8
9
  gem "rspec", "~> 3.0"
data/grammars/biblio.rng CHANGED
@@ -2015,15 +2015,11 @@ provided that it is not the entire bibliographic item that is so related</a:docu
2015
2015
  <a:documentation>A version of the bibliographic item (within an edition). Can be used for drafts</a:documentation>
2016
2016
  <element name="version">
2017
2017
  <optional>
2018
- <ref name="revision-date">
2019
- <a:documentation>The date at which the current version of the bibliographic item was produced</a:documentation>
2020
- </ref>
2021
- </optional>
2022
- <optional>
2023
- <ref name="draft">
2024
- <a:documentation>The identifier for the current draft of the bibliographic item</a:documentation>
2025
- </ref>
2018
+ <attribute name="type">
2019
+ <a:documentation>Versioning scheme, in case of multiple versioning schemes</a:documentation>
2020
+ </attribute>
2026
2021
  </optional>
2022
+ <text/>
2027
2023
  </element>
2028
2024
  </define>
2029
2025
  <define name="vedition">
@@ -1,6 +1,7 @@
1
1
  module Relaton
2
2
  module Un
3
3
  class Bibdata < Item
4
+ model ItemData
4
5
  include Bib::BibdataShared
5
6
  end
6
7
  end
@@ -1,6 +1,7 @@
1
1
  module Relaton
2
2
  module Un
3
3
  class Bibitem < Item
4
+ model ItemData
4
5
  include Bib::BibitemShared
5
6
  end
6
7
  end
@@ -4,7 +4,6 @@ require_relative "session"
4
4
  module Relaton
5
5
  module Un
6
6
  class Ext < Bib::Ext
7
- attribute :schema_version, method: :get_schema_version
8
7
  attribute :doctype, Doctype
9
8
  attribute :submissionlanguage, :string, collection: true
10
9
  attribute :distribution, :string, values: %w[general limited restricted provisional]
@@ -18,9 +17,14 @@ module Relaton
18
17
  map_element "job_number", to: :job_number
19
18
  end
20
19
 
21
- def get_schema_version
22
- Relaton.schema_versions["relaton-model-un"]
20
+ key_value do
21
+ map "submissionlanguage", to: :submissionlanguage
22
+ map "distribution", to: :distribution
23
+ map "session", to: :session
24
+ map "job_number", to: :job_number
23
25
  end
26
+
27
+ def get_schema_version = Relaton.schema_versions["relaton-model-un"]
24
28
  end
25
29
  end
26
30
  end
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Un
3
- VERSION = "2.0.1".freeze
3
+ VERSION = "2.1.0".freeze
4
4
  end
5
5
  end
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_dependency "addressable", "~> 2.8"
36
36
  spec.add_dependency "faraday", "~> 2.7"
37
- spec.add_dependency "relaton-bib", "~> 2.0.0"
37
+ spec.add_dependency "relaton-bib", "~> 2.1.0"
38
38
  spec.add_dependency "relaton-core", "~> 0.0.13"
39
39
  spec.add_dependency "wasmtime", "~> 41.0"
40
40
  end
data/resp.html CHANGED
@@ -62,16 +62,16 @@
62
62
  </div><input type="hidden" id="view:_id1:_id2:hdnSubj" name="view:_id1:_id2:hdnSubj" value=""></div></div></div><div class="container" id="mainContent"><div id="view:_id1:_id2:cbMain">
63
63
  <div class="panelHeight">
64
64
  <div class="row"><div class="col-md-4"><h5><span class="ucase">DAILY DOCUMENTS</span></h5><span id="view:_id1:_id2:cbMain:cfDDs"><p><a href="http://www.un.org/en/documents/journal.asp" target="_blank"><i class="fa fa-file"></i>&#160;&#160;Daily Journal (New York)</a></p> <p><a href="http://daccess-ods.un.org/ods/dailyListOfDocuments.htm" target="_blank"><i class="fa fa-file"></i>&#160;&#160;Daily Documents</a></p> <p><a href="http://www.unog.ch/__80256ee600586f34.nsf/httpDailyBulletin_External?ReadForm" target="_blank"><i class="fa fa-file"></i>&#160;&#160;Daily Bulletin (Geneva)</a></p></span></div><div class="col-md-4"><h5><span class="ucase">MOST DOWNLOADED DOCUMENTS (1-5)</span></h5><span id="view:_id1:_id2:cbMain:cfMDDs1"><p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=A/RES/70/1&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;A/RES/70/1</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=A/RES/73/195&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;A/RES/73/195</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=E/2019/68&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;E/2019/68</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=S/AC.44/2019/18&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;S/AC.44/2019/18</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=A/RES/217(III)&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;A/RES/217(III)</a></p></span></div><div class="col-md-4"><h5><span class="ucase">MOST DOWNLOADED DOCUMENTS (6-10)</span></h5><span id="view:_id1:_id2:cbMain:cfMDDs2"><p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=S/RES/2511(2020)&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;S/RES/2511(2020)</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=A/74/102/ADD.2&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;A/74/102/ADD.2</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=S/2020/157&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;S/2020/157</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=A/RES/71/1&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;A/RES/71/1</a></p> <p><a href="http://daccess-ods.un.org/access.nsf/Get?Open&DS=E/CN.6/2020/3&Lang=E" target="_blank"><i class="fa fa-file"></i>&#160;&#160;E/CN.6/2020/3</a></p></span></div></div><p class="pageHeader">Official Document System of the United Nations</p><div class="row"><div class="col-md-12"><div id="view:_id1:_id2:cbMain:en">
65
- <div id="view:_id1:_id2:cbMain:_id150:inputRichText1">The Official Document System (ODS) is an online database of UN documents that was first launched in 1993 and updated in 2016. ODS has full-text, born-digital UN documents published from 1993 onward, including documents of the Security Council, the General Assembly, the Economic and Social Council and their subsidiaries, as well as administrative issuances and other documents. <br>
66
- <br>
67
- The database also includes scanned documents published between 1946 and 1993, including all resolutions of the principal organs, all documents of the Security Council and the General Assembly Official Records. Documents are available in the official languages of the UN; some documents are also available in German. <br>
68
- <br>
69
- ODS does not have the following types of materials: documents issued before 1993 that have not yet been digitized, <a href="http://www.un.org/press/en" target="_blank">press releases</a>, <a href="https://shop.un.org/" target="_blank">sales publications</a>, such as the Yearbook and the <a href="https://treaties.un.org/" target="_blank">Treaty Series</a>, and documents that do not have a UN symbol. <br>
70
- <br>
71
- ODS is maintained by the <a href="https://unite.un.org/" target="_blank">Office of Information and Communications Technology (OICT)</a>. New documents are added by the Department for General Assembly and Conference Management (DGACM). Scanned documents and metadata are contributed by the Dag Hammarskjöld Library and the UN Office at Geneva Library. <br>
72
- <br>
73
- This website is best used in recent versions of all major browsers. To download multiple documents, please use Google Chrome or Opera.<br>
74
- <br>
65
+ <div id="view:_id1:_id2:cbMain:_id150:inputRichText1">The Official Document System (ODS) is an online database of UN documents that was first launched in 1993 and updated in 2016. ODS has full-text, born-digital UN documents published from 1993 onward, including documents of the Security Council, the General Assembly, the Economic and Social Council and their subsidiaries, as well as administrative issuances and other documents. <br>
66
+ <br>
67
+ The database also includes scanned documents published between 1946 and 1993, including all resolutions of the principal organs, all documents of the Security Council and the General Assembly Official Records. Documents are available in the official languages of the UN; some documents are also available in German. <br>
68
+ <br>
69
+ ODS does not have the following types of materials: documents issued before 1993 that have not yet been digitized, <a href="http://www.un.org/press/en" target="_blank">press releases</a>, <a href="https://shop.un.org/" target="_blank">sales publications</a>, such as the Yearbook and the <a href="https://treaties.un.org/" target="_blank">Treaty Series</a>, and documents that do not have a UN symbol. <br>
70
+ <br>
71
+ ODS is maintained by the <a href="https://unite.un.org/" target="_blank">Office of Information and Communications Technology (OICT)</a>. New documents are added by the Department for General Assembly and Conference Management (DGACM). Scanned documents and metadata are contributed by the Dag Hammarskjöld Library and the UN Office at Geneva Library. <br>
72
+ <br>
73
+ This website is best used in recent versions of all major browsers. To download multiple documents, please use Google Chrome or Opera.<br>
74
+ <br>
75
75
  If you have any questions or problems, please contact the Information and Communications Technology Service Desk by <a href="mailto:helpdeskoict@un.org?Subject=ODS">e-mail</a>.</div></div>
76
76
  </div></div></div>
77
77
  </div>
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-05-04 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: addressable
@@ -43,14 +44,14 @@ dependencies:
43
44
  requirements:
44
45
  - - "~>"
45
46
  - !ruby/object:Gem::Version
46
- version: 2.0.0
47
+ version: 2.1.0
47
48
  type: :runtime
48
49
  prerelease: false
49
50
  version_requirements: !ruby/object:Gem::Requirement
50
51
  requirements:
51
52
  - - "~>"
52
53
  - !ruby/object:Gem::Version
53
- version: 2.0.0
54
+ version: 2.1.0
54
55
  - !ruby/object:Gem::Dependency
55
56
  name: relaton-core
56
57
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +123,7 @@ files:
122
123
  - lib/relaton/un/util.rb
123
124
  - lib/relaton/un/version.rb
124
125
  - lib/relaton/un/wasm_v_bg.wasm
125
- - relaton_un.gemspec
126
+ - relaton-un.gemspec
126
127
  - resp.html
127
128
  homepage: https://github.com/relaton/relaton-un
128
129
  licenses:
@@ -130,6 +131,7 @@ licenses:
130
131
  metadata:
131
132
  homepage_uri: https://github.com/relaton/relaton-un
132
133
  source_code_uri: https://github.com/relaton/relaton-un
134
+ post_install_message:
133
135
  rdoc_options: []
134
136
  require_paths:
135
137
  - lib
@@ -144,7 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
146
  - !ruby/object:Gem::Version
145
147
  version: '0'
146
148
  requirements: []
147
- rubygems_version: 3.6.9
149
+ rubygems_version: 3.5.22
150
+ signing_key:
148
151
  specification_version: 4
149
152
  summary: 'Relaton::Un: retrieve CC Standards for bibliographic use using the IsoBibliographicItem
150
153
  model'