relaton-ecma 1.14.5 → 1.16.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/release.yml +2 -1
- data/grammars/biblio.rng +1 -1
- data/lib/relaton_ecma/data_parser.rb +3 -3
- data/lib/relaton_ecma/ecma_bibliography.rb +1 -1
- data/lib/relaton_ecma/version.rb +1 -1
- data/relaton_ecma.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b85e57cdcdbe42357ffaa34abce500363874a0a7e22968478ccc469634e3760
|
4
|
+
data.tar.gz: b623c0c898cc6ac095a06b1cadfc84910fecf395a6a0638ba82f5cf7a8ea4798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0d75ff9175f0971a1cd429565dc82abe4429cc596b7c38e9a107f3bb832c3139c5d749523d6ed44667f86a974d4e3259c17bcedf78a911d7970cd8d03c8727d
|
7
|
+
data.tar.gz: 92ebfe927d53e728b16972a00c6ba6fdeab2b35a314d3b9d3539f2cc6296e477694b028299553a26169d14d2adfcb7928c968e76a37f797fa4796ffbbf53b9bc
|
@@ -7,7 +7,8 @@ on:
|
|
7
7
|
inputs:
|
8
8
|
next_version:
|
9
9
|
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
|
11
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
11
12
|
required: true
|
12
13
|
default: 'skip'
|
13
14
|
repository_dispatch:
|
data/grammars/biblio.rng
CHANGED
@@ -147,7 +147,7 @@ module RelatonEcma
|
|
147
147
|
# @return [Array<RelatonBib::FormattedString>]
|
148
148
|
def fetch_abstract
|
149
149
|
content = @doc.xpath('//div[@class="ecma-item-content"]/p').map do |a|
|
150
|
-
a.text.strip.squeeze(" ").gsub(
|
150
|
+
a.text.strip.squeeze(" ").gsub("\r\n", "")
|
151
151
|
end.join "\n"
|
152
152
|
return [] if content.empty?
|
153
153
|
|
@@ -164,7 +164,7 @@ module RelatonEcma
|
|
164
164
|
|
165
165
|
# @return [Array<Hash>]
|
166
166
|
def fetch_relation # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity
|
167
|
-
@doc.xpath("//ul[@class='ecma-item-archives']/li").
|
167
|
+
@doc.xpath("//ul[@class='ecma-item-archives']/li").filter_map do |rel|
|
168
168
|
ref, ed, date, vol = edition_id_parts rel.at("span").text
|
169
169
|
next if ed.nil? || ed.empty?
|
170
170
|
|
@@ -178,7 +178,7 @@ module RelatonEcma
|
|
178
178
|
link: link, extent: extent
|
179
179
|
)
|
180
180
|
{ type: "updates", bibitem: bibitem }
|
181
|
-
end
|
181
|
+
end
|
182
182
|
end
|
183
183
|
|
184
184
|
#
|
@@ -17,7 +17,7 @@ module RelatonEcma
|
|
17
17
|
refparts = parse_ref ref
|
18
18
|
return [] unless refparts
|
19
19
|
|
20
|
-
index = Relaton::Index.find_or_create :ECMA, url: "#{ENDPOINT}index.zip"
|
20
|
+
index = Relaton::Index.find_or_create :ECMA, url: "#{ENDPOINT}index.zip", id_keys: %i[id ed vol]
|
21
21
|
index.search { |row| match_ref refparts, row }
|
22
22
|
end
|
23
23
|
|
data/lib/relaton_ecma/version.rb
CHANGED
data/relaton_ecma.gemspec
CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_dependency "mechanize", "~> 2.8.0"
|
31
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
32
|
-
spec.add_dependency "relaton-index", "~> 0.2.
|
31
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
32
|
+
spec.add_dependency "relaton-index", "~> 0.2.4"
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ecma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.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: 2023-
|
11
|
+
date: 2023-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.16.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.16.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: relaton-index
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.2.
|
47
|
+
version: 0.2.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.2.
|
54
|
+
version: 0.2.4
|
55
55
|
description: |
|
56
56
|
RelatonEcma: retrieve ECMA Standards for bibliographic use
|
57
57
|
using the BibliographicItem model.
|