Sha256: decd182a3eb34dd288855c5490580892dc3fea22702684d87a9189e9ed452aa8
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 Bytes
Contents
# Don't load anything when running the gems:* tasks. # Otherwise, errornot_notifier will be considered a framework gem. # https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629 unless ARGV.any? {|a| a =~ /^gems/} Dir[File.join(RAILS_ROOT, 'vendor', 'gems', 'errornot_notifier-*')].each do |vendored_notifier| $: << File.join(vendored_notifier, 'lib') end begin require 'errornot_notifier/tasks' rescue LoadError => exception namespace :errornot do %w(test log_stdout).each do |task_name| desc "Missing dependency for errornot:#{task_name}" task task_name do $stderr.puts "Failed to run errornot:#{task_name} because of missing dependency." $stderr.puts "You probably need to run `rake gems:install` to install the errornot_notifier gem" abort exception.inspect end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errornot_notifier-1.1.1 | generators/errornot/templates/errornot_notifier_tasks.rake |
errornot_notifier-1.1.0 | generators/errornot/templates/errornot_notifier_tasks.rake |