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 +4 -4
- data/README.md +8 -0
- data/lib/sass/prof/version.rb +1 -1
- data/lib/sass/prof.rb +9 -3
- 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: 9c7d438e4a44a879e06595adb4d9de922050b75f
|
4
|
+
data.tar.gz: c94f58a27c816aa78373e73eadf0952cc3bc03e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sass/prof/version.rb
CHANGED
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
|
102
|
-
"[ %s ]" % columns.map { |col|
|
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
|