rblineprof-report 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/rblineprof/report/source.rb +6 -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: 3768e906e3d72f26780b5fbfc53e2d2b1979973d
|
4
|
+
data.tar.gz: 549230e9fd41484c30f6238cc3aaf612c6eb0de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94ea4ec548a9b64b2abb70523bfc1f786fc4e8dfca1e0fdc80cadeadf1d95825fa9df8ca9d125ee852c712e9d255dabf4899020e6882f092b720d1c3b976e08
|
7
|
+
data.tar.gz: 32caea4097589ff03204323caffb6fd237be94a4c45143abb76da25017b96104c36eb23ced000e48670eb721b7b17264745d3b440d8b3d5548b21d5f730514c2
|
@@ -57,7 +57,12 @@ module LineProf
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def source_lines
|
60
|
-
|
60
|
+
if File.exist?(file_name)
|
61
|
+
@source_lines ||= ::File.readlines(file_name)
|
62
|
+
else
|
63
|
+
$stderr.puts "LineProf::Report::Source: #{file_name} is not found"
|
64
|
+
@source_lines ||= []
|
65
|
+
end
|
61
66
|
end
|
62
67
|
|
63
68
|
private
|