lib/citeproc/ruby/renderer/observer.rb in citeproc-ruby-1.0.5 vs lib/citeproc/ruby/renderer/observer.rb in citeproc-ruby-1.0.6
- old
+ new
@@ -23,10 +23,12 @@
def update(method, key, value)
history[key] = value if method == :read
end
def skip?
- !history.empty? && history.values.all?(&:nil?)
+ !history.empty? && history.values.all? { |v|
+ v.nil? || v.respond_to?(:empty?) && v.empty?
+ }
end
def accessed
history.select { |key, value| !value.nil? }.keys
end