relaton-bib 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b6bd4bd9de5c3300f0e9e765b2e87f6f979be9bb1cc4860a5cb9e0bf26af2d0
4
- data.tar.gz: c5ffd10e31eef03986e76e0d52e17e3a88bf4b157400be867d19893bcac700ad
3
+ metadata.gz: 7f2991bdb522fb06fd4e985ef76cba4267d476533cf4b1079ace20914c471547
4
+ data.tar.gz: 4c7da990f58fbb41d9f1d47e3b15e87e33a9c47cc0cb699d773d54eb1b28dc21
5
5
  SHA512:
6
- metadata.gz: 8dfad60d8cd0f3e092ddd7b09fc0c9f40e770a63fd7b5cd4ed6024e5150500d303ebe5a86c878963761f4da8e2bf65b148148f0dacc0525e284fbadb101acf01
7
- data.tar.gz: ec92a3eff1a3c24c1e2e2e9c17c94a96188bbd53af56135c155037f2319d0ff747e4345fcb1599ca56cdb8f0760dff25b2122e8ae4e8c8b9812b353ea6ec238d
6
+ metadata.gz: 42309dea6306924a4e9a32b75852bd160834304d93b31dd2646c993c4bf8b60c77874bd4a3e11bc7b9c5c00a2a1745fb58e38c319e8d4cd031205d1bcfbc7c40
7
+ data.tar.gz: 2bf64731bc36695c85c066ca51dbd1c42c5dfd1f3c78e5b90e191fc6c3894239ea76a7b80486ae68ce2e15d9652970fd0c53fcd877262950dc4e5edf1ed919ed
data/README.adoc CHANGED
@@ -1,9 +1,7 @@
1
1
  = RelatonBib
2
2
 
3
3
  image:https://img.shields.io/gem/v/relaton-bib.svg["Gem Version", link="https://rubygems.org/gems/relaton-bib"]
4
- image:https://github.com/relaton/relaton-bib/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/relaton/relaton-bib/actions?workflow=macos"]
5
- image:https://github.com/relaton/relaton-bib/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/relaton/relaton-bib/actions?workflow=windows"]
6
- image:https://github.com/relaton/relaton-bib/workflows/ubuntu/badge.svg["Build Status (Ubuntu)", link="https://github.com/relaton/relaton-bib/actions?workflow=ubuntu"]
4
+ image:https://github.com/relaton/relaton-bib/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/relaton-bib/actions?workflow=rake"]
7
5
  image:https://codeclimate.com/github/relaton/relaton-bib/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/relaton-bib"]
8
6
  image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-bib.svg["Pull Requests", link="https://github.com/relaton/relaton-bib/pulls"]
9
7
  image:https://img.shields.io/github/commits-since/relaton/relaton-bib/latest.svg["Commits since latest",link="https://github.com/relaton/relaton-bib/releases"]
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.7.4".freeze
2
+ VERSION = "1.7.5".freeze
3
3
  end
@@ -217,7 +217,7 @@ module RelatonBib
217
217
  # @param node [Nokogiri::XML::Elemen]
218
218
  # @return [Array<RelatonBib::BibliographicDate>]
219
219
  def fetch_dates(item) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
220
- item.xpath("./date").reduce([]) do |a, d|
220
+ item.xpath("./date").each_with_object([]) do |d, a|
221
221
  type = d[:type].to_s.empty? ? "published" : d[:type]
222
222
  if (on = d.at("on"))
223
223
  a << RelatonBib::BibliographicDate.new(type: type, on: on.text,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.3
236
+ rubygems_version: 3.0.6
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: 'RelatonBib: Ruby XMLDOC impementation.'