Sha256: e9a47acd7eab30bafd9fdf5b74c43c6d3a9662a5fb418bf756634d2d84187288
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
## # Flay plugin for hoe. # # === Tasks Provided: # # flay:: Analyze for code duplication. module Hoe::Flay Hoe.plugin :flay ## # Optional: flay threshold to determine threshold failure. [default: 1200-100] attr_accessor :flay_threshold ## # Initialize variables for plugin. def initialize_flay self.flay_threshold ||= timebomb 1200, 100 # 80% of average :( end ## # Define tasks for plugin. def define_flay_tasks begin require 'flay' require 'flay_task' FlayTask.new :flay, self.flay_threshold rescue Exception # skip end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hoe-2.2.0 | lib/hoe/flay.rb |
hoe-2.1.0 | lib/hoe/flay.rb |
hoe-2.0.0 | lib/hoe/flay.rb |