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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/josephine.rb +4 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b74a27f60359cf15c4a159f752f8b09842bd4203
4
- data.tar.gz: 90620c631ee298c2428f81c15668327a471ce1b2
3
+ metadata.gz: 3ce69f1314743a219aa778c19fe1386182650b65
4
+ data.tar.gz: 49c9ba51aaab6f6d5db8532fe587006c392e560b
5
5
  SHA512:
6
- metadata.gz: 44a5935066507286078dd9f4f1926291c6de606f78fb63632d42e098eb75b77fd6ca2b53f0d7a9d4a0b1b82d0910e6b2326ced3ee4cd7179036f0e485c16c35a
7
- data.tar.gz: afebf0991e06fced7bec812270f572b422f79e33fc2c2b02c33caf9e9e40d4f0fb4d77ae4e6a716dc8322922520a6940090ed9e3b1707883f61613145f0f24dc
6
+ metadata.gz: 78dbb5297d3088460136f60d6066bb415ad5c97476a3893b8d0036c7178b163583b33e2699ae52d3a4fec43b97d2e55ec301cc1773d3857999c9ae0f7a462f4d
7
+ data.tar.gz: 241bb92dd1c2b4c3e369695213cd81263b885f1467f9a50de310ab78a8be6d89fe312c2a6b734351604fe2e38a3c84763742f5ed612fdf2de019e7078a79f586
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: josephine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyrus Ghazanfar