jekyll-scholar 5.9.1 → 5.10.0

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: 8414581a958ce3712c77dd03c19d972b905d2d6d
4
- data.tar.gz: fa222ae2ff01bb4f0aa94622fe693ab41ac2cad8
3
+ metadata.gz: 9605fd784a500ae29bb3882926b3e5deed283e15
4
+ data.tar.gz: 13b10b4c91c145ff06f0ae46467e52dfcbc63b9c
5
5
  SHA512:
6
- metadata.gz: 1b2826bab8059be09db7a90f6479aa746b1d8b847fedf8276765f2431c055173327be9eeda4636609a1ea129d534111d81dc48740c0f9bae77170944ee4a70f0
7
- data.tar.gz: '0971344cec58a854b6ff2a8c52f58e242a881f061731e7481fb062bbd9e15ae33d2c4eb9972d4a4c1a44077904fa97b650921686f6f7f01099abf7d4e36b71dd'
6
+ metadata.gz: 5a0d2b0254d6a2cea9275dfb40c71e499785ecdbf0552244a62d11449ffcf009cbe0a5aeb23d451669310ee5037b65b424e2ded172afbf19098fe501d975db32
7
+ data.tar.gz: ed4c4523650a09cd5c163dd6e0c78f1b26b463f59068f774ea5a21f3ea8fe6eb75aba2b69c1ac2beff60ce6713c7724edbbc1fae3d4e981246bad508d5cac97a
data/.travis.yml CHANGED
@@ -3,11 +3,9 @@ sudo: false
3
3
  cache: bundler
4
4
  matrix:
5
5
  include:
6
- - rvm: 2.3.1
6
+ - rvm: 2.4
7
7
  env: WITH_COVERALLS=true
8
- - rvm: 2.1
9
- env: WITH_COVERALLS=false
10
- - rvm: 2.0
8
+ - rvm: 2.3
11
9
  env: WITH_COVERALLS=false
12
10
  install:
13
11
  - if [[ $WITH_COVERALLS = "true" ]]; then
data/Gemfile CHANGED
@@ -22,7 +22,7 @@ group :extra do
22
22
  end
23
23
 
24
24
  group :coverage do
25
- gem 'simplecov', '~>0.9', :require => false
25
+ gem 'simplecov', '~>0.14', :require => false
26
26
  gem 'rubinius-coverage', :platform => :rbx
27
27
  gem 'coveralls', :require => false
28
28
  end
