Sha256: 41277d113ea503d21a3ebf8dd41d5e0a4287514ca47138fbb32f16c2dff57b29

Contents?: true

Size: 518 Bytes

Versions: 14

Compression:

Stored size: 518 Bytes

Contents

module JefferiesTube::Coverage
  def self.default_converage
    {
      'Controllers' => 10,
      'API Controllers' => 100,
      'Models' => 100,
      'Services' => 100,
      'Helpers' => 10,
      'Policies' => 100,
      'Jobs' => 100,
      'Mailers' => 0,
      'Libraries' => 0,
      'Plugins' => 0,
      'Ungrouped' => 10
    }
  end

  def self.required_coverage=(hash)
    @required_coverage = hash
  end

  def self.required_coverage
    self.default_converage.merge(@required_coverage || {})
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jefferies_tube-1.7.1 lib/jefferies_tube/coverage.rb
jefferies_tube-1.7.0 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.9 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.8 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.7 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.6 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.5 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.4 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.3.2 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.3.1 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.3 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.2 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.1 lib/jefferies_tube/coverage.rb
jefferies_tube-1.6.0 lib/jefferies_tube/coverage.rb