relaton-ieee 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -5
- data/.rubocop.yml +1 -1
- data/lib/relaton_ieee/data_fetcher.rb +4 -3
- data/lib/relaton_ieee/version.rb +1 -1
- data/relaton_ieee.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 844ccdbd633679401dc6ba625b42a18560574ef009341814c7fb2508903e5e5c
|
4
|
+
data.tar.gz: 2f49faa1f4a7e2b41f169a7385fd59e930112f2716bc8e7dc750cce42a21f003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6fab839b40e4941fc38167e2e282b2d446489a4c30a359c988aa18407cc1dd2f508b3bb8ae8bf05dbc4c7c8975de1cd047e9ae9f56e836bdd7759deea9e2244
|
7
|
+
data.tar.gz: 0656d69a5562a394252c6a2b504642b6c046b850243760195ab6ab5f81a5c996cfc344b222b867d398287e0cf6b8e15967b0bd53c81efcbfab68f451e5fa64f0
|
data/.github/workflows/rake.yml
CHANGED
@@ -16,7 +16,7 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [ '3.0', '2.7', '2.6'
|
19
|
+
ruby: [ '3.0', '2.7', '2.6' ]
|
20
20
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
21
|
experimental: [ false ]
|
22
22
|
steps:
|
@@ -24,10 +24,6 @@ jobs:
|
|
24
24
|
with:
|
25
25
|
submodules: true
|
26
26
|
|
27
|
-
# https://github.com/ruby-debug/debase/issues/89#issuecomment-686827382
|
28
|
-
- if: matrix.os == 'macos-latest' && matrix.ruby == '2.5'
|
29
|
-
run: echo BUNDLE_BUILD__DEBASE="--with-cflags=\"-Wno-error=implicit-function-declaration\"" >> $GITHUB_ENV
|
30
|
-
|
31
27
|
- uses: ruby/setup-ruby@v1
|
32
28
|
with:
|
33
29
|
ruby-version: ${{ matrix.ruby }}
|
data/.rubocop.yml
CHANGED
@@ -96,7 +96,7 @@ module RelatonIeee
|
|
96
96
|
warn "Empty file: #{filename}"
|
97
97
|
return
|
98
98
|
end
|
99
|
-
stdid = doc.at("./publicationinfo/standard_id")
|
99
|
+
stdid = doc.at("./publicationinfo/standard_id")&.text
|
100
100
|
if stdid == "0"
|
101
101
|
# nt = doc&.at("./normtitle")&.text
|
102
102
|
# ntid = @normtitles.index nt
|
@@ -196,11 +196,12 @@ module RelatonIeee
|
|
196
196
|
#
|
197
197
|
# @return [RelatonBib::DocumentRelation]
|
198
198
|
#
|
199
|
-
def create_relation(type, fref)
|
199
|
+
def create_relation(type, fref) # rubocop:disable Metrics/MethodLength
|
200
200
|
return if RELATION_TYPES[type] == false
|
201
201
|
|
202
202
|
fr = RelatonBib::FormattedRef.new(content: fref)
|
203
|
-
|
203
|
+
docid = RelatonBib::DocumentIdentifier.new(type: "IEEE", id: fref, primary: true)
|
204
|
+
bib = IeeeBibliographicItem.new formattedref: fr, docid: [docid]
|
204
205
|
desc = RELATION_TYPES[type][:description]
|
205
206
|
description = desc && RelatonBib::FormattedString.new(content: desc, language: "en", script: "Latn")
|
206
207
|
RelatonBib::DocumentRelation.new(
|
data/lib/relaton_ieee/version.rb
CHANGED
data/relaton_ieee.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
"use using the IeeeBibliographicItem model"
|
15
15
|
spec.homepage = "https://github.com/relaton/relaton-ieee"
|
16
16
|
spec.license = "BSD-2-Clause"
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
18
18
|
|
19
19
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
20
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ieee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.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: 2022-
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 2.
|
179
|
+
version: 2.6.0
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - ">="
|