public
Description: ignore_nil { so.i.dont.raise.nomethoderror.on.long.chained.methods }
Homepage: http://gemcutter.org/gems/ignore_nil
Clone URL: git://github.com/ssoroka/ignore_nil.git
ignore_nil / Rakefile
100644 14 lines (12 sloc) 0.548 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rubygems'
require 'rake'
require 'echoe'
 
Echoe.new('ignore_nil', '1.0.2') do |p|
  p.description = 'ignore_nil lets you happily ignore nil methods on long method chains. Keeps code pretty and much safer than "rescue nil", since it only catches NoMethodError on nil objects'
  p.url = 'http://github.com/ssoroka/ignore_nil'
  p.author = 'Steven Soroka'
  p.email = 'ssoroka78@gmail.com'
  p.ignore_pattern = ["tmp/*", 'script/**']
  p.development_dependencies = []
end
 
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each{|f| load f }