Class: Toe::GemTask
- Inherits:
-
Tap::Task
- Object
- Tap::Task
- Toe::GemTask
- Defined in:
- lib/toe/gem_task.rb
Instance Method Summary collapse
Instance Method Details
#default_path ⇒ Object
7 8 9 |
# File 'lib/toe/gem_task.rb', line 7 def default_path File.("#{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 |