lib/json/ld/compact.rb in json-ld-1.1.10 vs lib/json/ld/compact.rb in json-ld-1.1.11

- old
+ new

@@ -44,10 +44,10 @@ end inside_reverse = property == '@reverse' result = {} - element.keys.each do |expanded_property| + element.each_key do |expanded_property| expanded_value = element[expanded_property] debug("") {"#{expanded_property}: #{expanded_value.inspect}"} if %w(@id @type).include?(expanded_property) compacted_value = [expanded_value].flatten.compact.map do |expanded_type|