lib/indexer/components/conflict.rb in indexer-0.1.0 vs lib/indexer/components/conflict.rb in indexer-0.2.0
- old
+ new
@@ -71,8 +71,15 @@
#
def version=(version)
@data[:version] = Version::Constraint.parse(version)
end
+ #
+ #
+ #
+ def to_h
+ {'name'=>name, 'version'=>version.to_s}
+ end
+
end
end