hometown 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef3bf9cd07fd65698dbf269368f59acf0e8af42c
4
- data.tar.gz: 4e911e6a515e81f1009bf40afd6673dceb00fde9
3
+ metadata.gz: 89c3c9b22a99ef3183693a25774cb05312d90999
4
+ data.tar.gz: 6f4fb5a03335dcea8ab71da324617f48f5468a65
5
5
  SHA512:
6
- metadata.gz: 2c0c696f52311f61a9d46ca615014f7d1c748bf33670aca6575e17e8ad96f26543c2504be435ab118476044f414d7fbca0a93f5c1a481ddda0067cc7c65a83fd
7
- data.tar.gz: b9d13e4fffd22bac7677d67cdce2ae4c6b28540430047970cef33fb87d7fdf639c8b33a91fe90163d83fc5a2e821fefe41698fb169d163db4feb88a566762c17
6
+ metadata.gz: 92a2e7ccc554989955839ee4b612f900b875807fd36c3c22a9d6fddfe25d912f0b606494cf97f04e864dcb30491a40cea14d69084d7c3778c2268fa5bb3a4bb0
7
+ data.tar.gz: f449f6c97887f3e3a0ade7953dfd0e751548c00bcf3bce52d5dc748a289d0f0f3fd855ec4558473fcceee9ae138ebbd94552bc416e326bd505aef2504ad6661f
data/lib/hometown.rb CHANGED
@@ -33,7 +33,9 @@ module Hometown
33
33
 
34
34
  def self.undisposed_report_at_exit
35
35
  at_exit do
36
- puts Hometown.undisposed_report
36
+ report = Hometown.undisposed_report
37
+ report = "No leaks? Nice work!" if report.empty?
38
+ puts report
37
39
  end
38
40
  end
39
41
  end
@@ -83,7 +83,7 @@ module Hometown
83
83
  hash.group_by { |trace, _| trace.traced_class }.each do |clazz, counts|
84
84
  count = counts.map { |count| count.last }.inject(0, &:+)
85
85
  if count > 0
86
- result += "[#{clazz}] => #{count}"
86
+ result += "[#{clazz}] => #{count}\n"
87
87
  end
88
88
  end
89
89
 
@@ -1,3 +1,3 @@
1
1
  module Hometown
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hometown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason R. Clark