haml-edge 2.1.30 → 2.1.32
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.
- data/EDGE_GEM_VERSION +1 -1
- data/Rakefile +4 -6
- data/VERSION +1 -1
- data/lib/haml/engine.rb +3 -3
- data/lib/haml/filters.rb +2 -2
- data/lib/haml/template.rb +1 -1
- data/lib/haml.rb +7 -1032
- data/lib/sass/engine.rb +11 -11
- data/lib/sass/environment.rb +1 -1
- data/lib/sass/files.rb +1 -1
- data/lib/sass/plugin.rb +4 -4
- data/lib/sass/tree/node.rb +2 -2
- data/lib/sass.rb +6 -1062
- metadata +2 -4
- data/FAQ.md +0 -142
data/lib/sass/engine.rb
CHANGED
@@ -22,20 +22,20 @@ require 'haml/shared'
|
|
22
22
|
module Sass
|
23
23
|
# A Sass mixin.
|
24
24
|
#
|
25
|
-
# `name`:
|
25
|
+
# `name`: `String`
|
26
26
|
# : The name of the mixin.
|
27
27
|
#
|
28
|
-
# `args`:
|
28
|
+
# `args`: `Array<(String, Script::Node)>`
|
29
29
|
# : The arguments for the mixin.
|
30
30
|
# Each element is a tuple containing the name of the argument
|
31
31
|
# and the parse tree for the default value of the argument.
|
32
32
|
#
|
33
|
-
# `environment`:
|
33
|
+
# `environment`: {Sass::Environment}
|
34
34
|
# : The environment in which the mixin was defined.
|
35
35
|
# This is captured so that the mixin can have access
|
36
36
|
# to local variables defined in its scope.
|
37
37
|
#
|
38
|
-
# `tree`:
|
38
|
+
# `tree`: {Sass::Tree::Node}
|
39
39
|
# : The parse tree for the mixin.
|
40
40
|
Mixin = Struct.new(:name, :args, :environment, :tree)
|
41
41
|
|
@@ -51,23 +51,23 @@ module Sass
|
|
51
51
|
|
52
52
|
# A line of Sass code.
|
53
53
|
#
|
54
|
-
# `text`:
|
54
|
+
# `text`: `String`
|
55
55
|
# : The text in the line, without any whitespace at the beginning or end.
|
56
56
|
#
|
57
|
-
# `tabs`:
|
57
|
+
# `tabs`: `Fixnum`
|
58
58
|
# : The level of indentation of the line.
|
59
59
|
#
|
60
|
-
# `index`:
|
60
|
+
# `index`: `Fixnum`
|
61
61
|
# : The line number in the original document.
|
62
62
|
#
|
63
|
-
# `offset`:
|
63
|
+
# `offset`: `Fixnum`
|
64
64
|
# : The number of bytes in on the line that the text begins.
|
65
65
|
# This ends up being the number of bytes of leading whitespace.
|
66
66
|
#
|
67
|
-
# `filename`:
|
67
|
+
# `filename`: `String`
|
68
68
|
# : The name of the file in which this line appeared.
|
69
69
|
#
|
70
|
-
# `children`:
|
70
|
+
# `children`: `Array<Line>`
|
71
71
|
# : The lines nested below this one.
|
72
72
|
class Line < Struct.new(:text, :tabs, :index, :offset, :filename, :children)
|
73
73
|
def comment?
|
@@ -127,7 +127,7 @@ module Sass
|
|
127
127
|
|
128
128
|
# @param template [String] The Sass template.
|
129
129
|
# @param options [Hash<Symbol, Object>] An options hash;
|
130
|
-
# see
|
130
|
+
# see {file:SASS_REFERENCE.md#sass_options the Sass options documentation}
|
131
131
|
def initialize(template, options={})
|
132
132
|
@options = DEFAULT_OPTIONS.merge(options)
|
133
133
|
@template = template
|
data/lib/sass/environment.rb
CHANGED
data/lib/sass/files.rb
CHANGED
@@ -12,7 +12,7 @@ module Sass
|
|
12
12
|
#
|
13
13
|
# @param filename [String] The path to the Sass file
|
14
14
|
# @param options [Hash<Symbol, Object>] The options hash.
|
15
|
-
# Only the
|
15
|
+
# Only the {file:SASS_REFERENCE.md#cache-option `:cache_location`} option is used
|
16
16
|
# @raise [Sass::SyntaxError] if there's an error in the document
|
17
17
|
def tree_for(filename, options)
|
18
18
|
options = Sass::Engine::DEFAULT_OPTIONS.merge(options)
|
data/lib/sass/plugin.rb
CHANGED
@@ -26,13 +26,13 @@ module Sass
|
|
26
26
|
attr_reader :checked_for_updates
|
27
27
|
|
28
28
|
# An options hash.
|
29
|
-
# See
|
29
|
+
# See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
|
30
30
|
#
|
31
31
|
# @return [Hash<Symbol, Object>]
|
32
32
|
attr_reader :options
|
33
33
|
|
34
34
|
# Sets the options hash.
|
35
|
-
# See
|
35
|
+
# See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
|
36
36
|
#
|
37
37
|
# @param value [Hash<Symbol, Object>] The options hash
|
38
38
|
def options=(value)
|
@@ -51,9 +51,9 @@ module Sass
|
|
51
51
|
|
52
52
|
# Updates out-of-date stylesheets.
|
53
53
|
#
|
54
|
-
# Checks each Sass file in
|
54
|
+
# Checks each Sass file in {file:SASS_REFERENCE.md#template_location-option `:template_location`}
|
55
55
|
# to see if it's been modified more recently than the corresponding CSS file
|
56
|
-
# in
|
56
|
+
# in {file:SASS_REFERENCE.md#css_location-option} `:css_location`}.
|
57
57
|
# If it has, it updates the CSS file.
|
58
58
|
def update_stylesheets
|
59
59
|
return if options[:never_update]
|
data/lib/sass/tree/node.rb
CHANGED
@@ -34,7 +34,7 @@ module Sass
|
|
34
34
|
attr_writer :filename
|
35
35
|
|
36
36
|
# The options hash for the node.
|
37
|
-
# See
|
37
|
+
# See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
|
38
38
|
#
|
39
39
|
# @return [Hash<Symbol, Object>]
|
40
40
|
attr_reader :options
|
@@ -155,7 +155,7 @@ module Sass
|
|
155
155
|
rescue Sass::SyntaxError => e; e.add_metadata(filename, line)
|
156
156
|
end
|
157
157
|
|
158
|
-
# The output style. See
|
158
|
+
# The output style. See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.
|
159
159
|
#
|
160
160
|
# @return [Symbol]
|
161
161
|
def style
|