relaton-omg 1.2.0 → 1.3.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/ubuntu.yml +1 -0
- data/.rubocop.yml +2 -2
- data/lib/relaton_omg/omg_bibliographic_item.rb +1 -23
- 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: 461b489469b4151a5dd567d6cfd8975064159e3bdbbe76519de89a3899931e6f
|
4
|
+
data.tar.gz: 359b1434d7a61eacaa64eda1e436a143ef9756eb72e8f65bc330286e8f203119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46f765bf50f8a4402acfd3350636c4f1f50771b444e344348d9aafc81f1726915a08ed0a41de296c756fc59fe22fe58d644d56a758e17a6b11caf02912c0b760
|
7
|
+
data.tar.gz: 894fe0f9ab20ba7c20b31050cfcc79571997dbb6ee9d4e98add50ce8637bbac93ab7ba022894b873d3faf439aef18b79cd1eebaf81b051ef1724471ee2050380
|
data/.rubocop.yml
CHANGED
@@ -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]
|
@@ -35,20 +26,7 @@ module RelatonOmg
|
|
35
26
|
# @option opts [Symbol, NilClass] :date_format (:short), :full
|
36
27
|
def to_xml(builder = nil, **opts)
|
37
28
|
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
|
29
|
+
super
|
52
30
|
end
|
53
31
|
end
|
54
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.3.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: 2020-
|
11
|
+
date: 2020-08-20 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.3.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.3.0
|
167
167
|
description: 'RelatonOmg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
|
168
168
|
model'
|
169
169
|
email:
|