citeproc-ruby 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/citeproc/ruby/formats/html.rb +7 -1
- data/lib/citeproc/ruby/version.rb +1 -1
- data/spec/citeproc/ruby/formats/html_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f90413e1dbdad9d8cac2857be117f5d9809a237f
|
4
|
+
data.tar.gz: 04d4e2ff034c9135fb8d9052cdba79c6a0167443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f310cb1e6b84029c4e47a7911d4a8b625ac4219ac57a68b260b8c8cdba42b04c1d7ccda6c163fe9a066006defb0ff33ea21ab73cbbc3f9bfa5b2fbb0fb6ff35
|
7
|
+
data.tar.gz: 5472220e35ea73e9957579336532ca6c4a7b6c0ddebb53b416fd53114338756e98008a6e3e5ac2bbe7716d773ef71383bec05411cc6895aa26150944c76dd6e0
|
data/Gemfile
CHANGED
@@ -20,8 +20,12 @@ module CiteProc
|
|
20
20
|
:bib_indent => ' '
|
21
21
|
}
|
22
22
|
|
23
|
+
@vertical_align = Hash.new { |_,k| k }
|
24
|
+
@vertical_align['sup'] = 'super'
|
25
|
+
|
23
26
|
class << self
|
24
27
|
attr_reader :defaults
|
28
|
+
attr_reader :vertical_align
|
25
29
|
end
|
26
30
|
|
27
31
|
attr_reader :config
|
@@ -101,7 +105,9 @@ module CiteProc
|
|
101
105
|
end
|
102
106
|
|
103
107
|
def apply_vertical_align
|
104
|
-
css['vertical-align'] =
|
108
|
+
css['vertical-align'] = Html.vertical_align[
|
109
|
+
options[:'vertical-align']
|
110
|
+
]
|
105
111
|
end
|
106
112
|
|
107
113
|
def apply_display
|
@@ -123,7 +123,7 @@ module CiteProc
|
|
123
123
|
|
124
124
|
it 'supports vertical-align via css' do
|
125
125
|
node[:'vertical-align'] = 'sup'
|
126
|
-
expect(format.apply('foo bar', node)).to eq('<span style="vertical-align:
|
126
|
+
expect(format.apply('foo bar', node)).to eq('<span style="vertical-align: super">foo bar</span>')
|
127
127
|
end
|
128
128
|
|
129
129
|
describe 'display' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citeproc-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: citeproc
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.6.
|
144
|
+
rubygems_version: 2.6.12
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: A Citation Style Language (CSL) cite processor
|