data/README.md CHANGED
@@ -71,13 +71,13 @@ description of all options and their defaults, see
71
71
  | `style` | `apa` | Indicates the style used for the bibliography and citations. You can use any style that ships with [CiteProc-Ruby](https://github.com/inukshuk/citeproc-ruby) by name (e.g., apa, mla, chicago-fullnote-bibliography) which is usually the filename as seen [here](https://github.com/citation-style-language/styles) without the `.csl` ending; note that you have to use `dependent/style` if you want to use one from that directory. Alternatively you can add a link to any CSL style (e.g., you could link to any of the styles available at the official [CSL style repository](https://github.com/citation-style-language/styles)). |
72
72
  | `locale` | `en` | Defines what language to use when formatting your references (this typically applies to localized terms, e.g., 'Eds.' for editors in English). |
73
73
  | `source` | `./_bibliography` | Indicates where your bibliographies are stored. |
74
- | `bibliograpy` | `references.bib` | Indicates the name of your default bibliography. For best results, please ensure that your bibliography is encoded as ASCII or UTF-8. |
74
+ | `bibliography` | `references.bib` | Indicates the name of your default bibliography. For best results, please ensure that your bibliography is encoded as ASCII or UTF-8. |
75
75
  | `use_raw_bibtex_entry` | `true` | When `true`, disables parsing of Liquid tags embedded in the Bibtex fields. This option provides a way to circumvent the problem that (the conflicting syntax of) the double braces functionality of BibTex is accidentally parsed by Liquid, while it was intended to keep the exact capitalization style. |
76
76
  | `sort_by` | `none` | Specifies if and how bibliography entries are sorted. Entries can be sorted on multiple fields, by using a list of keys, e.g. `year,month`. Ordering can be specified per sort level, e.g. `order: descending,ascending` will sort the years descending, but per year the months are ascending. If there are more sort keys than order directives, the last order entry is used for the remaining keys. |
77
77
  | `order` | `ascending` | Specifies order bibliography entries are sorted in. Can be `ascending` or descending. Ordering can be specified per sort level, e.g. `descending,ascending` will sort in descending on the first key then ascending order on the second key. If there are more sort keys than order directives, the last order entry is used for the remaining keys. |
78
78
  | `group_by` | `none` | Specifies how bibliography items are grouped. Grouping can be multi-level, e.g. `type, year` groups entries per publication type, and within those groups per year. |
79
79
  | `group_order` | `ascending` | Ordering for groups is specified in the same way as the sort order. Publication types -- specified with group key `type`, can be ordered by adding `type_order` to the configuration. For example, `type_order: article,techreport` lists journal articles before technical reports. Types not mentioned in `type_order` are considered smaller than types that are mentioned. Types can be merge in one group using the `type_aliases` setting. By default `phdthesis` and `mastersthesis` are grouped as `thesis`. By using, for example, `type_aliases: { inproceedings: article}`, journal and conference articles appear in a single group. The display names for entry types are specified with `type_names`. Names for common types are provided, but they can be extended or overridden. For example, the default name for `article` is *Journal Articles*, but it can be changed to *Papers* using `type_names: { article: Papers }`. |
80
- | `bibtex_filters` | `latex,superscript` | Configures which [BibTeX-Ruby](https://github.com/inukshuk/bibtex-ruby) formatting filters values of entries should be passed through. The default `latex` filter converts LaTeX character escapes into unicode, and `superscript` which converts the `\textsuperscript` command into a HTML `<sup>` tag. |
80
+ | `bibtex_filters` | `latex,smallcaps,superscript` | Configures which [BibTeX-Ruby](https://github.com/inukshuk/bibtex-ruby) formatting filters values of entries should be passed through. The default `latex` filter converts LaTeX character escapes into unicode, `smallcaps` converts the `\textsc` command into a HTML `<font style=\"font-variant: small-caps\">` tag, and `superscript` which converts the `\textsuperscript` command into a HTML `<sup>` tag. |
81
81
 
82
82
 
83
83
  ### Bibliographies
@@ -36,7 +36,7 @@ module Jekyll
36
36
  'repository_file_delimiter' => '.',
37
37
 
38
38
  'bibtex_options' => { :strip => false, :parse_months => true },
39
- 'bibtex_filters' => [ :superscript, :latex ],
39
+ 'bibtex_filters' => [ :smallcaps, :superscript, :latex ],
40
40
  'bibtex_skip_fields' => [ :abstract, :month_numeric ],
41
41
 
42
42
  'replace_strings' => true,
@@ -0,0 +1,13 @@
1
+ module Jekyll
2
+ class Scholar
3
+ class Smallcaps < BibTeX::Filter
4
+ def apply(value)
5
+ # Use of \g<1> pattern back-reference to allow for capturing nested {} groups.
6
+ # The first (outermost) capture of $1 is used.
7
+ value.to_s.gsub(/\\textsc(\{(?:[^{}]|\g<1>)*\})/) {
8
+ "<font style=\"font-variant: small-caps\">#{$1[1..-2]}</font>"
9
+ }
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '5.9.1'.freeze
3
+ VERSION = '5.10.0'.freeze
4
4
  end
5
5
  end
@@ -22,3 +22,4 @@ require 'jekyll/scholar/generators/details'
22
22
 
23
23
  require 'jekyll/scholar/plugins/markdown_links'
24
24
  require 'jekyll/scholar/plugins/superscript'
25
+ require 'jekyll/scholar/plugins/smallcaps'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-scholar
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.9.1
4
+ version: 5.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -112,6 +112,7 @@ files:
112
112
  - lib/jekyll/scholar/defaults.rb
113
113
  - lib/jekyll/scholar/generators/details.rb
114
114
  - lib/jekyll/scholar/plugins/markdown_links.rb
115
+ - lib/jekyll/scholar/plugins/smallcaps.rb
115
116
  - lib/jekyll/scholar/plugins/superscript.rb
116
117
  - lib/jekyll/scholar/tags/bibliography.rb
117
118
  - lib/jekyll/scholar/tags/bibtex.rb
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  version: 1.3.6
142
143
  requirements: []
143
144
  rubyforge_project: jekyll-scholar
144
- rubygems_version: 2.6.8
145
+ rubygems_version: 2.6.12
145
146
  signing_key:
146
147
  specification_version: 4
147
148
  summary: Jekyll extensions for the academic blogger.