Skip to content

Commit

Permalink
Merge tag '0.2.6' into develop
Browse files Browse the repository at this point in the history
initiliaze files array
  • Loading branch information
fauno committed Jan 8, 2017
2 parents aaea00e + 8cfe253 commit 1aa1f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/jekyll-pandoc-multiple-formats/unite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,19 @@ def initialize(output_file, files)
raise ArgumentError.new 'An array of filenames is required' unless files.is_a? Array

@output_file = output_file
@files = files
self.files = files

render_template
self
end

def <<(file)
@files ||= []
@files << File.realpath(file) if /\.pdf\Z/ =~ file
end

def files=(file_array)
return unless file_array.is_a? Array
return unless file_array.respond_to? :each

file_array.each do |f|
self << f
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-pandoc-multiple-formats/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JekyllPandocMultipleFormats
VERSION = '0.2.5'
VERSION = '0.2.6'
end

0 comments on commit 1aa1f83

Please sign in to comment.