abi_provide = true
ruby_versioned = true
elsif path.match(specpatt)
- ruby_versioned = true
gems.push(path.chomp)
# this is quite ugly and lame, but the assumption made is that if any files
# found in any of these directories specific to this ruby version, the
version = version.gsub(/\~>/, '=>')
end
if version[0..1] == "!="
- pessimistic = "rubygem(%s) < %s\n" % [name, Gem::Version.create(version[3..-1]).bump]
- version = version.gsub(/\!=/, '=>')
+ version = version.gsub(/\!=/, '>')
end
- version = version.gsub(/^/, ' ')
+ version = version.sub(/^/, ' ')
end
version = "rubygem(%s)%s\n%s" % [name, version, pessimistic]
end