jekyll-scholar 4.3.5 → 4.3.6
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/features/details.feature +51 -0
- data/features/step_definitions/scholar_steps.rb +8 -0
- data/jekyll-scholar.gemspec +1 -1
- data/lib/jekyll/scholar/utilities.rb +2 -1
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 624d5dd714caa864327adada75088b877ed25827
|
|
4
|
+
data.tar.gz: cad811afe6ae06efa563182157c5941512a2e671
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47c45c79bb3695d00ecf15253b5a2e86fa2197d4cef597e640cf60fef0a3d2cbac3b6c6e2f17f80ced496516bdb23e70766dec1c3529a022cd3b0079d58c19e0
|
|
7
|
+
data.tar.gz: fee5ceabb41933d6a6363bf96e9e1123307d51d4c22f158c239817c778d8aa9f5ff49138cf3dc5b82eedc4d739ae10fdc915fef96697208d94bdb24699c439c8
|
data/features/details.feature
CHANGED
|
@@ -184,3 +184,54 @@ Feature: Details
|
|
|
184
184
|
And the "_site/scholar/index.html" file should exist
|
|
185
185
|
And I should see "<a[^>]+href=\"/bibliography/ruby/index.html\">" in "_site/scholar/index.html"
|
|
186
186
|
And the "_site/bibliography/ruby/index.html" file should exist
|
|
187
|
+
|
|
188
|
+
@generators @parse_months
|
|
189
|
+
Scenario: Months are parsed by default
|
|
190
|
+
Given I have a scholar configuration with:
|
|
191
|
+
| key | value |
|
|
192
|
+
| details_layout | details.html |
|
|
193
|
+
And I have a "_bibliography" directory
|
|
194
|
+
And I have a file "_bibliography/references.bib":
|
|
195
|
+
"""
|
|
196
|
+
@book{august,
|
|
197
|
+
month = {August}
|
|
198
|
+
}
|
|
199
|
+
"""
|
|
200
|
+
And I have a "_layouts" directory
|
|
201
|
+
And I have a file "_layouts/details.html":
|
|
202
|
+
"""
|
|
203
|
+
---
|
|
204
|
+
---
|
|
205
|
+
{{ page.entry.bibtex }}
|
|
206
|
+
"""
|
|
207
|
+
When I run jekyll
|
|
208
|
+
Then the _site directory should exist
|
|
209
|
+
And the "_site/bibliography/august.html" file should exist
|
|
210
|
+
And I should see "month = aug" in "_site/bibliography/august.html"
|
|
211
|
+
|
|
212
|
+
@generators @parse_months @wip
|
|
213
|
+
Scenario: Month parsing can be turned off
|
|
214
|
+
Given I have a scholar configuration with:
|
|
215
|
+
| key | value |
|
|
216
|
+
| details_layout | details.html |
|
|
217
|
+
And I have the following BibTeX options:
|
|
218
|
+
| key | value |
|
|
219
|
+
| parse_months | false |
|
|
220
|
+
And I have a "_bibliography" directory
|
|
221
|
+
And I have a file "_bibliography/references.bib":
|
|
222
|
+
"""
|
|
223
|
+
@book{august,
|
|
224
|
+
month = {August}
|
|
225
|
+
}
|
|
226
|
+
"""
|
|
227
|
+
And I have a "_layouts" directory
|
|
228
|
+
And I have a file "_layouts/details.html":
|
|
229
|
+
"""
|
|
230
|
+
---
|
|
231
|
+
---
|
|
232
|
+
{{ page.entry.bibtex }}
|
|
233
|
+
"""
|
|
234
|
+
When I run jekyll
|
|
235
|
+
Then the _site directory should exist
|
|
236
|
+
And the "_site/bibliography/august.html" file should exist
|
|
237
|
+
And I should see "month = {August}" in "_site/bibliography/august.html"
|
|
@@ -18,6 +18,14 @@ Given(/^I have a scholar configuration with:$/) do |table|
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
Given(/^I have the following BibTeX options:$/) do |table|
|
|
22
|
+
File.open('_config.yml', 'a') do |f|
|
|
23
|
+
f.write(" bibtex_options:\n")
|
|
24
|
+
table.hashes.each do |row|
|
|
25
|
+
f.write(" #{row["key"]}: #{row["value"]}\n")
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
21
29
|
|
|
22
30
|
Then(/^"(.*)" should come before "(.*)" in "(.*)"$/) do |p1, p2, file|
|
|
23
31
|
data = File.open(file).readlines.join('')
|
data/jekyll-scholar.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
s.add_runtime_dependency('jekyll', '~> 2.0')
|
|
29
29
|
s.add_runtime_dependency('citeproc-ruby', '~> 1.0')
|
|
30
30
|
s.add_runtime_dependency('csl-styles', '~> 1.0')
|
|
31
|
-
s.add_runtime_dependency('bibtex-ruby', '~> 4.0', '>= 4.0.
|
|
31
|
+
s.add_runtime_dependency('bibtex-ruby', '~> 4.0', '>= 4.0.13')
|
|
32
32
|
|
|
33
33
|
s.files = `git ls-files`.split("\n")
|
|
34
34
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
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: 4.3.
|
|
4
|
+
version: 4.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -61,7 +61,7 @@ dependencies:
|
|
|
61
61
|
version: '4.0'
|
|
62
62
|
- - ">="
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: 4.0.
|
|
64
|
+
version: 4.0.13
|
|
65
65
|
type: :runtime
|
|
66
66
|
prerelease: false
|
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -71,7 +71,7 @@ dependencies:
|
|
|
71
71
|
version: '4.0'
|
|
72
72
|
- - ">="
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 4.0.
|
|
74
|
+
version: 4.0.13
|
|
75
75
|
description: " Jekyll-Scholar is for all the academic bloggers out there. It is a
|
|
76
76
|
set of extensions for Jekyll the awesome, blog aware, static site generator; it
|
|
77
77
|
formats your BibTeX bibliographies for the web using CSL citation styles and generally
|
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
138
138
|
version: 1.3.6
|
|
139
139
|
requirements: []
|
|
140
140
|
rubyforge_project: jekyll-scholar
|
|
141
|
-
rubygems_version: 2.4.
|
|
141
|
+
rubygems_version: 2.4.6
|
|
142
142
|
signing_key:
|
|
143
143
|
specification_version: 4
|
|
144
144
|
summary: Jekyll extensions for the academic blogger.
|