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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b95f791d4851dab63d7b6fc07b66e77103829244efb6446ff13c1a2352f9ed47
4
- data.tar.gz: 85f1f3203efe994bab78befe1b17abafaf32987d5d26cf200d3ed232e4c2c8d3
3
+ metadata.gz: 05ffe60d5d13aabbeaf36188da133a0bc1ef235aa47d79935cd787783cdcf3e5
4
+ data.tar.gz: 314cb574d9366c2e224d4701d6a84b601c8c07222c6fd8eb68b1050dc451daf7
5
5
  SHA512:
6
- metadata.gz: c12d783cd2b8811b4070984c648e91ffbf91db58ea0a349c3aa0567670a9d1adfb3ab9ec2f1284c61db7f87abc20369be1492138b952d2ce643034bfaaacf45c
7
- data.tar.gz: 1fbf5161688d72b4ef47cfd4ba96d691ae98f2705fd85f086842de011bd81228eca558ade9e6cfb32be1684573de85670ea67a3a08a5d0548c3c852734fe0317
6
+ metadata.gz: 5b333cb4e949774c26b29e39bbcfd78c1999f20113037180e5d57b70b1d6fc196a4ac40d84428246eae429e221551ebcaf6fd88a4bcd0ffa42941e4517387912
7
+ data.tar.gz: 220a8897c4d5720ee9324eb4bc1dd7f22d100f6d3d9236cd573e6086bce8fe1a36bad5c47fdf0a2dbf563045b595cb23301a91c2c0dee04735dac78dd4a78214
data/.rubocop.yml CHANGED
@@ -2,6 +2,8 @@
2
2
  # https://github.com/riboseinc/oss-guides
3
3
  # All project-specific additions and overrides should be specified in this file.
4
4
 
5
+ require: rubocop-rails
6
+
5
7
  inherit_from:
6
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
7
9
  AllCops:
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.search 'OMG AMI4CCM 1.0'
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.search 'OMG 1111'
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
- === Create bibliographic item form XML
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 form Hash
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 form YAML
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
@@ -401,9 +401,9 @@
401
401
  <choice>
402
402
  <!-- iso191606 TODO -->
403
403
  <group>
404
- <oneOrMore>
404
+ <zeroOrMore>
405
405
  <ref name="street"/>
406
- </oneOrMore>
406
+ </zeroOrMore>
407
407
  <ref name="city"/>
408
408
  <optional>
409
409
  <ref name="state"/>
@@ -1,3 +1,3 @@
1
1
  module RelatonOmg
2
- VERSION = "1.9.0".freeze
2
+ VERSION = "1.10.0".freeze
3
3
  end
data/relaton_omg.gemspec CHANGED
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "vcr"
35
35
  spec.add_development_dependency "webmock"
36
36
 
37
- spec.add_dependency "relaton-bib", "~> 1.9.0"
37
+ spec.add_dependency "relaton-bib", "~> 1.10.0"
38
38
  end
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.9.0
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: 2021-08-26 00:00:00.000000000 Z
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.9.0
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.9.0
124
+ version: 1.10.0
125
125
  description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
126
126
  model'
127
127
  email: