bibmarkdown 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3643b4d21d60997b979670eec92eefe6832ead5
4
- data.tar.gz: 6aef6c803413b1799ebf2d9080f509341b0ded80
3
+ metadata.gz: 53587cadd9fc941a280c4cdabf5b688f82f9ebf1
4
+ data.tar.gz: be7969509a4a8d40d68f175b20a5fb86a178a52a
5
5
  SHA512:
6
- metadata.gz: 9f78597db7000e0f29338641c4934a7aec2e1249265ab1120a4a9cbb8b5aab54eca6455bf525c8b3d2b3a8c14970e004ee1c59e73553349f9d1c5517bb551a5a
7
- data.tar.gz: 26196bcaebd8f607bfa0ec327d4d9533d2872556c9a540c7765aa7e49f7e93ff761189153e3fa0a24acea92060593dbb0271425ae7831faab8a47d7393caf838
6
+ metadata.gz: 9e45159e0115fd021513ea45c10f3f159980adcb1e7bc234cb79969d61d864e2512f75e94767968861789a7cbe5bda3c97d287aaf91b724d7efa24302e03abb8
7
+ data.tar.gz: da0bba25f2b9b87a85e27e8e9850589f54383c15988b434ed2462232fc3146aaa4396ad7709cebb2271d1e67dfc56d44c4f83c114238fe25a1a924058f5bb80c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
data/bibmarkdown.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bibmarkdown 1.3.0 ruby lib
5
+ # stub: bibmarkdown 1.3.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bibmarkdown".freeze
9
- s.version = "1.3.0"
9
+ s.version = "1.3.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Ruben Verborgh".freeze]
14
- s.date = "2017-12-31"
14
+ s.date = "2018-02-23"
15
15
  s.email = "ruben@verborgh.org".freeze
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.md",
@@ -114,9 +114,20 @@ module BibMarkdown
114
114
  end
115
115
 
116
116
  def reference_html key
117
- # Render reference
117
+ # Prepare reference HTML renderer
118
118
  processor = CiteProc::Processor.new style: @style, format: 'html'
119
- processor << @entries[key].to_citeproc
119
+ citeproc = @entries[key].to_citeproc
120
+
121
+ # Ensure multi-part last names stick together
122
+ (citeproc["author"] || citeproc["editor"]).each do |author|
123
+ if author.has_key? "non-dropping-particle"
124
+ author["family"] = "#{author["non-dropping-particle"]} #{author["family"]}"
125
+ author.delete "non-dropping-particle"
126
+ end
127
+ end
128
+
129
+ # Render reference
130
+ processor << citeproc
120
131
  citations = processor.render :bibliography, id: key
121
132
  citation = citations.first
122
133
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibmarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Verborgh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-31 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: citeproc-ruby