skunk 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c12da5e81bec59fc0620d1ff4ef056f03e433b104de229bf581df3ffe05779ac
4
- data.tar.gz: b8cd95862eb27724f97ed1edbc3b098d004ad36eea028f46e629f58ab4b60fd2
3
+ metadata.gz: adc2e03bb20bde5ac6b5aed4eca58c01cf3d4788d55415c4b27a1f58e46dc85b
4
+ data.tar.gz: cf99bb3749b677148eaca998711b8f6ac28fec40f681621c8c55f093a7294c2d
5
5
  SHA512:
6
- metadata.gz: 9db4683ff0b5d486593fef100fa57f0cd5882cef38c82f64cc9173058cc6bfb2ae61a6658b8f624fe1060d05482b7c1c1c58c63a18d9e38df68a44dec1471728
7
- data.tar.gz: a4642c478749e505ce8be2254d18b4303a6a78a06f80279dc93fd2b190f27c05ff24bb218fae6d1053fc54eeeb48d4e25eb2a2d9007657cd763db5e89e60d23f
6
+ metadata.gz: e972cde74cbf4fa49ce432b1abef05bed3c7c3a4df2a2b9c2d9ec33e294a1ff5c23b2e27954d0bb8d7471cafb1078e2076ba52b53c33359cc6b243356446d852
7
+ data.tar.gz: 03a64e04c03658f866d5e5b6b5baf90f0c421efec60ffd697a3507a5ab35502857679659ba12c11d7165dec5902ffff991a200039f76e95f9fe3d6a2fecded58
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased] [(commits)](https://github.com/fastruby/skunk/compare/v0.4.0...HEAD)
8
8
 
9
+ ## [0.4.2] [(commits)](https://github.com/fastruby/skunk/compare/v0.4.1...v0.4.2)
10
+ * [BUGFIX] Fixes table width issues by rounding values (by [@etagwerker][])
11
+
9
12
  ## [0.4.1] [(commits)](https://github.com/fastruby/skunk/compare/v0.4.0...v0.4.1)
10
13
  * [BUGFIX] Fixes table width issues (by [@etagwerker][])
11
14
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skunk (0.4.0)
4
+ skunk (0.4.2)
5
5
  rubycritic (~> 4.0)
6
6
  terminal-table (~> 1.8.0)
7
7
 
@@ -84,8 +84,8 @@ TEMPL
84
84
  a_mod.stink_score,
85
85
  a_mod.churn_times_cost,
86
86
  a_mod.churn,
87
- a_mod.cost,
88
- a_mod.coverage
87
+ a_mod.cost.round(2),
88
+ a_mod.coverage.round(2)
89
89
  ]
90
90
  end
91
91
  end
@@ -41,7 +41,7 @@ module RubyCritic
41
41
  # @return [Integer]
42
42
  def churn_times_cost
43
43
  safe_churn = churn.positive? ? churn : 1
44
- @churn_times_cost ||= safe_churn * cost
44
+ @churn_times_cost ||= (safe_churn * cost).round(2)
45
45
  end
46
46
  end
47
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Skunk
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernesto Tagwerker
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.0.3
230
+ rubygems_version: 3.0.6
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: A library to assess code quality vs. code coverage