jekyll-scholar 5.10.0 → 5.10.1

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: 9605fd784a500ae29bb3882926b3e5deed283e15
4
- data.tar.gz: 13b10b4c91c145ff06f0ae46467e52dfcbc63b9c
3
+ metadata.gz: 94f05ab3f1fdbb57535f5b80ce40f12121f15423
4
+ data.tar.gz: 4f4f353ea37a5da9b1556a24da1ee57fe869ba06
5
5
  SHA512:
6
- metadata.gz: 5a0d2b0254d6a2cea9275dfb40c71e499785ecdbf0552244a62d11449ffcf009cbe0a5aeb23d451669310ee5037b65b424e2ded172afbf19098fe501d975db32
7
- data.tar.gz: ed4c4523650a09cd5c163dd6e0c78f1b26b463f59068f774ea5a21f3ea8fe6eb75aba2b69c1ac2beff60ce6713c7724edbbc1fae3d4e981246bad508d5cac97a
6
+ metadata.gz: a7b53fae730e2f929a5a1a7f6c5d87976ea0d8a49911536f42746f6683ead1ce83f28d8a83c5a0618fed9f0e523b0077b811edb7a806ca23126a348a204fef26
7
+ data.tar.gz: c74fe2de8eca19fece914140e3e55298c7aa561e72c165b78ed35ef04050a4aa0510089360766e2c84d32248d32a1e22457fb1aec6ad6928efd7ff472fd72c6d
@@ -24,6 +24,29 @@ Feature: BibTeX
24
24
  And the "_site/references.html" file should exist
25
25
  And I should see "<i>The Ruby Programming Language</i>" in "_site/references.html"
26
26
 
27
+ @converters @post
28
+ Scenario: Simple Bibliography
29
+ Given I have a scholar configuration with:
30
+ | key | value |
31
+ | style | apa |
32
+ And I have a "_posts" directory
33
+ And I have a page "_posts/2017-06-26-references.bib":
34
+ """
35
+ ---
36
+ ---
37
+ @book{ruby,
38
+ title = {The Ruby Programming Language},
39
+ author = {Flanagan, David and Matsumoto, Yukihiro},
40
+ year = {2008},
41
+ publisher = {O'Reilly Media}
42
+ }
43
+ """
44
+ When I run jekyll
45
+ Then the _site directory should exist
46
+ And the "_site/2017/06/26/references.html" file should exist
47
+ And I should see "<i>The Ruby Programming Language</i>" in "_site/2017/06/26/references.html"
48
+
49
+ @converters
27
50
  Scenario: Markdown Formatted Bibliography
28
51
  Given I have a scholar configuration with:
29
52
  | key | value |
@@ -107,7 +130,35 @@ Feature: BibTeX
107
130
  And the "_site/references.html" file should exist
108
131
  And I should see "<i>The Ruby Programming Language</i>" in "_site/references.html"
109
132
 
110
- @tags
133
+ @tags @bibtex @post
134
+ Scenario: Embedded BibTeX
135
+ Given I have a scholar configuration with:
136
+ | key | value |
137
+ | style | apa |
138
+ And I have a "_posts" directory
139
+ And I have a page "_posts/2017-06-26-references.md":
140
+ """
141
+ ---
142
+ ---
143
+ References
144
+ ==========
145
+
146
+ {% bibtex %}
147
+ @book{ruby,
148
+ title = {The Ruby Programming Language},
149
+ author = {Flanagan, David and Matsumoto, Yukihiro},
150
+ year = {2008},
151
+ publisher = {O'Reilly Media}
152
+ }
153
+ {% endbibtex %}
154
+ """
155
+ When I run jekyll
156
+ Then the _site directory should exist
157
+ And the "_site/2017/06/26/references.html" file should exist
158
+ And I should see "<i>The Ruby Programming Language</i>" in "_site/2017/06/26/references.html"
159
+
160
+ @tags @bibliography
161
+ @tags @bibliography
111
162
  Scenario: Simple Bibliography Loaded From Default Directory
112
163
  Given I have a scholar configuration with:
113
164
  | key | value |
@@ -133,6 +184,33 @@ Feature: BibTeX
133
184
  And the "_site/scholar.html" file should exist
134
185
  And I should see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
135
186
 
