Skip to content

Commit 6a75688

Browse files
author
Lee Jarvis
committed
clean up some warnings
1 parent 851172b commit 6a75688

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/jekyll/page.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module Jekyll
33
class Page
44
include Convertible
55

6+
attr_writer :dir
67
attr_accessor :site, :pager
7-
attr_accessor :name, :ext, :basename, :dir
8+
attr_accessor :name, :ext, :basename
89
attr_accessor :data, :content, :output
910

1011
# Initialize a new Page.

lib/jekyll/plugin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def self.subclasses
3434
#
3535
# Returns the Symbol priority.
3636
def self.priority(priority = nil)
37+
@priority ||= nil
3738
if priority && PRIORITIES.has_key?(priority)
3839
@priority = priority
3940
end

lib/jekyll/site.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def write
266266
def post_attr_hash(post_attr)
267267
# Build a hash map based on the specified post attribute ( post attr =>
268268
# array of posts ) then sort each array in reverse order.
269-
hash = Hash.new { |hash, key| hash[key] = Array.new }
269+
hash = Hash.new { |hsh, key| hsh[key] = Array.new }
270270
self.posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } }
271271
hash.values.map { |sortme| sortme.sort! { |a, b| b <=> a } }
272272
hash

0 commit comments

Comments
 (0)