relaton-cli 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton/bibdata.rb +2 -1
- data/lib/relaton/cli/relaton_file.rb +6 -4
- data/lib/relaton/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c465951c40ba63b7c43873f5f67130c5969d5159346323690c8a59da8f6615
|
4
|
+
data.tar.gz: 2102ecbb526226b4db972eb5929a9a35f8311be6835a0ac22315c858cb5795c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4946ad0413e23113edaeaa520d17d419cab1e4f9e4d1d6176284d544d7f366c48205a8ee0da0af0e8dbc3070edbc1d8c36916078c87f58e0de3f5aecc06d23ae
|
7
|
+
data.tar.gz: 9d6580f6ab0fa3e1e914c299ebfa80cf63f619b3730512d0515808b316a30535e6e2495643ff7a2ab8cfb2087fd112a6e05d75961fcc7742af3f1ac2c921f72b
|
data/lib/relaton/bibdata.rb
CHANGED
@@ -126,9 +126,11 @@ module Relaton
|
|
126
126
|
bib.root.add_namespace(nil, "xmlns")
|
127
127
|
|
128
128
|
bibdata = Relaton::Bibdata.from_xml(bib.root)
|
129
|
-
|
129
|
+
if bibdata
|
130
|
+
build_bibdata_relaton(bibdata, file)
|
130
131
|
|
131
|
-
|
132
|
+
write_to_file(bibdata.send(output_type), outdir, build_filename(file))
|
133
|
+
end
|
132
134
|
end
|
133
135
|
end
|
134
136
|
|
@@ -143,7 +145,7 @@ module Relaton
|
|
143
145
|
ietf = RelatonIetf::Scrapper.fetch_rfc rfc
|
144
146
|
doc = nokogiri_document ietf.to_xml(bibdata: true)
|
145
147
|
end
|
146
|
-
bibdata_instance(doc, xml[:file]) if doc
|
148
|
+
bibdata_instance(doc, xml[:file]) if doc&.root&.name == "bibdata"
|
147
149
|
end.compact
|
148
150
|
end
|
149
151
|
|
@@ -183,7 +185,7 @@ module Relaton
|
|
183
185
|
def bibdata_instance(document, file)
|
184
186
|
document = clean_nokogiri_document(document)
|
185
187
|
bibdata = Relaton::Bibdata.from_xml document.root
|
186
|
-
build_bibdata_relaton(bibdata, file)
|
188
|
+
build_bibdata_relaton(bibdata, file) if bibdata
|
187
189
|
|
188
190
|
bibdata
|
189
191
|
end
|
data/lib/relaton/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
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-02-
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|