jekyll-scholar 4.3.1 → 4.3.2

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: 2a410135bb1dbc35398147338798d858ac0bce52
4
- data.tar.gz: 187845c095db45a86a1e997047bc867d134e9609
3
+ metadata.gz: 15aae62da0a4e176e1f392de057292c59b322ac6
4
+ data.tar.gz: 9340260fbbc3d480693dfc946f32531ca74418fb
5
5
  SHA512:
6
- metadata.gz: e2eb494d21a698dc0a1ad040139231b42d18af57c37403b9e54c38457b7d3e71bf2d21b88867259b28a4dd564a388adca71ce1d651715d8dd1ecb2cdc514c86e
7
- data.tar.gz: d78b4b72ff93b00afe8e9699e3bdf094caf8f58a2478d28d9112d587c68137a7bfc4f8988d4ae555a4923d2aba5c25d908a95679a3502267844bdbe0b8c81291
6
+ metadata.gz: 13bcb37ac778112aa909753f0322c8f1f6a7bda0b171c93229f9cee0b4e640fbe7afd9f8de6b36c97e4c79ba17d77dd32df0fdaddb55e3449e0f98f4676a119e
7
+ data.tar.gz: 4b566352b1a12b06f891c0bc8068eb85e16b62cc3faa966e2420093b6015b1a7eb09c1746692f52b1b60b859cf9c27931c0b3e42b3e467ab229b0911543e7afd
data/Gemfile CHANGED
@@ -25,7 +25,12 @@ group :development do
25
25
  end
26
26
 
27
27
  group :debug do
28
- gem 'debugger', '~>1.6', :require => false, :platform => [:mri_19, :mri_20]
28
+ if RUBY_VERSION > '2.0'
29
+ gem 'byebug', '~>3.5', :require => false, :platform => :mri
30
+ else
31
+ gem 'debugger', '~>1.6', :require => false, :platform => [:mri_19, :mri_20]
32
+ end
33
+
29
34
  gem 'rubinius-compiler', '~>2.0', :require => false, :platform => :rbx
30
35
  gem 'rubinius-debugger', '~>2.0', :require => false, :platform => :rbx
31
36
  end
@@ -6,7 +6,11 @@ rescue LoadError
6
6
  end
7
7
 
8
8
  begin
9
- require 'debugger'
9
+ if RUBY_VERSION > '2.0'
10
+ require 'byebug'
11
+ else
12
+ require 'debugger'
13
+ end
10
14
  rescue LoadError
11
15
  # ignore
12
16
  end
@@ -208,12 +208,22 @@ module Jekyll
208
208
  name = config['bibliography']
209
209
  end
210
210
 
211
- # return as is if it is an absolute path
211
+ # Return as is if it is an absolute path
212
+ # Improve by using Pathname from stdlib?
212
213
  return name if name.start_with?('/') && File.exists?(name)
213
214
 
214
- p = File.join(config['source'], name)
215
- p << '.bib' unless File.exists?(p)
216
- p
215
+ name = File.join scholar_source, name
216
+ name << '.bib' if File.extname(name).empty? && !File.exists?(name)
217
+ name
218
+ end
219
+
220
+ def scholar_source
221
+ source = config['source']
222
+
223
+ # Improve by using Pathname from stdlib?
224
+ return source if source.start_with?('/') && File.exists?(source)
225
+
226
+ File.join site.source, source
217
227
  end
218
228
 
219
229
  def reference_tag(entry, index = nil)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '4.3.1'.freeze
3
+ VERSION = '4.3.2'.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: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
@@ -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.2.2
141
+ rubygems_version: 2.4.5
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Jekyll extensions for the academic blogger.
@@ -158,3 +158,4 @@ test_files:
158
158
  - features/string.feature
159
159
  - features/support/env.rb
160
160
  - features/support/hooks.rb
161
+ has_rdoc: