pejorative.patch
| b/lib/rdoc/markup/to_bs.rb | ||
|---|---|---|
| 65 | 65 |
# Adds bold or underline mixed with backspaces |
| 66 | 66 | |
| 67 | 67 |
def convert_string string |
| 68 |
return string unless string.respond_to? :chars # your ruby is lame
|
|
| 68 |
return string unless string.respond_to? :chars # your ruby is legacy
|
|
| 69 | 69 |
return string unless @in_b or @in_em |
| 70 | 70 |
chars = if @in_b then |
| 71 | 71 |
string.chars.map do |char| "#{char}\b#{char}" end
|
| b/lib/rubygems.rb | ||
|---|---|---|
| 450 | 450 |
%w[cache doc gems specifications].each do |name| |
| 451 | 451 |
subdir = File.join dir, name |
| 452 | 452 |
next if File.exist? subdir |
| 453 |
FileUtils.mkdir_p subdir rescue nil # in case of perms issues -- lame
|
|
| 453 |
FileUtils.mkdir_p subdir rescue nil # in case of perms issues -- bad
|
|
| 454 | 454 |
end |
| 455 | 455 |
ensure |
| 456 | 456 |
File.umask old_umask |
| b/test/rubygems/test_gem_remote_fetcher.rb | ||
|---|---|---|
| 152 | 152 |
def test_fetch_size_socket_error |
| 153 | 153 |
fetcher = Gem::RemoteFetcher.new nil |
| 154 | 154 |
def fetcher.connection_for(uri) |
| 155 |
raise SocketError, "tarded"
|
|
| 155 |
raise SocketError, "ouch"
|
|
| 156 | 156 |
end |
| 157 | 157 | |
| 158 | 158 |
uri = 'http://gems.example.com/yaml' |
| ... | ... | |
| 160 | 160 |
fetcher.fetch_size uri |
| 161 | 161 |
end |
| 162 | 162 | |
| 163 |
assert_equal "SocketError: tarded (#{uri})", e.message
|
|
| 163 |
assert_equal "SocketError: ouch (#{uri})", e.message
|
|
| 164 | 164 |
end |
| 165 | 165 | |
| 166 | 166 |
def test_no_proxy |
| 167 |
- |
|