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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac6faa0d4b7c9fbb585de0a7875bcb3bc3cbfa11
4
- data.tar.gz: 350e69f4854a1f6f2063a9771d80af4e59383c6c
3
+ metadata.gz: f90413e1dbdad9d8cac2857be117f5d9809a237f
4
+ data.tar.gz: 04d4e2ff034c9135fb8d9052cdba79c6a0167443
5
5
  SHA512:
6
- metadata.gz: 5fe846f5eb9e35a7ac30a7c476d5e895b8acafa022720d2fc84b7d30129d881da26e47a1d9d43e6ba288958664de6ffae405e9ad17e25be3e358e16050eb3f0a
7
- data.tar.gz: 35f902e3037747ca3ee06a19b536780760e01941becb6a5e8df16e2c7d569f83eda3b6682f3d8e137077b40876751a6847bc9e676cc1de4c37c3d543a04169ef
6
+ metadata.gz: 7f310cb1e6b84029c4e47a7911d4a8b625ac4219ac57a68b260b8c8cdba42b04c1d7ccda6c163fe9a066006defb0ff33ea21ab73cbbc3f9bfa5b2fbb0fb6ff35
7
+ data.tar.gz: 5472220e35ea73e9957579336532ca6c4a7b6c0ddebb53b416fd53114338756e98008a6e3e5ac2bbe7716d773ef71383bec05411cc6895aa26150944c76dd6e0
data/Gemfile CHANGED
@@ -36,7 +36,7 @@ group :extra do
36
36
  gem 'guard', '~>2.2'
37
37
  gem 'guard-rspec'
38
38
  gem 'guard-cucumber'
39
- gem 'rb-fsevent', '~>0.9.1'
39
+ gem 'rb-fsevent'
40
40
  gem 'pry'
41
41
  gem 'yard', '~>0.8', :platforms => :mri
42
42
  gem 'redcarpet', '~>3.0', :platforms => :mri
@@ -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'] = options[:'vertical-align']
108
+ css['vertical-align'] = Html.vertical_align[
109
+ options[:'vertical-align']
110
+ ]
105
111
  end
106
112
 
107
113
  def apply_display
@@ -1,5 +1,5 @@
1
1
  module CiteProc
2
2
  module Ruby
3
- VERSION = '1.1.6'
3
+ VERSION = '1.1.7'
4
4
  end
5
5
  end
@@ -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: sup">foo bar</span>')
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.6
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: 2016-11-16 00:00:00.000000000 Z
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.3
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