tasks/gem/gem.rb in new-0.0.8 vs tasks/gem/gem.rb in new-0.0.9
- old
+ new
@@ -109,12 +109,13 @@
b.dependencies.each do |g|
# loop through requirements and format them
requirements = g.requirements_list.map do |r|
# if no version is specified, convert the default open ended dependency to semantic friendly version
- r.gsub! '>= 0', '~> 0'
+ r.gsub! /^>= 0$/, '~> 0'
"'#{r}'"
end.join(',')
+
data = {
name: g.name,
requirements: requirements
}