relaton-w3c 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_w3c/version.rb +1 -1
- data/lib/relaton_w3c/w3c_bibliographic_item.rb +0 -23
- data/relaton_w3c.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: '0609ad90edb48cdb1289f78c18cc532b50b5fe4b7e734dfb3e3d093985978494'
|
4
|
+
data.tar.gz: c61ffb78a67b314c325f06806ec63b0265a664837b3d36b1ee81eeaddc917a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f21761fb55b87d2b4bbb1cc6777181c18b9cd591e63cc3ab6d2f910304cda96a84aa4dfe848ef90de0fb0baea0019b3cf017c47c971ad9e8693b33fedecb5f
|
7
|
+
data.tar.gz: f7ade432b4e528ab2b9bc1c0a4e29fb7b5cdac64cd574f1adcf2e698a0e6bea8fdc4b86d8b5dc7052f1c183b33699046cfb51b4a99fe280c884d101c6f5e81bb
|
data/.rubocop.yml
CHANGED
data/lib/relaton_w3c/version.rb
CHANGED
@@ -5,35 +5,12 @@ module RelatonW3c
|
|
5
5
|
proposedRecommendation recommendation retired workingDraft
|
6
6
|
].freeze
|
7
7
|
|
8
|
-
attr_reader :doctype
|
9
|
-
|
10
8
|
# @param doctype [String]
|
11
9
|
def initialize(**args)
|
12
10
|
if args[:doctype] && !TYPES.include?(args[:doctype])
|
13
11
|
warn "[relaton-w3c] invalid document type: #{args[:doctype]}"
|
14
12
|
end
|
15
13
|
super **args
|
16
|
-
# @doctype = args[:doctype]
|
17
|
-
end
|
18
|
-
|
19
|
-
# @param builder [Nokogiri::XML::Builder, NilClass]
|
20
|
-
# @param opts [Hash]
|
21
|
-
# @option opts [TrueClass, FalseClass, NilClass] bibdata
|
22
|
-
def to_xml(builder = nil, **opts)
|
23
|
-
super builder, **opts do |b|
|
24
|
-
if opts[:bibdata] && doctype
|
25
|
-
b.ext do |e|
|
26
|
-
e.doctype doctype if doctype
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
# @return [Hash]
|
33
|
-
def to_hash
|
34
|
-
hash = super
|
35
|
-
hash["doctype"] = doctype if doctype
|
36
|
-
hash
|
37
14
|
end
|
38
15
|
end
|
39
16
|
end
|
data/relaton_w3c.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-w3c
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.3.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.3.0
|
125
125
|
description: 'RelatonIso: retrieve W3C Standards for bibliographic using the IsoBibliographicItem
|
126
126
|
model'
|
127
127
|
email:
|