jekyll-scholar 4.3.5 → 4.3.6

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: 34c5171c1e0eca9aa016d7de2dd713474e658728
4
- data.tar.gz: 2053b236c54703482fc2be31de7af7511a7fa35e
3
+ metadata.gz: 624d5dd714caa864327adada75088b877ed25827
4
+ data.tar.gz: cad811afe6ae06efa563182157c5941512a2e671
5
5
  SHA512:
6
- metadata.gz: b5c069abd4f51a11cded938a2dfc6ae6e5bef1ce6a8eca9a05f46b8a1f7eecbc5120db2787fa00c178be40d917b3978a4c186df15e723fba803489b9b00d878d
7
- data.tar.gz: 34191415d8d961b95bc768f56ccde8321043c88aeafaf6f541013a0da5779e709be62db68fa0dcc0dfdfaab73860a5a7bbabf188751d009c975f0b1e5d977aeb
6
+ metadata.gz: 47c45c79bb3695d00ecf15253b5a2e86fa2197d4cef597e640cf60fef0a3d2cbac3b6c6e2f17f80ced496516bdb23e70766dec1c3529a022cd3b0079d58c19e0
7
+ data.tar.gz: fee5ceabb41933d6a6363bf96e9e1123307d51d4c22f158c239817c778d8aa9f5ff49138cf3dc5b82eedc4d739ae10fdc915fef96697208d94bdb24699c439c8
@@ -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('')
@@ -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.9')
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")
@@ -95,7 +95,8 @@ module Jekyll
95
95
  end
96
96
 
97
97
  def bibtex_options
98
- config['bibtex_options'] ||= {}
98
+ @bibtex_options ||=
99
+ (config['bibtex_options'] || {}).symbolize_keys
99
100
  end
100
101
 
101
102
  def bibtex_filters
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '4.3.5'.freeze
3
+ VERSION = '4.3.6'.freeze
4
4
  end
5
5
  end
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.5
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-02-25 00:00:00.000000000 Z
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.9
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.9
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.5
141
+ rubygems_version: 2.4.6
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Jekyll extensions for the academic blogger.