tasks/gem/gem.rb in new-0.0.9 vs tasks/gem/gem.rb in new-0.0.10
- old
+ new
@@ -105,18 +105,10 @@
runtime = []
development = []
# loop through the required gems and find default and development gems
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}'"
- end.join(',')
-
-
+ requirements = g.requirements_list.map{ |r| "'#{r}'" }.join(',')
data = {
name: g.name,
requirements: requirements
}