bolognese 0.10.10 → 0.10.11

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: 31795668efc6bad81388f9f79652de6cb361fc6290f0d60774a030354700a4af
4
- data.tar.gz: 9d5915a5d65c5bb5d1e3eeb5c1591f781cdfee0c85c2f6d23350d09558b17eb6
3
+ metadata.gz: c8948adf4fb355cfd34a5187d46304b3e4ee6364cc972e84795506b49d5f7fe8
4
+ data.tar.gz: f23fa33065a9b94ba43ba94d6be6c6d1c73e48ac49fcb73d75f03e148b805c23
5
5
  SHA512:
6
- metadata.gz: 4d561eae35321a45ec22d678d911777c7102883bafa6b9b4c94306bd5291c73fac0cd98e53b59e5f8dce15a36456b554b8ef9a08cd757856b3df2a79b22a2bf9
7
- data.tar.gz: 771b6bb4d55d9447163f42e97ed944ab000b227b60d9ccde99c3fd8776d9afbe8cf73165fac0b3fa7296f6ba525aab94fc9ecd94fab6bdd6ff7f71caeb62a964
6
+ metadata.gz: 58d5bc5fcefb5a2082bd6c2d9892a1001a703dc04bc656acda1d17cec2df4e9b281e88c2f30814cda56555a054b097acd20e2c87a6ccaef79c9b0ffcaeef633a
7
+ data.tar.gz: be1ed6054be714a82b079d7be9c77111e0ec95f012baec70711b678109653d7a848222fe0c3e06c9774b798f12fbbb27397376ea3534ca2d0be7490c7b0f933f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.10.10)
4
+ bolognese (0.10.11)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -80,8 +80,8 @@ module Bolognese
80
80
  def ris_meta(string: nil)
81
81
  h = Hash.new { |h,k| h[k] = [] }
82
82
  string.split("\n").reduce(h) do |sum, line|
83
- k, v = line.split(" - ")
84
- h[k.strip] << v
83
+ k, v = line.split("-")
84
+ h[k.strip] << v.to_s.strip
85
85
  sum
86
86
  end.map { |k,v| [k, v.unwrap] }.to_h.compact
87
87
  end
@@ -133,8 +133,7 @@ module Bolognese
133
133
  "phdthesis" => "Dissertation",
134
134
  "article" => "JournalArticle",
135
135
  "book" => "Book",
136
- "inbook" => "BookChapter",
137
- "book" => "Monograph"
136
+ "inbook" => "BookChapter"
138
137
  }
139
138
 
140
139
  CR_TO_JATS_TRANSLATIONS = {
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.10.10"
2
+ VERSION = "0.10.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.10
4
+ version: 0.10.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner