From 6dee1cfa32e219cd07416f0e3227cb45106b6ba0 Mon Sep 17 00:00:00 2001 From: Andrew Grimm Date: Tue, 15 Nov 2011 23:47:11 +1100 Subject: [PATCH] Remove profanity. --- lib/rubygems/indexer.rb | 2 +- lib/rubygems/path_support.rb | 2 +- lib/rubygems/source_index.rb | 2 +- lib/rubygems/specification.rb | 4 ++-- test/psych/test_struct.rb | 2 +- test/rubygems/test_gem_remote_fetcher.rb | 10 +++++----- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb index e87e5a3..38c46f8 100644 --- a/lib/rubygems/indexer.rb +++ b/lib/rubygems/indexer.rb @@ -347,7 +347,7 @@ class Gem::Indexer spec = Gem::Format.from_file_by_path(gemfile).spec spec.loaded_from = gemfile - # HACK: fuck this shit - borks all tests that use pl1 + # HACK: I give up - borks all tests that use pl1 # if File.basename(gemfile, ".gem") != spec.original_name then # exp = spec.full_name # exp << " (#{spec.original_name})" if diff --git a/lib/rubygems/path_support.rb b/lib/rubygems/path_support.rb index 0aaf2c1..a1684f6 100644 --- a/lib/rubygems/path_support.rb +++ b/lib/rubygems/path_support.rb @@ -44,7 +44,7 @@ class Gem::PathSupport def path=(gpaths) gem_path = [@home] - # FIX: I can't tell wtf this is doing. + # FIX: I can't tell what this is doing. gpaths ||= (ENV['GEM_PATH'] || "").empty? ? nil : ENV["GEM_PATH"] if gpaths then diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb index d0ab219..2aba3d2 100644 --- a/lib/rubygems/source_index.rb +++ b/lib/rubygems/source_index.rb @@ -267,7 +267,7 @@ class Gem::SourceIndex def search(gem_pattern, platform_or_requirement = false) requirement = nil - only_platform = false # FIX: WTF is this?!? + only_platform = false # FIX: What is this?!? # TODO - Remove support and warning for legacy arguments after 2008/11 unless Gem::Dependency === gem_pattern diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 97db19e..4435333 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -607,7 +607,7 @@ class Gem::Specification def self.remove_spec spec # TODO: beat on the tests - raise "wtf: #{spec.full_name} not in #{all_names.inspect}" unless + raise "unexpected scenario: #{spec.full_name} not in #{all_names.inspect}" unless _all.include? spec _all.delete spec end @@ -2094,7 +2094,7 @@ class Gem::Specification return @version end - # FIX: have this handle the platform/new_platform/original_platform bullshit + # FIX: have this handle the platform/new_platform/original_platform nonsense def yaml_initialize(tag, vals) # :nodoc: vals.each do |ivar, val| instance_variable_set "@#{ivar}", val diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb index 39e38f7..97251d9 100644 --- a/test/psych/test_struct.rb +++ b/test/psych/test_struct.rb @@ -24,7 +24,7 @@ module Psych loaded = Psych.load(Psych.dump(ss)) assert_instance_of(StructSubclass, loaded.foo) - # FIXME: This seems to cause an infinite loop. wtf. Must report a bug + # FIXME: This seems to cause an infinite loop. I don't understand. Must report a bug # in ruby. # assert_equal(ss, loaded) end diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 3958119..3fd0c9d 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -170,7 +170,7 @@ gems: end end - def util_fuck_with_fetcher data, blow = false + def util_muck_with_fetcher data, blow = false fetcher = Gem::RemoteFetcher.fetcher fetcher.instance_variable_set :@test_data, data @@ -201,7 +201,7 @@ gems: a1_data = fp.read end - fetcher = util_fuck_with_fetcher a1_data + fetcher = util_muck_with_fetcher a1_data a1_cache_gem = @a1.cache_file assert_equal a1_cache_gem, fetcher.download(@a1, 'http://gems.example.com') @@ -249,7 +249,7 @@ gems: fp.read end - fetcher = util_fuck_with_fetcher a1_data + fetcher = util_muck_with_fetcher a1_data install_dir = File.join @tempdir, 'more_gems' @@ -285,7 +285,7 @@ gems: FileUtils.chmod 0555, @a1.cache_dir FileUtils.chmod 0555, @gemhome - fetcher = util_fuck_with_fetcher File.read(@a1_gem) + fetcher = util_muck_with_fetcher File.read(@a1_gem) fetcher.download(@a1, 'http://gems.example.com') a1_cache_gem = File.join Gem.user_dir, "cache", @a1.file_name assert File.exist? a1_cache_gem @@ -308,7 +308,7 @@ gems: e1_data = fp.read end - fetcher = util_fuck_with_fetcher e1_data, :blow_chunks + fetcher = util_muck_with_fetcher e1_data, :do_output e1_cache_gem = e1.cache_file -- 1.6.6