Skip to content
Browse files

modified gem controller to parse new format for gem.list file correctly

(it now takes the first field from each line as the gem name and ignores
any extra fields that may appear in the gem.list file after that gem name)
  • Loading branch information...
1 parent e421282 commit 45845a14f6e4ee244c8b9c4739142245d1d60d7b Tom McSweeney committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 razor_microkernel/rz_mk_gem_controller.rb
View
4 razor_microkernel/rz_mk_gem_controller.rb
@@ -73,8 +73,8 @@ def installListedGems
response = Net::HTTP.get_response(uri)
case response
when Net::HTTPSuccess
- response.body.split.each { |gemNameFromFile|
- gemName = gemNameFromFile.chomp
+ response.body.split("\n").each { |gemNameFromFile|
+ gemName = gemNameFromFile.split[0].chomp
addToInstalledGems(gemName)
}
else

0 comments on commit 45845a1

Please sign in to comment.
Something went wrong with that request. Please try again.