187
+ @tags @bibliography @post
188
+ Scenario: Simple Bibliography in a Jekyll Post
189
+ Given I have a scholar configuration with:
190
+ | key | value |
191
+ | source | ./_bibliography |
192
+ And I have a "_bibliography" directory
193
+ And I have a file "_bibliography/references.bib":
194
+ """
195
+ @book{ruby,
196
+ title = {The Ruby Programming Language},
197
+ author = {Flanagan, David and Matsumoto, Yukihiro},
198
+ year = {2008},
199
+ publisher = {O'Reilly Media}
200
+ }
201
+ """
202
+ And I have a "_posts" directory
203
+ And I have a page "_posts/2017-06-26-scholar.html":
204
+ """
205
+ ---
206
+ ---
207
+ {% bibliography -f references %}
208
+ """
209
+ When I run jekyll
210
+ Then the _site directory should exist
211
+ And the "_site/2017/06/26/scholar.html" file should exist
212
+ And I should see "<i>The Ruby Programming Language</i>" in "_site/2017/06/26/scholar.html"
213
+
136
214
  @tags @bibliography @config @template
137
215
  Scenario: Simple Bibliography With Custom Template
138
216
  Given I have a scholar configuration with:
@@ -414,4 +492,4 @@ Feature: BibTeX
414
492
  """
415
493
  When I run jekyll
416
494
  Then the _site directory should exist
417
- And I should see "The Ruby Programming Language" in "_site/scholar.html"
495
+ And I should see "The Ruby Programming Language" in "_site/scholar.html"
@@ -29,6 +29,34 @@ Feature: Citations
29
29
  And the "_site/scholar.html" file should exist
30
30
  And I should see "Flanagan" in "_site/scholar.html"
31
31
 
32
+ @tags @cite @post
33
+ Scenario: A Simple Citation in a Post
34
+ Given I have a scholar configuration with:
35
+ | key | value |
36
+ | source | ./_bibliography |
37
+ | bibliography | my_references |
38
+ And I have a "_bibliography" directory
39
+ And I have a file "_bibliography/my_references.bib":
40
+ """
41
+ @book{ruby,
42
+ title = {The Ruby Programming Language},
43
+ author = {Flanagan, David and Matsumoto, Yukihiro},
44
+ year = {2008},
45
+ publisher = {O'Reilly Media}
46
+ }
47
+ """
48
+ And I have a "_posts" directory
49
+ And I have a page "_posts/2017-06-26-scholar.html":
50
+ """
51
+ ---
52
+ ---
53
+ {% cite ruby %}
54
+ """
55
+ When I run jekyll
56
+ Then the _site directory should exist
57
+ And the "_site/2017/06/26/scholar.html" file should exist
58
+ And I should see "Flanagan" in "_site/2017/06/26/scholar.html"
59
+
32
60
  @tags @cite @file
33
61
  Scenario: Citing from another bibliography
34
62
  Given I have a scholar configuration with:
@@ -140,6 +168,36 @@ Feature: Citations
140
168
  And the "_site/scholar.html" file should exist
141
169
  And I should see "<blockquote><p>We <3 Ruby</p><cite><a .*#ruby.+\(Flanagan" in "_site/scholar.html"
142
170
 
171
+ @tags @quote @post
172
+ Scenario: A Simple Block-Quote in a Post
173
+ Given I have a scholar configuration with:
174
+ | key | value |
175
+ | source | ./_bibliography |
176
+ | bibliography | my_references |
177
+ And I have a "_bibliography" directory
178
+ And I have a file "_bibliography/my_references.bib":
179
+ """
180
+ @book{ruby,
181
+ title = {The Ruby Programming Language},
182
+ author = {Flanagan, David and Matsumoto, Yukihiro},
183
+ year = {2008},
184
+ publisher = {O'Reilly Media}
185
+ }
186
+ """
187
+ And I have a "_posts" directory
188
+ And I have a page "_posts/2017-06-26-scholar.html":
189
+ """
190
+ ---
191
+ ---
192
+ {% quote ruby %}
193
+ We <3 Ruby
194
+ {% endquote %}
195
+ """
196
+ When I run jekyll
197
+ Then the _site directory should exist
198
+ And the "_site/2017/06/26/scholar.html" file should exist
199
+ And I should see "<blockquote><p>We <3 Ruby</p><cite><a .*#ruby.+\(Flanagan" in "_site/2017/06/26/scholar.html"
200
+
143
201
  @tags @cite
144
202
  Scenario: A prefixed citation
145
203
  Given I have a scholar configuration with:
@@ -29,6 +29,34 @@ Feature: Citations
29
29
  And the "_site/scholar.html" file should exist
30
30
  And I should see "Details</a>" in "_site/scholar.html"
31
31
 
32
+ @tags @cite_details @post
33
+ Scenario: A Simple Cite Details Link in a Post
34
+ Given I have a scholar configuration with:
35
+ | key | value |
36
+ | source | ./_bibliography |
37
+ | bibliography | my_references |
38
+ And I have a "_bibliography" directory
39
+ And I have a file "_bibliography/my_references.bib":
40
+ """
41
+ @book{ruby,
42
+ title = {The Ruby Programming Language},
43
+ author = {Flanagan, David and Matsumoto, Yukihiro},
44
+ year = {2008},
45
+ publisher = {O'Reilly Media}
46
+ }
47
+ """
48
+ And I have a "_posts" directory
49
+ And I have a page "_posts/2017-06-26-scholar.html":
50
+ """
51
+ ---
52
+ ---
53
+ {% cite_details ruby %}
54
+ """
55
+ When I run jekyll
56
+ Then the _site directory should exist
57
+ And the "_site/2017/06/26/scholar.html" file should exist
58
+ And I should see "Details</a>" in "_site/2017/06/26/scholar.html"
59
+
32
60
  @tags @bibliography @config @template @cite_details
33
61
  Scenario: Raw bibtex template in details page
34
62
  Given I have a scholar configuration with:
@@ -2,7 +2,7 @@ Feature: Formatted References
2
2
  As a scholar who likes to blog
3
3
  I want to reference cool papers and books from my bibliography
4
4
 
5
- @tags @referebce
5
+ @tags @reference
6
6
  Scenario: A Simple Reference
7
7
  Given I have a scholar configuration with:
8
8
  | key | value |
@@ -29,6 +29,34 @@ Feature: Formatted References
29
29
  And the "_site/scholar.html" file should exist
30
30
  And I should see "Matsumoto, Y. \(2008\). <i>The Ruby" in "_site/scholar.html"
31
31
 
32
+ @tags @reference @post
33
+ Scenario: A Simple Reference in a Post
34
+ Given I have a scholar configuration with:
35
+ | key | value |
36
+ | source | ./_bibliography |
37
+ | bibliography | my_references |
38
+ And I have a "_bibliography" directory
39
+ And I have a file "_bibliography/my_references.bib":
40
+ """
41
+ @book{ruby,
42
+ title = {The Ruby Programming Language},
43
+ author = {Flanagan, David and Matsumoto, Yukihiro},
44
+ year = {2008},
45
+ publisher = {O'Reilly Media}
46
+ }
47
+ """
48
+ And I have a "_posts" directory
49
+ And I have a page "_posts/2017-06-26-scholar.html":
50
+ """
51
+ ---
52
+ ---
53
+ {% reference ruby %}
54
+ """
55
+ When I run jekyll
56
+ Then the _site directory should exist
57
+ And the "_site/2017/06/26/scholar.html" file should exist
58
+ And I should see "Matsumoto, Y. \(2008\). <i>The Ruby" in "_site/2017/06/26/scholar.html"
59
+
32
60
  @tags @reference @missing
33
61
  Scenario: Missing references
34
62
  Given I have a scholar configuration with:
@@ -16,7 +16,7 @@ module Jekyll
16
16
  set_context_to context
17
17
 
18
18
  # Add bibtex files to dependency tree
19
- if context.registers[:page] and context.registers[:page].has_key? "path"
19
+ if context.registers[:page] and context.registers[:page].key? "path"
20
20
  bibtex_paths.each do |bibtex_path|
21
21
  site.regenerator.add_dependency(
22
22
  site.in_source_dir(context.registers[:page]["path"]),
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '5.10.0'.freeze
3
+ VERSION = '5.10.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-scholar
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: 1.3.6
143
143
  requirements: []
144
144
  rubyforge_project: jekyll-scholar
145
- rubygems_version: 2.6.12
145
+ rubygems_version: 2.6.11
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Jekyll extensions for the academic blogger.