Class: Toe::GemTask

Inherits:
Tap::Task
  • Object
show all
Defined in:
lib/toe/gem_task.rb

Direct Known Subclasses

Gem, Manifest, Rdoc

Instance Method Summary collapse

Instance Method Details

#default_pathObject



7
8
9
# File 'lib/toe/gem_task.rb', line 7

def default_path
  File.expand_path("#{File.basename(Dir.pwd)}.gemspec")
end

#gemspec(path) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/toe/gem_task.rb', line 11

def gemspec(path)
  unless File.exists?(path)
    raise "no such gemspec: #{path}"
  end

  eval(File.read(path), TOPLEVEL_BINDING, path)
end