lib/feedjira/feed_entry_utilities.rb in feedjira-2.1.3 vs lib/feedjira/feed_entry_utilities.rb in feedjira-2.1.4

- old
+ new

@@ -26,17 +26,17 @@ ## # Writer for published. By default, we keep the "oldest" publish time found. def published=(val) parsed = parse_datetime(val) - @published = parsed if !@published || parsed < @published + @published = parsed if parsed && (!@published || parsed < @published) end ## # Writer for updated. By default, we keep the most recent update time found. def updated=(val) parsed = parse_datetime(val) - @updated = parsed if !@updated || parsed > @updated + @updated = parsed if parsed && (!@updated || parsed > @updated) end def sanitize! %w(title author summary content image).each do |name| if respond_to?(name) && send(name).respond_to?(:sanitize!)