Module: Mutant::Zombifier

Defined in:
lib/mutant/zombifier.rb

Overview

Zombifier namespace

Defined Under Namespace

Classes: File, Gem, Subject

Constant Summary collapse

IGNORE =

Excluded from zombification, reasons

  • Relies dynamic require, zombifier does not know how to recurse (racc)

  • Unparser bug (optparse)

  • Toplevel reference/cbase nodes in code (rspec)

  • Creates useless toplevel modules that get vendored under ::Zombie (set)

%w(
  set
  rspec
  diff/lcs
  diff/lcs/hunk
  unparser
  parser
  parser/all
  parser/current
  racc/parser
  optparse
).to_set

Class Method Summary collapse

Class Method Details

.run(name) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Zombify gem

Parameters:

  • name (String)

Returns:

  • (self)


46
47
48
49
# File 'lib/mutant/zombifier.rb', line 46

def self.run(name)
  Gem.new(name).zombify
  self
end

.zombifyself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Perform self zombification

Returns:

  • (self)


33
34
35
36
# File 'lib/mutant/zombifier.rb', line 33

def self.zombify
  run('mutant')
  self
end