lib/unwrappr/lock_file_comparator.rb in unwrappr-0.5.0 vs lib/unwrappr/lock_file_comparator.rb in unwrappr-0.6.0
- old
+ new
@@ -19,10 +19,12 @@
end
private
def specs_versions(lock_file)
- Hash[lock_file.specs.map { |s| [s.name.to_sym, s.version.to_s] }]
+ lock_file.specs.each_with_object({}) do |s, memo|
+ memo[s.name.to_sym] = s.version.to_s
+ end
end
end
end
end