citeproc-ruby 2.1.6 → 2.1.7
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 +4 -4
- data/lib/citeproc/ruby/renderer/format.rb +5 -1
- data/lib/citeproc/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7527627b9a8c2e681393cc4d1adc0988f855746446c3b8e64aa5ee04418b6a14
|
|
4
|
+
data.tar.gz: fc4f9f3d2378072aa0f3592112e56853068aec4dc67befab458f64aa913817fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 403b115f92f233311cdc941236cec1a68f331eeb5646eb085957df452431e971956b4b3af7e27b211bfbd7e33d1587384a02fe190c3483d7df609847e9d01591
|
|
7
|
+
data.tar.gz: 0ad87695c62deb6c6252b02b6ed37a2749b0bb45bc7d1a84f33b6b81a55788b974e89e89d517d5ab0ea2241c94a3b91d16f7f1d59a3dad09ea02613e5cfd005b
|
|
@@ -42,7 +42,7 @@ module CiteProc
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
# Formats pages
|
|
45
|
+
# Formats pages according to format. Valid formats are:
|
|
46
46
|
#
|
|
47
47
|
# * "chicago": page ranges are abbreviated according to
|
|
48
48
|
# the Chicago Manual of Style rules.
|
|
@@ -79,6 +79,10 @@ module CiteProc
|
|
|
79
79
|
if delta >= 0
|
|
80
80
|
t.prepend f[0, delta] unless delta.zero?
|
|
81
81
|
|
|
82
|
+
# TODO
|
|
83
|
+
if format == 'chicago-16' || format == 'chicago-15'
|
|
84
|
+
format = 'chicago'
|
|
85
|
+
|
|
82
86
|
if format == 'chicago'
|
|
83
87
|
changes = dim - f.chars.zip(t.chars).
|
|
84
88
|
take_while { |a,b| a == b }.length if dim == 4
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: citeproc-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-12-
|
|
10
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: citeproc
|