Project

General

Profile

Bug #5625 ยป profanity.patch

Remove profanity - agrimm (Andrew Grimm), 11/15/2011 10:08 PM

View differences:

lib/rubygems/indexer.rb
347 347
        spec = Gem::Format.from_file_by_path(gemfile).spec
348 348
        spec.loaded_from = gemfile
349 349

  
350
        # HACK: fuck this shit - borks all tests that use pl1
350
        # HACK: I give up - borks all tests that use pl1
351 351
        # if File.basename(gemfile, ".gem") != spec.original_name then
352 352
        #   exp = spec.full_name
353 353
        #   exp << " (#{spec.original_name})" if
lib/rubygems/path_support.rb
44 44
  def path=(gpaths)
45 45
    gem_path = [@home]
46 46

  
47
    # FIX: I can't tell wtf this is doing.
47
    # FIX: I can't tell what this is doing.
48 48
    gpaths ||= (ENV['GEM_PATH'] || "").empty? ? nil : ENV["GEM_PATH"]
49 49

  
50 50
    if gpaths then
lib/rubygems/source_index.rb
267 267

  
268 268
  def search(gem_pattern, platform_or_requirement = false)
269 269
    requirement = nil
270
    only_platform = false # FIX: WTF is this?!?
270
    only_platform = false # FIX: What is this?!?
271 271

  
272 272
    # TODO - Remove support and warning for legacy arguments after 2008/11
273 273
    unless Gem::Dependency === gem_pattern
lib/rubygems/specification.rb
607 607

  
608 608
  def self.remove_spec spec
609 609
    # TODO: beat on the tests
610
    raise "wtf: #{spec.full_name} not in #{all_names.inspect}" unless
610
    raise "unexpected scenario: #{spec.full_name} not in #{all_names.inspect}" unless
611 611
      _all.include? spec
612 612
    _all.delete spec
613 613
  end
......
2094 2094
    return @version
2095 2095
  end
2096 2096

  
2097
  # FIX: have this handle the platform/new_platform/original_platform bullshit
2097
  # FIX: have this handle the platform/new_platform/original_platform nonsense
2098 2098
  def yaml_initialize(tag, vals) # :nodoc:
2099 2099
    vals.each do |ivar, val|
2100 2100
      instance_variable_set "@#{ivar}", val
test/psych/test_struct.rb
24 24
      loaded = Psych.load(Psych.dump(ss))
25 25
      assert_instance_of(StructSubclass, loaded.foo)
26 26

  
27
      # FIXME: This seems to cause an infinite loop.  wtf.  Must report a bug
27
      # FIXME: This seems to cause an infinite loop.  I don't understand.  Must report a bug
28 28
      # in ruby.
29 29
      # assert_equal(ss, loaded)
30 30
    end
test/rubygems/test_gem_remote_fetcher.rb
170 170
    end
171 171
  end
172 172

  
173
  def util_fuck_with_fetcher data, blow = false
173
  def util_muck_with_fetcher data, blow = false
174 174
    fetcher = Gem::RemoteFetcher.fetcher
175 175
    fetcher.instance_variable_set :@test_data, data
176 176

  
......
201 201
      a1_data = fp.read
202 202
    end
203 203

  
204
    fetcher = util_fuck_with_fetcher a1_data
204
    fetcher = util_muck_with_fetcher a1_data
205 205

  
206 206
    a1_cache_gem = @a1.cache_file
207 207
    assert_equal a1_cache_gem, fetcher.download(@a1, 'http://gems.example.com')
......
249 249
      fp.read
250 250
    end
251 251

  
252
    fetcher = util_fuck_with_fetcher a1_data
252
    fetcher = util_muck_with_fetcher a1_data
253 253

  
254 254
    install_dir = File.join @tempdir, 'more_gems'
255 255

  
......
285 285
      FileUtils.chmod 0555, @a1.cache_dir
286 286
      FileUtils.chmod 0555, @gemhome
287 287

  
288
      fetcher = util_fuck_with_fetcher File.read(@a1_gem)
288
      fetcher = util_muck_with_fetcher File.read(@a1_gem)
289 289
      fetcher.download(@a1, 'http://gems.example.com')
290 290
      a1_cache_gem = File.join Gem.user_dir, "cache", @a1.file_name
291 291
      assert File.exist? a1_cache_gem
......
308 308
      e1_data = fp.read
309 309
    end
310 310

  
311
    fetcher = util_fuck_with_fetcher e1_data, :blow_chunks
311
    fetcher = util_muck_with_fetcher e1_data, :do_output
312 312

  
313 313
    e1_cache_gem = e1.cache_file
314 314

  
315
-