lib/how_is/analyzer.rb in how_is-16.0.0 vs lib/how_is/analyzer.rb in how_is-17.0.0
- old
+ new
@@ -60,10 +60,12 @@
v = DateTime.parse(v) if k.end_with?('_date')
[k, v]
end.to_h
- %w[oldest_issue oldest_pull].each do |key|
+ hash.keys.each do |key|
+ next unless hash[key].is_a?(Hash) && hash[key]['date']
+
hash[key]['date'] = DateTime.parse(hash[key]['date'])
end
Analysis.new(hash)
end