Skip to content
Browse files

fixed 1.8 compatibility issue #3

  • Loading branch information...
1 parent fe403a9 commit 5d84371546bc3d1451a47e317d8b673ec41aa3bf @inukshuk committed Jul 12, 2012
View
1 features/support/env.rb
@@ -3,7 +3,6 @@
require 'jekyll/scholar'
-
require 'debugger'
View
2 lib/jekyll/scholar/generators/details.rb
@@ -47,7 +47,7 @@ def generate(site)
if generate_details?
entries.each do |entry|
- details = Details.new(site, site.source, details_path, entry)
+ details = Details.new(site, site.source, File.join('', details_path), entry)
details.render(site.layouts, site.site_payload)
details.write(site.dest)
View
4 lib/jekyll/scholar/utilities.rb
@@ -24,7 +24,7 @@ def entries
b = bibliography[config['query']]
unless config['sort_by'] == 'none'
- b.sort_by! { |e| e[config['sort_by']].to_s }
+ b = b.sort_by { |e| e[config['sort_by']].to_s }
b.reverse! if config['order'] =~ /^(desc|reverse)/i
end
@@ -54,7 +54,7 @@ def details_file_for(entry)
end
def details_link_for(entry, base = base_url)
- [base, details_path, details_file_for(entry)].join('/')
+ File.join(base, details_path, details_file_for(entry))
end
def base_url
View
2 lib/jekyll/scholar/version.rb
@@ -1,5 +1,5 @@
module Jekyll
class Scholar
- VERSION = '0.0.8'.freeze
+ VERSION = '0.0.9'.freeze
end
end

0 comments on commit 5d84371

Please sign in to comment.
Something went wrong with that request. Please try again.