From 035fd77a341fdb0eb60aee6c78a61917790d0626 Mon Sep 17 00:00:00 2001 From: Andrew Grimm Date: Mon, 28 Nov 2011 22:21:59 +1100 Subject: [PATCH] Remove use of lame and tarded. --- lib/rdoc/markup/to_bs.rb | 2 +- lib/rubygems.rb | 2 +- test/rubygems/test_gem_remote_fetcher.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rdoc/markup/to_bs.rb b/lib/rdoc/markup/to_bs.rb index 32b1bbb..c72dfc6 100644 --- a/lib/rdoc/markup/to_bs.rb +++ b/lib/rdoc/markup/to_bs.rb @@ -65,7 +65,7 @@ class RDoc::Markup::ToBs < RDoc::Markup::ToRdoc # Adds bold or underline mixed with backspaces def convert_string string - return string unless string.respond_to? :chars # your ruby is lame + return string unless string.respond_to? :chars # your ruby is legacy return string unless @in_b or @in_em chars = if @in_b then string.chars.map do |char| "#{char}\b#{char}" end diff --git a/lib/rubygems.rb b/lib/rubygems.rb index c8f9692..74bae3c 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -450,7 +450,7 @@ module Gem %w[cache doc gems specifications].each do |name| subdir = File.join dir, name next if File.exist? subdir - FileUtils.mkdir_p subdir rescue nil # in case of perms issues -- lame + FileUtils.mkdir_p subdir rescue nil # in case of perms issues end ensure File.umask old_umask diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 3bdba5e..2eb2ef3 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -152,7 +152,7 @@ gems: def test_fetch_size_socket_error fetcher = Gem::RemoteFetcher.new nil def fetcher.connection_for(uri) - raise SocketError, "tarded" + raise SocketError, "sample error message" end uri = 'http://gems.example.com/yaml' @@ -160,7 +160,7 @@ gems: fetcher.fetch_size uri end - assert_equal "SocketError: tarded (#{uri})", e.message + assert_equal "SocketError: sample error message (#{uri})", e.message end def test_no_proxy -- 1.6.6