minitest-test_profile 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 780eefda0cc73a3eba83927ca54d102020c4a3d9
4
- data.tar.gz: 5145f57252649655f6dfee5e6794596c17f090ba
3
+ metadata.gz: b2de9e62f7afc208283463f48f5fd38508131086
4
+ data.tar.gz: 0b3f68bb9119d0ed03c90981e5380b3baf1e0d1c
5
5
  SHA512:
6
- metadata.gz: 7c145958cbe61bfe5027900386f51b1e51c0c8b088edc31c15741c693c9ccadbdc2b94730b7d647add5b1677c5a27a570695f816a3e7a0bf99cfc71de91a9de8
7
- data.tar.gz: 68b815f156faff1e883a28ad2427a59874d809e39d5fa3dfc4de72a7619c604561a784380195091362711612917cbcd496490d6809a244c1e4c974c00a907c4b
6
+ metadata.gz: 95298cab592caeedecbb0c06edf8c2aef47d09326d92dc7b62dfb546b8901da759313dd81b8975f86fe04739395b6bdc9562da6746ffa5370abf8e45c1ddec2c
7
+ data.tar.gz: f69c0b9071558beffe6eba0162c63e554988774961d401aca874417f6ae706df15a0a68f1b9f514b81b3e9084333a2e72988f454d6f12d46393f80077557a883
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1
2
+
3
+ * Prevent raising `ZeroDivisionError`
4
+
1
5
  ## 0.2.0
2
6
 
3
7
  * Add support for Rails 5
@@ -43,6 +43,7 @@ module Minitest
43
43
  end
44
44
 
45
45
  def ratio
46
+ return 0.0 if @calculated_total_time == 0
46
47
  (slow_tests_total_time / @calculated_total_time) * 100
47
48
  end
48
49
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module TestProfile
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-test_profile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -122,9 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.5.1
125
+ rubygems_version: 2.5.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Show slow test as rspec profile options.
129
129
  test_files: []
130
- has_rdoc: