Sha256: f31a9388500aa401e375f00a6c9bba8df3bde2fed5326a6f54f98c5e4c663366

Contents?: true

Size: 856 Bytes

Versions: 31

Compression:

Stored size: 856 Bytes

Contents

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

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

end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
airbrakeV4rails5-4.3.8 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.8 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.7 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.6 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.5 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.4 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.3 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.2 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.1 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.3.0 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.2.1 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.2.0 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.1.0 generators/airbrake/templates/airbrake_tasks.rake
airbrake-4.0.0 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.2.1 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.2.0 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.1.17 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.1.16 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.1.15 generators/airbrake/templates/airbrake_tasks.rake
airbrake-3.1.14 generators/airbrake/templates/airbrake_tasks.rake