fukuzatsu 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fukuzatsu/parser.rb +9 -2
- data/lib/fukuzatsu/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: c6b17ffd41b64f5c738d3e0df7a4fe242d5069dd
|
4
|
+
data.tar.gz: 3ccdcfe00c8871eb0206a1a4b875ad7a1f9ebe7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72fa270771ac11ee8b365421d0df8f4f4491bbdb700ffe4419760a62cdc01231f7a1815128b1a21a91be82e178b1e4113aca3f8a11d5247fc51966e01b9fe1d0
|
7
|
+
data.tar.gz: 9e929234e50cef1e99e87ca529534c5684b978fb47fb69b27c74b34967bae8e3d4c88cdc67ada4f82572c705b803bbc167419247dff3eca7ac76c7f2c2951ff3
|
data/lib/fukuzatsu/parser.rb
CHANGED
@@ -6,6 +6,7 @@ module Fukuzatsu
|
|
6
6
|
|
7
7
|
attr_reader :start_path, :parsed_files
|
8
8
|
attr_reader :threshold, :formatter
|
9
|
+
attr_reader :start_time
|
9
10
|
|
10
11
|
OUTPUT_DIRECTORY = "doc/fukuzatsu"
|
11
12
|
|
@@ -13,15 +14,21 @@ module Fukuzatsu
|
|
13
14
|
@start_path = path
|
14
15
|
@formatter = formatter
|
15
16
|
@threshold = threshold
|
17
|
+
@start_time = Time.now
|
16
18
|
reset_output_directory
|
17
19
|
end
|
18
20
|
|
19
21
|
def parse_files
|
20
|
-
@parsed_files = source_files.map
|
22
|
+
@parsed_files = source_files.map do |path_to_file|
|
23
|
+
parse_source_file(path_to_file)
|
24
|
+
end
|
21
25
|
end
|
22
26
|
|
23
27
|
def report
|
24
|
-
self.parsed_files.each
|
28
|
+
self.parsed_files.each do |file|
|
29
|
+
print "."
|
30
|
+
formatter.new(file, OUTPUT_DIRECTORY, file.source).export
|
31
|
+
end
|
25
32
|
write_report_index
|
26
33
|
report_complexity
|
27
34
|
end
|
data/lib/fukuzatsu/version.rb
CHANGED