jekyll-scholar 4.4.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/README.md +4 -0
- data/features/cited_only.feature +40 -0
- data/features/support/env.rb +0 -1
- data/lib/jekyll/scholar/tags/bibliography.rb +4 -1
- data/lib/jekyll/scholar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8597b65438a3297341bfac11de4628d852fd0d0f
|
4
|
+
data.tar.gz: d2f1afb31eee35fbb0939ce14d3e92737e71101c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0aa3e70056caeab49438f7e19a8c1442c57aef54fe14254bb61ba717acc6078d9c1472fcbbcbfd4a7756f0f5a84330e3407f27712f055511a9ec117ebee388
|
7
|
+
data.tar.gz: fac2a9d45fda169a473be1da8e9cb44a4138676d89f28dcb71c535af994fcf3f1065b020cebc4d82f30459c96fcb1d1f1482fa3e78906bf8b75c6c4aaad3d5df
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/features/cited_only.feature
CHANGED
@@ -70,3 +70,43 @@ Feature: Cited-only Bibliographies
|
|
70
70
|
And I should not see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
|
71
71
|
And I should not see "<i>Smalltalk Best Practice Patterns</i>" in "_site/scholar.html"
|
72
72
|
|
73
|
+
@wip
|
74
|
+
Scenario: Cited items with prefix
|
75
|
+
Given I have a scholar configuration with:
|
76
|
+
| key | value |
|
77
|
+
| source | ./_bibliography |
|
78
|
+
And I have a "_bibliography" directory
|
79
|
+
And I have a file "_bibliography/references.bib":
|
80
|
+
"""
|
81
|
+
@book{ruby,
|
82
|
+
title = {The Ruby Programming Language},
|
83
|
+
author = {Flanagan, David and Matsumoto, Yukihiro},
|
84
|
+
year = {2008},
|
85
|
+
publisher = {O'Reilly Media}
|
86
|
+
},
|
87
|
+
@book{smalltalk,
|
88
|
+
title = {Smalltalk Best Practice Patterns},
|
89
|
+
author = {Kent Beck},
|
90
|
+
year = {1996},
|
91
|
+
publisher = {Prentice Hall}
|
92
|
+
}
|
93
|
+
|
94
|
+
"""
|
95
|
+
And I have a page "scholar.html":
|
96
|
+
"""
|
97
|
+
---
|
98
|
+
---
|
99
|
+
{% cite smalltalk %}
|
100
|
+
{% bibliography --cited --prefix one %}
|
101
|
+
|
102
|
+
{% cite ruby %}
|
103
|
+
{% bibliography --cited --prefix two %}
|
104
|
+
"""
|
105
|
+
When I run jekyll
|
106
|
+
Then the _site directory should exist
|
107
|
+
And the "_site/scholar.html" file should exist
|
108
|
+
And I should see "one-smalltalk" in "_site/scholar.html"
|
109
|
+
And I should see "two-ruby" in "_site/scholar.html"
|
110
|
+
And I should not see "one-ruby" in "_site/scholar.html"
|
111
|
+
And I should not see "two-smalltalk" in "_site/scholar.html"
|
112
|
+
|
data/features/support/env.rb
CHANGED
@@ -27,6 +27,9 @@ module Jekyll
|
|
27
27
|
cited_references.include? e.key
|
28
28
|
end
|
29
29
|
end
|
30
|
+
|
31
|
+
# See #90
|
32
|
+
cited_keys.clear
|
30
33
|
end
|
31
34
|
|
32
35
|
items = items.take(max.to_i) if limit_entries?
|
@@ -43,7 +46,7 @@ module Jekyll
|
|
43
46
|
}.join("\n")
|
44
47
|
|
45
48
|
content_tag config['bibliography_list_tag'], bibliography, :class => config['bibliography_class']
|
46
|
-
|
49
|
+
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
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.
|
4
|
+
version: 4.5.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: 2015-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|