Sha256: a470d4bf1452f42a5f25928f9221d397c8b7b568cf98d9b990b0e7ead0766083

Contents?: true

Size: 886 Bytes

Versions: 32

Compression:

Stored size: 886 Bytes

Contents

# Don't load anything when running the gems:* tasks.
# Otherwise, hoptoad_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', 'hoptoad_notifier-*')].each do |vendored_notifier|
    $: << File.join(vendored_notifier, 'lib')
  end

  begin
    require 'hoptoad_notifier/tasks'
  rescue LoadError => exception
    namespace :hoptoad do
      %w(deploy test log_stdout).each do |task_name|
        desc "Missing dependency for hoptoad:#{task_name}"
        task task_name do
          $stderr.puts "Failed to run hoptoad:#{task_name} because of missing dependency."
          $stderr.puts "You probably need to run `rake gems:install` to install the hoptoad_notifier gem"
          abort exception.inspect
        end
      end
    end
  end

end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
square-hoptoad_notifier-2.4.9 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.11 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.10 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.9 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
square-hoptoad_notifier-2.4.8 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.8 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.7 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.6 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.5 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.4 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.2 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.1 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.4.0 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.12 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.11 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.10 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.9 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.8 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
hoptoad_notifier-2.3.7 generators/hoptoad/templates/hoptoad_notifier_tasks.rake
riscfuture-hoptoad_notifier-2.3.6 generators/hoptoad/templates/hoptoad_notifier_tasks.rake