jekyll-scholar 5.8.4 → 5.8.5

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: 261b4ab57efdaea11eafcbfdd1973cd051a10fa5
4
- data.tar.gz: e6aa15bdee7af82b7b158650cf497b90556d5d5b
3
+ metadata.gz: 6a066765a98ef88cac6bde9f73aa707cdb71e938
4
+ data.tar.gz: d342a9115b68215869dc61cd4ceb10a012db0526
5
5
  SHA512:
6
- metadata.gz: 78ffddca578af97b9df9cf7267f09dff1391791f67931e981f6df7f74df20cde569495b6120ce596c658826f281763c3bcebe81edfe2782beba5ba711439fc4d
7
- data.tar.gz: dd7147b10476c5b591f0b714f8ed4519ca48274ed955196bcab8b85c8a476e43ab55767174b8a13e60cd46844b0fd9b8fdd4c6cd8ce3e532d06c90239d9001b6
6
+ metadata.gz: dbb7afaca8fcfc7a51d1328ada1b8425f8f7240be048ee2b7f7dfde3b87365d75482ec1eef947f75ae69bcd6933f7e87498f4b20828ad65f0bc813348eab33f4
7
+ data.tar.gz: 2c7c4e0857fa6bd5854954265faf2d495f0aebaafc710a5a4ee4b6e6e0d9f3c38089d5521d428b77198e996a670b5b42d0faf23b7cf8f30bec35735b41f50b72
@@ -112,3 +112,30 @@ Feature: String replacement
112
112
  Then the _site directory should exist
113
113
  And the "_site/scholar.html" file should exist
114
114
  And I should see "<i>\"The \" # \"Ruby\" # \" Programming Language\"</i>" in "_site/scholar.html"
115
+
116
+ @tags @string
117
+ Scenario: String replacement with queries involving negative conditions
118
+ Given I have a scholar configuration with:
119
+ | key | value |
120
+ | source | ./_bibliography |
121
+ And I have a "_bibliography" directory
122
+ And I have a file "_bibliography/references.bib":
123
+ """
124
+ @string{ rubypl = "The Ruby Programming Language" }
125
+ @book{ruby,
126
+ title = rubypl,
127
+ author = {Flanagan, David and Matsumoto, Yukihiro},
128
+ year = {2008},
129
+ publisher = {O'Reilly Media}
130
+ }
131
+ """
132
+ And I have a page "scholar.html":
133
+ """
134
+ ---
135
+ ---
136
+ {% bibliography -f references --query !@article %}
137
+ """
138
+ When I run jekyll
139
+ Then the _site directory should exist
140
+ And the "_site/scholar.html" file should exist
141
+ And I should see "<i>The Ruby Programming Language</i>" in "_site/scholar.html"
@@ -161,7 +161,7 @@ module Jekyll
161
161
  end
162
162
 
163
163
  def entries
164
- sort bibliography[query || config['query']]
164
+ sort bibliography[query || config['query']].select { |x| x.instance_of? BibTeX::Entry}
165
165
  end
166
166
 
167
167
  def offset
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '5.8.4'.freeze
3
+ VERSION = '5.8.5'.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: 5.8.4
4
+ version: 5.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll