sass-prof 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 342fc0dba26d7c663ad524ffd480330bc65f833d
4
- data.tar.gz: b4387614c2082c05b60a41da37b7480d3fca57da
3
+ metadata.gz: 9c7d438e4a44a879e06595adb4d9de922050b75f
4
+ data.tar.gz: c94f58a27c816aa78373e73eadf0952cc3bc03e9
5
5
  SHA512:
6
- metadata.gz: 15bd5e8088121c3b6d6d64976c7b5a73c470a5f1209469e046f36600aedd15445d331546d40f8dcd3400e7ef5f4dfe9a37651bae01a0a466aee5557dc6f4acc9
7
- data.tar.gz: e1af4c6e5f38ac0609ef7914dfca03686ae1cfbd3af3d7856e6d5adb42e70edaaa8dd32ad69116c8fc719c65791cf99f564aa8083c85778634376a32dff2f8ff
6
+ metadata.gz: a2e8e6dec49fb87fcaf562512fd25af074ec50b23d870c1a78ae7136f9e94ad7797a99e46c286d54e24ed260fa677a0b921d8ee3b4abd33c297126ca53fdeadb
7
+ data.tar.gz: 49b27de0d3f2e3aa221285235482699a8d1894b9bb057f8355c8f4bedc689e2e7aba331f586dbaf4faf3921b003817cdf6a099efe052d0e9d312cf0750229bbe
data/README.md CHANGED
@@ -31,6 +31,10 @@ prof = Sass::Prof::Config
31
31
  # Default is `false`
32
32
  prof.output_file = "sass-prof.log"
33
33
 
34
+ # Adjust output table column width
35
+ # Default is `20`
36
+ prof.col_width = 40
37
+
34
38
  # Mutes all output to stdout
35
39
  # Default is `false`
36
40
  prof.quiet = true
@@ -53,3 +57,7 @@ _Please note: your compile times **will be slower** due to the overhead of **Sas
53
57
  3. Commit your changes (`git commit -am 'Add some feature'`)
54
58
  4. Push to the branch (`git push origin my-new-feature`)
55
59
  5. Create a new Pull Request
60
+
61
+ ## Todo
62
+
63
+ - [ ] Support `@mixin`'s
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Prof
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
data/lib/sass/prof.rb CHANGED
@@ -98,18 +98,24 @@ module Sass
98
98
  "\e[0;#{colors.fetch(color)}m#{string}\e[0m"
99
99
  end
100
100
 
101
- def to_table(columns, cs = 12)
102
- "[ %s ]" % columns.map { |col| "%#{cs}s" % col }.join(" | ")
101
+ def to_table(columns)
102
+ "[ %s ]" % columns.map { |col|
103
+ "%-#{config.col_width}s" % col }.join(" | ")
103
104
  end
104
105
  end
105
106
 
106
107
  module Config
107
- attr_accessor :t_max, :output_file, :quiet, :color
108
+ attr_accessor :t_max, :col_width, :output_file, :quiet, :color
108
109
 
109
110
  def t_max
110
111
  @t_max ||= 100
111
112
  end
112
113
 
114
+ def col_width
115
+ @col_width = 20 if @col_width.nil?
116
+ @col_width
117
+ end
118
+
113
119
  def output_file
114
120
  @output_file = false if @output_file.nil?
115
121
  @output_file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezekg