sass-prof 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +11 -11
- data/Gemfile +4 -4
- data/LICENSE +21 -21
- data/README.md +63 -63
- data/Rakefile +6 -1
- data/lib/sass-prof/version.rb +7 -7
- data/lib/sass-prof.rb +206 -179
- data/sass-prof.gemspec +26 -26
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07d2ed843eae04a7db961b8a36c0c32b1605e8dd
|
4
|
+
data.tar.gz: 5e920ed80a9fb1292d8bd91d95d4ba7aecf91361
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa715befb5ac014ae0ca096c2a0cc41fa10c7a9cb0a9489a36afdc6edb8542e1dc27f856098bde14a5090c22bbdab830d835c9a80192f524abe796ad0353283a
|
7
|
+
data.tar.gz: 996430f6c377012287e2d189e4897cd5b4500a804ffa68fb8e668f7a43248d66ad94200f27f6736645558a039ea9de76a31749acc01d0d261e8cdc13a6cf2158
|
data/.gitignore
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
.sass-cache/
|
2
|
-
/spec/stylesheets/
|
3
|
-
/.bundle/
|
4
|
-
/.yardoc
|
5
|
-
/Gemfile.lock
|
6
|
-
/_yardoc/
|
7
|
-
/coverage/
|
8
|
-
/doc/
|
9
|
-
/pkg/
|
10
|
-
/spec/reports/
|
11
|
-
/tmp/
|
1
|
+
.sass-cache/
|
2
|
+
/spec/stylesheets/
|
3
|
+
/.bundle/
|
4
|
+
/.yardoc
|
5
|
+
/Gemfile.lock
|
6
|
+
/_yardoc/
|
7
|
+
/coverage/
|
8
|
+
/doc/
|
9
|
+
/pkg/
|
10
|
+
/spec/reports/
|
11
|
+
/tmp/
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in sass-prof.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in sass-prof.gemspec
|
4
|
+
gemspec
|
data/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 Ezekiel Gabrielse
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Ezekiel Gabrielse
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,63 +1,63 @@
|
|
1
|
-
# Sass Prof
|
2
|
-
|
3
|
-
[![Gem](https://img.shields.io/gem/v/sass-prof.svg?style=flat-square)](https://rubygems.org/gems/sass-prof)
|
4
|
-
|
5
|
-
Sass Prof is a code profiler for [Sass](https://github.com/sass/sass). For each function, Sass Prof will show the execution time for the function, which file called it and what arguments were given when the function was called.
|
6
|
-
|
7
|
-
## Requirements
|
8
|
-
|
9
|
-
* Sass ~> `3.4.0`
|
10
|
-
|
11
|
-
## Installation
|
12
|
-
|
13
|
-
1. Install with `gem install sass-prof`
|
14
|
-
2. If you're using Compass, add `require "sass-prof"` to your `config.rb`
|
15
|
-
3. Sass Prof will automatically run next time you compile
|
16
|
-
4. That's it!
|
17
|
-
|
18
|
-
## Uninstall
|
19
|
-
1. Remove the line `require "sass-prof"` from your `config.rb`
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
You may specify a few options within your `config.rb`, such as directing output to a log file.
|
23
|
-
|
24
|
-
```ruby
|
25
|
-
require "sass-prof"
|
26
|
-
|
27
|
-
# Instance of Sass::Prof's configuration
|
28
|
-
prof = Sass::Prof::Config
|
29
|
-
|
30
|
-
# Directs all output to a log file
|
31
|
-
# Default is `false`
|
32
|
-
prof.output_file = "sass-prof.log"
|
33
|
-
|
34
|
-
# Adjust output table column width
|
35
|
-
# Default is `20`
|
36
|
-
prof.col_width = 40
|
37
|
-
|
38
|
-
# Mutes all output to stdout
|
39
|
-
# Default is `false`
|
40
|
-
prof.quiet = true
|
41
|
-
|
42
|
-
# Maximum execution time allowed in ms
|
43
|
-
# Default is `100`
|
44
|
-
prof.t_max = 500
|
45
|
-
|
46
|
-
# Enable colored output
|
47
|
-
# Default is `true`
|
48
|
-
prof.color = true
|
49
|
-
```
|
50
|
-
|
51
|
-
_Please note: your compile times **will be slower** due to the overhead of **Sass Prof**. This library was created to help you find potential bottlenecks within your code. If you find any bugs or inconsistencies, please file an [issue](https://github.com/ezekg/sass-prof/issues) or [pull request](https://github.com/ezekg/sass-prof/pulls)._
|
52
|
-
|
53
|
-
## Contributing
|
54
|
-
|
55
|
-
1. Fork it ( https://github.com/ezekg/sass-prof/fork )
|
56
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
-
5. Create a new Pull Request
|
60
|
-
|
61
|
-
## Todo
|
62
|
-
|
63
|
-
- [ ] Support `@mixin`'s
|
1
|
+
# Sass Prof
|
2
|
+
|
3
|
+
[![Gem](https://img.shields.io/gem/v/sass-prof.svg?style=flat-square)](https://rubygems.org/gems/sass-prof)
|
4
|
+
|
5
|
+
Sass Prof is a code profiler for [Sass](https://github.com/sass/sass). For each function, Sass Prof will show the execution time for the function, which file called it and what arguments were given when the function was called.
|
6
|
+
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
* Sass ~> `3.4.0`
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
1. Install with `gem install sass-prof`
|
14
|
+
2. If you're using Compass, add `require "sass-prof"` to your `config.rb`
|
15
|
+
3. Sass Prof will automatically run next time you compile
|
16
|
+
4. That's it!
|
17
|
+
|
18
|
+
## Uninstall
|
19
|
+
1. Remove the line `require "sass-prof"` from your `config.rb`
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
You may specify a few options within your `config.rb`, such as directing output to a log file.
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require "sass-prof"
|
26
|
+
|
27
|
+
# Instance of Sass::Prof's configuration
|
28
|
+
prof = Sass::Prof::Config
|
29
|
+
|
30
|
+
# Directs all output to a log file
|
31
|
+
# Default is `false`
|
32
|
+
prof.output_file = "sass-prof.log"
|
33
|
+
|
34
|
+
# Adjust output table column width
|
35
|
+
# Default is `20`
|
36
|
+
prof.col_width = 40
|
37
|
+
|
38
|
+
# Mutes all output to stdout
|
39
|
+
# Default is `false`
|
40
|
+
prof.quiet = true
|
41
|
+
|
42
|
+
# Maximum execution time allowed in ms
|
43
|
+
# Default is `100`
|
44
|
+
prof.t_max = 500
|
45
|
+
|
46
|
+
# Enable colored output
|
47
|
+
# Default is `true`
|
48
|
+
prof.color = true
|
49
|
+
```
|
50
|
+
|
51
|
+
_Please note: your compile times **will be slower** due to the overhead of **Sass Prof**. This library was created to help you find potential bottlenecks within your code. If you find any bugs or inconsistencies, please file an [issue](https://github.com/ezekg/sass-prof/issues) or [pull request](https://github.com/ezekg/sass-prof/pulls)._
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
1. Fork it ( https://github.com/ezekg/sass-prof/fork )
|
56
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
+
5. Create a new Pull Request
|
60
|
+
|
61
|
+
## Todo
|
62
|
+
|
63
|
+
- [ ] Support `@mixin`'s
|
data/Rakefile
CHANGED
data/lib/sass-prof/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
module Sass
|
4
|
-
module Prof
|
5
|
-
VERSION = "0.
|
6
|
-
end
|
7
|
-
end
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Sass
|
4
|
+
module Prof
|
5
|
+
VERSION = "0.2.0"
|
6
|
+
end
|
7
|
+
end
|
data/lib/sass-prof.rb
CHANGED
@@ -1,179 +1,206 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
module Sass
|
4
|
-
module Prof
|
5
|
-
|
6
|
-
|
7
|
-
attr_accessor :
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
def
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
prof.start
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
prof.stop
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Sass
|
4
|
+
module Prof
|
5
|
+
|
6
|
+
module Config
|
7
|
+
attr_accessor :t_max, :col_width, :output_file, :quiet, :color
|
8
|
+
|
9
|
+
@t_max = 100
|
10
|
+
@col_width = 20
|
11
|
+
@output_file = false
|
12
|
+
@quiet = false
|
13
|
+
@color = true
|
14
|
+
|
15
|
+
extend self
|
16
|
+
end
|
17
|
+
|
18
|
+
module Report
|
19
|
+
attr_accessor :report
|
20
|
+
|
21
|
+
@report = [
|
22
|
+
["File", "Execution Time", "Action", "Signature"]
|
23
|
+
]
|
24
|
+
|
25
|
+
def add(value)
|
26
|
+
@report << value
|
27
|
+
end
|
28
|
+
|
29
|
+
def print_report
|
30
|
+
puts to_table @report
|
31
|
+
end
|
32
|
+
|
33
|
+
def reset_report
|
34
|
+
@report = [
|
35
|
+
["File", "Execution Time", "Action", "Signature"]
|
36
|
+
]
|
37
|
+
end
|
38
|
+
|
39
|
+
def to_table(report)
|
40
|
+
return unless report
|
41
|
+
|
42
|
+
table = report.map do |row|
|
43
|
+
"[ %s ]" % row.map { |col|
|
44
|
+
diff = col.length - col.gsub(/\e\[(\d+)(;\d+)*m/, "").length
|
45
|
+
"%-#{Sass::Prof::Config.col_width + diff}s" % col }.join(" | ")
|
46
|
+
end
|
47
|
+
|
48
|
+
table.join "\n"
|
49
|
+
end
|
50
|
+
|
51
|
+
extend self
|
52
|
+
end
|
53
|
+
|
54
|
+
class Profiler
|
55
|
+
attr_accessor :config, :function, :action, :args, :env
|
56
|
+
|
57
|
+
@@t_total = 0
|
58
|
+
@@t_then = 0
|
59
|
+
@@t_now = 0
|
60
|
+
|
61
|
+
def initialize(function, action, args = nil, env = nil)
|
62
|
+
@config = Sass::Prof::Config
|
63
|
+
@report = Sass::Prof::Report
|
64
|
+
@function = function
|
65
|
+
@action = action
|
66
|
+
@args = args
|
67
|
+
@env = env
|
68
|
+
end
|
69
|
+
|
70
|
+
def start
|
71
|
+
@@t_then = Time.now
|
72
|
+
end
|
73
|
+
|
74
|
+
def stop
|
75
|
+
@@t_now = Time.now
|
76
|
+
t_delta = (@@t_now.to_f - @@t_then.to_f) * 1000.0
|
77
|
+
@@t_then, @@t_total = @@t_now, t_delta
|
78
|
+
|
79
|
+
prep_fn_report
|
80
|
+
end
|
81
|
+
|
82
|
+
private
|
83
|
+
|
84
|
+
def prep_fn_report
|
85
|
+
fn_report = [fn_source, fn_execution_time, fn_action,
|
86
|
+
fn_signature]
|
87
|
+
|
88
|
+
@report.add fn_report unless config.quiet
|
89
|
+
|
90
|
+
if config.output_file
|
91
|
+
File.open(config.output_file, "a+") do |f|
|
92
|
+
f.puts @report.to_table [fn_report.map { |col|
|
93
|
+
col.gsub /\e\[(\d+)(;\d+)*m/, "" }]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
if @@t_total > config.t_max && action == :execute
|
98
|
+
raise Sass::RuntimeError.new "Max execution time of #{config.t_max}ms"\
|
99
|
+
" reached for function `#{fn_name}` (took #{@@t_total.round(3)}ms)"
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
def fn_execution_time
|
104
|
+
color = @@t_total > config.t_max ? :red : :green
|
105
|
+
colorize @@t_total.to_s, color
|
106
|
+
end
|
107
|
+
|
108
|
+
def fn_name
|
109
|
+
case
|
110
|
+
when function.respond_to?(:name)
|
111
|
+
function.name
|
112
|
+
else
|
113
|
+
"Unknown function"
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
def fn_args
|
118
|
+
return nil if args.nil?
|
119
|
+
|
120
|
+
if args.is_a? Array
|
121
|
+
args.map { |a| a.inspect }.join(", ")
|
122
|
+
else
|
123
|
+
args.to_s[1...args.length-2]
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
def fn_source
|
128
|
+
return colorize("Unknown file", :red) unless env
|
129
|
+
|
130
|
+
orig_filename = env.options.fetch :original_filename, "Unknown file"
|
131
|
+
filename = env.options.fetch :filename, "Unknown file"
|
132
|
+
|
133
|
+
colorize "#{File.basename(orig_filename)}:#{File.basename(filename)}",
|
134
|
+
:yellow
|
135
|
+
end
|
136
|
+
|
137
|
+
def fn_action
|
138
|
+
colorize action.to_s, :yellow
|
139
|
+
end
|
140
|
+
|
141
|
+
def fn_signature
|
142
|
+
colorize(fn_name, :blue) << "(" << colorize(fn_args, :purple) << ")"
|
143
|
+
end
|
144
|
+
|
145
|
+
def colorize(string, color)
|
146
|
+
return string unless config.color
|
147
|
+
|
148
|
+
colors = Hash.new("37").merge({
|
149
|
+
:black => "30",
|
150
|
+
:red => "31",
|
151
|
+
:green => "32",
|
152
|
+
:yellow => "33",
|
153
|
+
:blue => "34",
|
154
|
+
:purple => "35",
|
155
|
+
:cyan => "36",
|
156
|
+
:white => "37",
|
157
|
+
})
|
158
|
+
|
159
|
+
"\e[0;#{colors.fetch(color)}m#{string}\e[0m"
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
class Tree::Visitors::Perform
|
165
|
+
alias_method :__visit_function, :visit_function
|
166
|
+
|
167
|
+
def visit_function(node)
|
168
|
+
prof = Sass::Prof::Profiler.new(node.dup, :allocate)
|
169
|
+
prof.start
|
170
|
+
|
171
|
+
value = __visit_function node
|
172
|
+
|
173
|
+
prof.stop
|
174
|
+
|
175
|
+
value
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class Script::Tree::Funcall
|
180
|
+
alias_method :__perform_sass_fn, :perform_sass_fn
|
181
|
+
|
182
|
+
def perform_sass_fn(function, args, splat, environment)
|
183
|
+
prof = Sass::Prof::Profiler.new(function.dup, :execute, args.dup,
|
184
|
+
environment.dup)
|
185
|
+
prof.start
|
186
|
+
|
187
|
+
value = __perform_sass_fn(
|
188
|
+
function, args, splat, environment)
|
189
|
+
|
190
|
+
prof.stop
|
191
|
+
|
192
|
+
value
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class Engine
|
197
|
+
alias_method :__render, :render
|
198
|
+
|
199
|
+
def render
|
200
|
+
__render
|
201
|
+
ensure
|
202
|
+
Sass::Prof::Report.print_report
|
203
|
+
Sass::Prof::Report.reset_report
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
data/sass-prof.gemspec
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
lib = File.expand_path "../lib/", __FILE__
|
4
|
-
$:.unshift lib unless $:.include? lib
|
5
|
-
|
6
|
-
require "sass-prof/version"
|
7
|
-
|
8
|
-
Gem::Specification.new do |spec|
|
9
|
-
spec.name = "sass-prof"
|
10
|
-
spec.version = Sass::Prof::VERSION
|
11
|
-
spec.authors = ["ezekg"]
|
12
|
-
spec.email = ["ezekg@yahoo.com"]
|
13
|
-
|
14
|
-
spec.summary = %q{Profiler for Sass libraries.}
|
15
|
-
spec.description = %q{Sass Prof is a code profiler for Sass. For each function, Sass Prof will show the execution time for the function, which file called it and what arguments were given when the function was called.}
|
16
|
-
spec.homepage = "https://github.com/ezekg/sass-prof"
|
17
|
-
spec.license = "MIT"
|
18
|
-
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_development_dependency "compass", "~> 1.0"
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.9"
|
24
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
-
spec.add_dependency "sass", "~> 3.4"
|
26
|
-
end
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
lib = File.expand_path "../lib/", __FILE__
|
4
|
+
$:.unshift lib unless $:.include? lib
|
5
|
+
|
6
|
+
require "sass-prof/version"
|
7
|
+
|
8
|
+
Gem::Specification.new do |spec|
|
9
|
+
spec.name = "sass-prof"
|
10
|
+
spec.version = Sass::Prof::VERSION
|
11
|
+
spec.authors = ["ezekg"]
|
12
|
+
spec.email = ["ezekg@yahoo.com"]
|
13
|
+
|
14
|
+
spec.summary = %q{Profiler for Sass libraries.}
|
15
|
+
spec.description = %q{Sass Prof is a code profiler for Sass. For each function, Sass Prof will show the execution time for the function, which file called it and what arguments were given when the function was called.}
|
16
|
+
spec.homepage = "https://github.com/ezekg/sass-prof"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "compass", "~> 1.0"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_dependency "sass", "~> 3.4"
|
26
|
+
end
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezekg
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.6
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Profiler for Sass libraries.
|