fukuzatsu 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1fc37f05fcd183b24dbe2ed09a7d48b5214d5cb
4
- data.tar.gz: fd03679df8338b84b667fb9c084fdc5466c442b3
3
+ metadata.gz: 6805feb83ef4136fe20602e02e1bde30b48f6422
4
+ data.tar.gz: eb8ed00b17515760b7df4d02778d719079c0aec6
5
5
  SHA512:
6
- metadata.gz: 0e96102937e251544859c12e3bd403d07fb405d1509c4f46369122aeebb2eeea0037aece27e8c8f78d11ef07b9452ece1e6a2925d0962eaa5a8d5281c3021978
7
- data.tar.gz: 453b198fd14b8eabd98ac67a9375fdcfd2f41ae64254ed0ab488718e80beb11d54660a34a8c12d280a4d0509a848933406b5c1ae0453fcff2a667ce4cccb45f7
6
+ metadata.gz: 80dd25576ef53baa0cd49698edb9a2b91bfbb6875f47392c5f71fe3bb454dd01023a8243708934ab0cbdca855cad0431d2d9c4fae42535728be5e8cd4d3ab1a8
7
+ data.tar.gz: 91b91e48fde13609ccf11c2d5652c1390926b2bc7c0c24def9592192e3122bd28792fd52acbd14c02e8e232dd0aec217ba179dcca9311250443f24cfc39aafa5
@@ -32,7 +32,7 @@ module Formatters
32
32
  title: file.path_to_file.color(:white),
33
33
  headings: header,
34
34
  rows: rows,
35
- style: {width: 80}
35
+ style: {width: 90}
36
36
  )
37
37
  table.align_column(3, :right)
38
38
  puts table
@@ -41,10 +41,15 @@ module Formatters
41
41
  def rows
42
42
  file.methods.map do |method|
43
43
  color = color_for(method)
44
- ["#{file.class_name}".color(color), "#{method.name}".color(color), "#{method.complexity}".color(color)]
44
+ [wrap("#{file.class_name}").color(color), wrap("#{method.name}".color(color)), "#{method.complexity}".color(color)]
45
45
  end
46
46
  end
47
47
 
48
+ def wrap(string)
49
+ return string if string.length < 25
50
+ string[0..24] << "..."
51
+ end
52
+
48
53
  end
49
54
 
50
55
  end
@@ -1,3 +1,3 @@
1
1
  module Fukuzatsu
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fukuzatsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bantik