birth_control 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/birth_control/report.rb +1 -0
- data/lib/birth_control/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a1022367f18a0c15b87d903ba788001a3c82cc
|
4
|
+
data.tar.gz: 08f5c1504c63d8465447c494b1d97a0232e2a63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1099a79a616f41d3dcfbef4b3e92d365d5f4ae2e08632fa66e645d89f35bface42bfdce3dcae9a72ab5630b65b537968953f8692c8e8496ec10395b9efcb9e0
|
7
|
+
data.tar.gz: 71d504aa7728731ec6805e1a981378486a1c40a39214a6fd0f737c2e52133448fc98cc5cc739d87f50d6249644afb8d90873bf5bf74753061b3a8553fed3ca17
|
data/lib/birth_control/report.rb
CHANGED
@@ -25,6 +25,7 @@ module BirthControl
|
|
25
25
|
lines << "\n#{klass}(#{id}) - #{callers.size} times"
|
26
26
|
callers.each_with_index do |caller, index|
|
27
27
|
occurence = caller.detect { |call| call.match(/app\//) }
|
28
|
+
occurence ||= caller.first
|
28
29
|
occurence.sub!(/(.*)\/app\//, 'app/')
|
29
30
|
lines << " #{index+1}. #{occurence}"
|
30
31
|
end
|