relaton-omg 1.2.0 → 1.6.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +2 -0
- data/.github/workflows/ubuntu.yml +1 -0
- data/.rubocop.yml +2 -2
- data/README.adoc +4 -3
- data/lib/relaton_omg/omg_bibliographic_item.rb +6 -26
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afa057837ae46d0c79247462315371b88c911bf1539120b0b769989562c7d07
|
4
|
+
data.tar.gz: be180fa7cfc2f3a8ccbc4117dcf4c46f6a481152e9474de72f1960d68e688ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e8c4e9aa4719ddb9a049b8f7285ba7f2d5ceba50bf1272c170f185c43a31d15beb06169c34a255103a04b2f7bdce98d5202acf7ab01e1a0f3bdd893e9789bd
|
7
|
+
data.tar.gz: 8b2cfd39daf63c343a670f3be4b3a6d29399e581f2c65f0ce91733e6c8e17707e69d8b713af7e3ce4b4bfeec75be9fc2f22c6e0470cd2550777253b4be5ec4ac
|
data/.github/workflows/macos.yml
CHANGED
@@ -26,6 +26,8 @@ jobs:
|
|
26
26
|
- name: Update gems
|
27
27
|
run: |
|
28
28
|
sudo gem install bundler --force
|
29
|
+
ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
|
30
|
+
ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
|
29
31
|
bundle install --jobs 4 --retry 3
|
30
32
|
- name: Run specs
|
31
33
|
run: |
|
data/.rubocop.yml
CHANGED
data/README.adoc
CHANGED
@@ -36,6 +36,7 @@ Or install it yourself as:
|
|
36
36
|
[source,ruby]
|
37
37
|
----
|
38
38
|
require 'relaton_omg'
|
39
|
+
=> true
|
39
40
|
|
40
41
|
item = RelatonOmg::OmgBibliography.search 'OMG AMI4CCM 1.0'
|
41
42
|
=> #<RelatonOmg::OmgBibliographicItem:0x007fda17eab2f0
|
@@ -52,7 +53,7 @@ RelatonOmg::OmgBibliography.search 'OMG 1111'
|
|
52
53
|
[source,ruby]
|
53
54
|
----
|
54
55
|
item.to_xml
|
55
|
-
|
56
|
+
=>"<bibitem id="AMI4CCM1.0">
|
56
57
|
<fetched>2020-02-17</fetched>
|
57
58
|
<title type="main" format="text/plain" language="en" script="Latn">Asynchronous Method Invocation for CCM</title>
|
58
59
|
<uri type="src">https://www.omg.org/spec/AMI4CCM/1.0/</uri>
|
@@ -87,7 +88,7 @@ item = RelatonOmg::OmgBibliographicItem.from_xml 'spec/fixtures/omg_ami4ccm_1_0.
|
|
87
88
|
=== Create bibliographic item form Hash
|
88
89
|
[source,ruby]
|
89
90
|
----
|
90
|
-
hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.
|
91
|
+
hash = YAML.load_file 'spec/fixtures/omg_ami4ccm_1_0.yaml'
|
91
92
|
=> {"id"=>"AMI4CCM1.0",
|
92
93
|
...
|
93
94
|
|
@@ -106,7 +107,7 @@ item = RelatonOmg::OmgBibliographicItem.from_yaml 'spec/fixtures/omg_ami4ccm_1_0
|
|
106
107
|
|
107
108
|
== Contributing
|
108
109
|
|
109
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
110
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/relaton/relaton-ietf.
|
110
111
|
|
111
112
|
== License
|
112
113
|
|
@@ -1,15 +1,6 @@
|
|
1
1
|
module RelatonOmg
|
2
2
|
class OmgBibliographicItem < RelatonBib::BibliographicItem
|
3
3
|
# @return [String, NilClass]
|
4
|
-
attr_reader :doctype
|
5
|
-
|
6
|
-
# @param doctype [String]
|
7
|
-
# @param keyword [Array<String>]
|
8
|
-
def initialize(**args)
|
9
|
-
super
|
10
|
-
# @doctype = args[:doctype]
|
11
|
-
end
|
12
|
-
|
13
4
|
class << self
|
14
5
|
# @param file [String] path to YAML file
|
15
6
|
# @return [RelatonOmg::OmgBibliographicItem]
|
@@ -30,25 +21,14 @@ module RelatonOmg
|
|
30
21
|
end
|
31
22
|
end
|
32
23
|
|
33
|
-
# @param builder
|
34
24
|
# @param opts [Hash]
|
35
|
-
# @option opts [
|
36
|
-
|
25
|
+
# @option opts [Nokogiri::XML::Builder] :builder XML builder
|
26
|
+
# @option opts [Boolean] :bibdata
|
27
|
+
# @option opts [String] :lang language
|
28
|
+
# @return [String] XML
|
29
|
+
def to_xml(**opts)
|
37
30
|
opts[:date_format] ||= :short
|
38
|
-
super
|
39
|
-
# if opts[:bibdata]
|
40
|
-
# b.ext do
|
41
|
-
# b.doctype doctype if doctype
|
42
|
-
# end
|
43
|
-
# end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# @return [Hash]
|
48
|
-
def to_hash
|
49
|
-
hash = super
|
50
|
-
hash["doctype"] = doctype if doctype
|
51
|
-
hash
|
31
|
+
super
|
52
32
|
end
|
53
33
|
end
|
54
34
|
end
|
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.6.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.6.pre
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.6.pre
|
167
167
|
description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|
168
168
|
model'
|
169
169
|
email:
|
@@ -201,7 +201,7 @@ licenses:
|
|
201
201
|
metadata:
|
202
202
|
homepage_uri: https://github.com/relaton/relaton-ogn
|
203
203
|
source_code_uri: https://github.com/relaton/relaton-ogn
|
204
|
-
post_install_message:
|
204
|
+
post_install_message:
|
205
205
|
rdoc_options: []
|
206
206
|
require_paths:
|
207
207
|
- lib
|
@@ -212,12 +212,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: 2.4.0
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- - "
|
215
|
+
- - ">"
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
217
|
+
version: 1.3.1
|
218
218
|
requirements: []
|
219
219
|
rubygems_version: 3.0.6
|
220
|
-
signing_key:
|
220
|
+
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|
223
223
|
model'
|