relaton-omg 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/README.adoc +16 -5
- data/grammars/biblio.rng +2 -2
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05ffe60d5d13aabbeaf36188da133a0bc1ef235aa47d79935cd787783cdcf3e5
|
4
|
+
data.tar.gz: 314cb574d9366c2e224d4701d6a84b601c8c07222c6fd8eb68b1050dc451daf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b333cb4e949774c26b29e39bbcfd78c1999f20113037180e5d57b70b1d6fc196a4ac40d84428246eae429e221551ebcaf6fd88a4bcd0ffa42941e4517387912
|
7
|
+
data.tar.gz: 220a8897c4d5720ee9324eb4bc1dd7f22d100f6d3d9236cd573e6086bce8fe1a36bad5c47fdf0a2dbf563045b595cb23301a91c2c0dee04735dac78dd4a78214
|
data/.rubocop.yml
CHANGED
data/README.adoc
CHANGED
@@ -43,12 +43,12 @@ Reference format is `OMG + {ACRONYM} + {VERSION}`
|
|
43
43
|
require 'relaton_omg'
|
44
44
|
=> true
|
45
45
|
|
46
|
-
item = RelatonOmg::OmgBibliography.
|
46
|
+
item = RelatonOmg::OmgBibliography.get 'OMG AMI4CCM 1.0'
|
47
47
|
=> #<RelatonOmg::OmgBibliographicItem:0x007fda17eab2f0
|
48
48
|
...
|
49
49
|
|
50
50
|
# Return nil if document doesn't exist.
|
51
|
-
RelatonOmg::OmgBibliography.
|
51
|
+
RelatonOmg::OmgBibliography.get 'OMG 1111'
|
52
52
|
[relaton-omg] no document found for "OMG 1111" reference.
|
53
53
|
=> nil
|
54
54
|
----
|
@@ -81,7 +81,18 @@ item.to_xml
|
|
81
81
|
</bibitem>"
|
82
82
|
----
|
83
83
|
|
84
|
-
===
|
84
|
+
=== Typed links
|
85
|
+
|
86
|
+
OMG documents may have `src` and `pdf` link types.
|
87
|
+
|
88
|
+
[source,ruby]
|
89
|
+
----
|
90
|
+
item.link
|
91
|
+
=> [#<RelatonBib::TypedUri:0x00007fa897a72208 @content=#<Addressable::URI:0x80c URI:https://www.omg.org/spec/AMI4CCM/1.0/About-AMI4CCM/>, @type="src">,
|
92
|
+
#<RelatonBib::TypedUri:0x00007fa897a71600 @content=#<Addressable::URI:0x820 URI:https://www.omg.org/spec/AMI4CCM/1.0/PDF>, @type="pdf">]
|
93
|
+
----
|
94
|
+
|
95
|
+
=== Create bibliographic item from XML
|
85
96
|
|
86
97
|
[source,ruby]
|
87
98
|
----
|
@@ -90,7 +101,7 @@ item = RelatonOmg::OmgBibliographicItem.from_xml 'spec/fixtures/omg_ami4ccm_1_0.
|
|
90
101
|
...
|
91
102
|
----
|
92
103
|
|
93
|
-
=== Create bibliographic item
|
104
|
+
=== Create bibliographic item from Hash
|
94
105
|
[source,ruby]
|
95
106
|
----
|
96
107
|
hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.yaml'
|
@@ -102,7 +113,7 @@ item = RelatonOmg::OmgBibliographicItem.from_hash hash
|
|
102
113
|
...
|
103
114
|
----
|
104
115
|
|
105
|
-
=== Create bibliographic item
|
116
|
+
=== Create bibliographic item from YAML
|
106
117
|
[source,ruby]
|
107
118
|
----
|
108
119
|
item = RelatonOmg::OmgBibliographicItem.from_yaml 'spec/fixtures/omg_ami4ccm_1_0.yaml'
|
data/grammars/biblio.rng
CHANGED
data/lib/relaton_omg/version.rb
CHANGED
data/relaton_omg.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-omg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.10.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.10.0
|
125
125
|
description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|
126
126
|
model'
|
127
127
|
email:
|