relaton-omg 1.3.0 → 1.6.0
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/README.adoc +4 -3
- data/lib/relaton_omg/omg_bibliographic_item.rb +5 -3
- data/lib/relaton_omg/version.rb +1 -1
- data/relaton_omg.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef6f4bf883e2756e7ddef16e9ca9db993be8fc69849b5af269f3114de757a2b
|
4
|
+
data.tar.gz: 9583c9ca557669f21091f46a4ada882fd5197d17054b7f273ba80872547b34e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0614eb9101ba6f90bddd5cd58a893bfd4e804dd6c65a738ce8908ddea4c93d63fa6b6708a7c1d8bf2b92aea82a80142d4c3da6ce216fd6a7a12dfc716ec463
|
7
|
+
data.tar.gz: 0c53b2f8f1dec1c7c9c930bcb0accc4a7095c2506d241d29c83abb02328acb998d8ae39b9ef5390e8d2a09f4ed764d185225ef25471ffa28a9bbe409481ac138
|
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/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
|
|
@@ -21,10 +21,12 @@ module RelatonOmg
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
# @param builder
|
25
24
|
# @param opts [Hash]
|
26
|
-
# @option opts [
|
27
|
-
|
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)
|
28
30
|
opts[:date_format] ||= :short
|
29
31
|
super
|
30
32
|
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.0
|
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-13 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.0
|
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.0
|
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
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
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'
|