josephine 0.3.5 → 0.4.0
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 +4 -4
- data/lib/josephine.rb +4 -9
- 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: 3ce69f1314743a219aa778c19fe1386182650b65
|
4
|
+
data.tar.gz: 49c9ba51aaab6f6d5db8532fe587006c392e560b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78dbb5297d3088460136f60d6066bb415ad5c97476a3893b8d0036c7178b163583b33e2699ae52d3a4fec43b97d2e55ec301cc1773d3857999c9ae0f7a462f4d
|
7
|
+
data.tar.gz: 241bb92dd1c2b4c3e369695213cd81263b885f1467f9a50de310ab78a8be6d89fe312c2a6b734351604fe2e38a3c84763742f5ed612fdf2de019e7078a79f586
|
data/lib/josephine.rb
CHANGED
@@ -42,18 +42,13 @@ class Josephine
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def display_stat(num_files, line_count, line_com, space)
|
45
|
-
puts ""
|
46
|
-
puts "------------------------------"
|
45
|
+
puts "\n------------------------------\n"
|
47
46
|
if @extension == "-all"
|
48
|
-
puts "#{num_files.to_s} files"
|
47
|
+
puts "#{num_files.to_s} files\n"
|
49
48
|
else
|
50
|
-
puts "#{num_files.to_s} files with #{@extension} extension
|
49
|
+
puts "#{num_files.to_s} files with #{@extension} extension.\n"
|
51
50
|
end
|
52
|
-
puts "#{line_count.to_s} lines of code."
|
53
|
-
puts "#{(line_count.to_f/num_files.to_f).round(2)} LOC/file."
|
54
|
-
puts "#{line_com.to_s} lines of comments."
|
55
|
-
puts "#{space.to_s} line spacing."
|
56
|
-
puts "#{(space.to_f / num_files.to_f).round(2)} average line space / file."
|
51
|
+
puts "#{line_count.to_s} lines of code.\n#{(line_count.to_f/num_files.to_f).round(2)} LOC/file.\n#{line_com.to_s} lines of comments.\n#{space.to_s} line spacing.\n#{(space.to_f / num_files.to_f).round(2)} average line space / file.\n"
|
57
52
|
end
|
58
53
|
|
59
54
|
|