Rakefile in rubygb-0.2.1 vs Rakefile in rubygb-0.2.2

- old
+ new

@@ -10,15 +10,20 @@ # # # # Gem build and install task desc info -task :gem do +task :gem => :check_debug do puts info + "\n\n" print " "; sh "gem build #{gemspec_file}" FileUtils.mkdir_p 'pkg' FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg' puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem} +end + +desc "Check for debug code" +task :check_debug do + raise "you left in some stupid debug stuff" if system("grep -irl binding\.pry lib") or system(%(grep -irl -e 'require.*pry' lib)) end # # # # Start an IRB session with the gem loaded