Sha256: f11f236bbeaea0a690cf729203e09b17131c20a96ebe8b821d20f69276ecab7e

Contents?: true

Size: 479 Bytes

Versions: 4

Compression:

Stored size: 479 Bytes

Contents

require 'colored'
module RakeCheck
  module Checker
    ##
    # Check the output of rails best pratices gem
    class Rbp < Base
      def type
        "Rails best practices"
      end

      def short_message
        warnings = @check_output[/Found (\d)+ warnings/, 1]
        if warnings
          "with #{warnings} warnings"
        else
          ""
        end
      end

      def run
        run_command "rails_best_practices --silent --spec"
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake_check-0.4.2 lib/rake_check/checker/rbp.rb
rake_check-0.4.1 lib/rake_check/checker/rbp.rb
rake_check-0.4.0 lib/rake_check/checker/rbp.rb
rake_check-0.3.6 lib/rake_check/checker/rbp.rb