haml-edge 2.3.93 → 2.3.94
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/README.md +1 -1
- data/Rakefile +17 -3
- data/VERSION +1 -1
- data/lib/haml/helpers.rb +1 -1
- data/lib/haml/html/erb.rb +1 -1
- data/lib/haml/precompiler.rb +28 -22
- data/lib/haml/util.rb +19 -0
- data/lib/sass/engine.rb +3 -3
- data/lib/sass/error.rb +37 -7
- data/lib/sass/files.rb +1 -0
- data/lib/sass/script/color.rb +6 -12
- data/lib/sass/script/functions.rb +24 -26
- data/lib/sass/script/lexer.rb +5 -5
- data/lib/sass/tree/directive_node.rb +3 -3
- data/lib/sass/tree/import_node.rb +23 -21
- data/lib/sass/tree/mixin_node.rb +24 -4
- data/lib/sass/tree/node.rb +74 -18
- data/lib/sass/tree/prop_node.rb +37 -27
- data/lib/sass/tree/root_node.rb +24 -9
- data/lib/sass/tree/rule_node.rb +98 -51
- data/test/haml/engine_test.rb +10 -0
- data/test/haml/util_test.rb +7 -0
- data/test/sass/engine_test.rb +162 -12
- data/test/sass/functions_test.rb +19 -17
- data/test/sass/script_test.rb +8 -0
- data/test/sass/templates/bork4.sass +2 -0
- data/test/sass/templates/mixin_bork.sass +5 -0
- data/test/sass/templates/nested_bork4.sass +2 -0
- data/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/test/test_helper.rb +7 -3
- metadata +14 -34
data/test/sass/script_test.rb
CHANGED
@@ -152,6 +152,11 @@ WARN
|
|
152
152
|
assert_equal "public_instance_methods()", resolve("public_instance_methods()")
|
153
153
|
end
|
154
154
|
|
155
|
+
def test_default_functions
|
156
|
+
assert_equal "url(12)", resolve("url(12)")
|
157
|
+
assert_equal 'blam(foo)', resolve('blam("foo")')
|
158
|
+
end
|
159
|
+
|
155
160
|
def test_hyphenated_variables
|
156
161
|
assert_equal("a-b", resolve("!a-b", {}, env("a-b" => Sass::Script::String.new("a-b"))))
|
157
162
|
end
|
@@ -265,6 +270,9 @@ WARN
|
|
265
270
|
|
266
271
|
def test_funcall_has_higher_precedence_than_color_name
|
267
272
|
assert_equal "teal(12)", resolve("teal(12)")
|
273
|
+
assert_equal "tealbang(12)", resolve("tealbang(12)")
|
274
|
+
assert_equal "teal-bang(12)", resolve("teal-bang(12)")
|
275
|
+
assert_equal "teal+bang(12)", resolve("teal\\+bang(12)")
|
268
276
|
end
|
269
277
|
|
270
278
|
def test_interpolation_after_hash
|
data/test/test_helper.rb
CHANGED
@@ -18,9 +18,13 @@ end
|
|
18
18
|
class Test::Unit::TestCase
|
19
19
|
def munge_filename(opts)
|
20
20
|
return if opts[:filename]
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
opts[:filename] = test_filename(caller[1])
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_filename(entry = caller.first)
|
25
|
+
test_name = Haml::Util.caller_info(entry)[2]
|
26
|
+
test_name.sub!(/^(block|rescue) in /, '')
|
27
|
+
"#{test_name}_inline.sass"
|
24
28
|
end
|
25
29
|
|
26
30
|
def clean_up_sassc
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml-edge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.94
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-11-
|
13
|
+
date: 2009-11-28 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.
|
24
|
+
version: 0.4.0
|
25
25
|
version:
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: maruku
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.5.9
|
35
35
|
version:
|
36
|
-
description: Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
|
36
|
+
description: " Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML\n that's designed to express the structure of XHTML or XML documents\n in a non-repetitive, elegant, easy way,\n using indentation rather than closing tags\n and allowing Ruby to be embedded with ease.\n It was originally envisioned as a plugin for Ruby on Rails,\n but it can function as a stand-alone templating engine.\n"
|
37
37
|
email: haml@googlegroups.com
|
38
38
|
executables:
|
39
39
|
- haml
|
@@ -53,43 +53,36 @@ extra_rdoc_files:
|
|
53
53
|
files:
|
54
54
|
- rails/init.rb
|
55
55
|
- lib/haml.rb
|
56
|
-
- lib/haml
|
57
56
|
- lib/haml/buffer.rb
|
58
57
|
- lib/haml/engine.rb
|
59
58
|
- lib/haml/error.rb
|
60
59
|
- lib/haml/exec.rb
|
61
60
|
- lib/haml/filters.rb
|
62
61
|
- lib/haml/helpers.rb
|
63
|
-
- lib/haml/helpers
|
64
62
|
- lib/haml/helpers/action_view_extensions.rb
|
65
63
|
- lib/haml/helpers/action_view_mods.rb
|
66
64
|
- lib/haml/helpers/xss_mods.rb
|
67
65
|
- lib/haml/html.rb
|
68
66
|
- lib/haml/precompiler.rb
|
69
|
-
- lib/haml/html
|
70
67
|
- lib/haml/html/erb.rb
|
71
68
|
- lib/haml/shared.rb
|
72
69
|
- lib/haml/template.rb
|
73
|
-
- lib/haml/template
|
74
70
|
- lib/haml/template/patch.rb
|
75
71
|
- lib/haml/template/plugin.rb
|
76
72
|
- lib/haml/util.rb
|
77
73
|
- lib/haml/version.rb
|
78
74
|
- lib/sass.rb
|
79
|
-
- lib/sass
|
80
75
|
- lib/sass/css.rb
|
81
76
|
- lib/sass/engine.rb
|
82
77
|
- lib/sass/environment.rb
|
83
78
|
- lib/sass/error.rb
|
84
79
|
- lib/sass/files.rb
|
85
80
|
- lib/sass/plugin.rb
|
86
|
-
- lib/sass/plugin
|
87
81
|
- lib/sass/plugin/merb.rb
|
88
82
|
- lib/sass/plugin/rack.rb
|
89
83
|
- lib/sass/plugin/rails.rb
|
90
84
|
- lib/sass/repl.rb
|
91
85
|
- lib/sass/script.rb
|
92
|
-
- lib/sass/script
|
93
86
|
- lib/sass/script/bool.rb
|
94
87
|
- lib/sass/script/color.rb
|
95
88
|
- lib/sass/script/funcall.rb
|
@@ -103,7 +96,6 @@ files:
|
|
103
96
|
- lib/sass/script/string.rb
|
104
97
|
- lib/sass/script/unary_operation.rb
|
105
98
|
- lib/sass/script/variable.rb
|
106
|
-
- lib/sass/tree
|
107
99
|
- lib/sass/tree/comment_node.rb
|
108
100
|
- lib/sass/tree/debug_node.rb
|
109
101
|
- lib/sass/tree/directive_node.rb
|
@@ -123,20 +115,15 @@ files:
|
|
123
115
|
- bin/html2haml
|
124
116
|
- bin/sass
|
125
117
|
- test/benchmark.rb
|
126
|
-
- test/haml
|
127
118
|
- test/haml/engine_test.rb
|
128
119
|
- test/haml/helper_test.rb
|
129
120
|
- test/haml/html2haml_test.rb
|
130
|
-
- test/haml/erb
|
131
121
|
- test/haml/erb/_av_partial_1.erb
|
132
122
|
- test/haml/erb/_av_partial_2.erb
|
133
123
|
- test/haml/erb/action_view.erb
|
134
124
|
- test/haml/erb/standard.erb
|
135
|
-
- test/haml/markaby
|
136
125
|
- test/haml/markaby/standard.mab
|
137
|
-
- test/haml/mocks
|
138
126
|
- test/haml/mocks/article.rb
|
139
|
-
- test/haml/results
|
140
127
|
- test/haml/results/content_for_layout.xhtml
|
141
128
|
- test/haml/results/eval_suppressed.xhtml
|
142
129
|
- test/haml/results/filters.xhtml
|
@@ -155,10 +142,8 @@ files:
|
|
155
142
|
- test/haml/results/tag_parsing.xhtml
|
156
143
|
- test/haml/results/very_basic.xhtml
|
157
144
|
- test/haml/results/whitespace_handling.xhtml
|
158
|
-
- test/haml/spec
|
159
145
|
- test/haml/util_test.rb
|
160
146
|
- test/haml/template_test.rb
|
161
|
-
- test/haml/templates
|
162
147
|
- test/haml/templates/_av_partial_1.haml
|
163
148
|
- test/haml/templates/_av_partial_1_ugly.haml
|
164
149
|
- test/haml/templates/_av_partial_2.haml
|
@@ -190,26 +175,20 @@ files:
|
|
190
175
|
- test/haml/templates/tag_parsing.haml
|
191
176
|
- test/haml/templates/very_basic.haml
|
192
177
|
- test/haml/templates/whitespace_handling.haml
|
193
|
-
- test/haml/html2haml
|
194
178
|
- test/haml/html2haml/erb_tests.rb
|
195
179
|
- test/haml/spec_test.rb
|
196
180
|
- test/linked_rails.rb
|
197
|
-
- test/sass
|
198
181
|
- test/sass/css2sass_test.rb
|
199
182
|
- test/sass/engine_test.rb
|
200
183
|
- test/sass/functions_test.rb
|
201
|
-
- test/sass/data
|
202
184
|
- test/sass/data/hsl-rgb.txt
|
203
|
-
- test/sass/more_results
|
204
185
|
- test/sass/more_results/more1.css
|
205
186
|
- test/sass/more_results/more1_with_line_comments.css
|
206
187
|
- test/sass/more_results/more_import.css
|
207
|
-
- test/sass/more_templates
|
208
188
|
- test/sass/more_templates/_more_partial.sass
|
209
189
|
- test/sass/more_templates/more1.sass
|
210
190
|
- test/sass/more_templates/more_import.sass
|
211
191
|
- test/sass/plugin_test.rb
|
212
|
-
- test/sass/results
|
213
192
|
- test/sass/results/alt.css
|
214
193
|
- test/sass/results/basic.css
|
215
194
|
- test/sass/results/compact.css
|
@@ -223,13 +202,10 @@ files:
|
|
223
202
|
- test/sass/results/nested.css
|
224
203
|
- test/sass/results/parent_ref.css
|
225
204
|
- test/sass/results/script.css
|
226
|
-
- test/sass/results/subdir
|
227
|
-
- test/sass/results/subdir/nested_subdir
|
228
205
|
- test/sass/results/subdir/nested_subdir/nested_subdir.css
|
229
206
|
- test/sass/results/subdir/subdir.css
|
230
207
|
- test/sass/results/units.css
|
231
208
|
- test/sass/script_test.rb
|
232
|
-
- test/sass/templates
|
233
209
|
- test/sass/templates/_partial.sass
|
234
210
|
- test/sass/templates/alt.sass
|
235
211
|
- test/sass/templates/basic.sass
|
@@ -246,17 +222,19 @@ files:
|
|
246
222
|
- test/sass/templates/mixins.sass
|
247
223
|
- test/sass/templates/multiline.sass
|
248
224
|
- test/sass/templates/nested.sass
|
225
|
+
- test/sass/templates/bork4.sass
|
226
|
+
- test/sass/templates/mixin_bork.sass
|
249
227
|
- test/sass/templates/nested_bork1.sass
|
250
|
-
- test/sass/templates/nested_bork2.sass
|
251
|
-
- test/sass/templates/nested_bork3.sass
|
252
228
|
- test/sass/templates/parent_ref.sass
|
253
229
|
- test/sass/templates/script.sass
|
254
|
-
- test/sass/templates/subdir
|
255
|
-
- test/sass/templates/subdir/nested_subdir
|
256
230
|
- test/sass/templates/subdir/nested_subdir/_nested_partial.sass
|
257
231
|
- test/sass/templates/subdir/nested_subdir/nested_subdir.sass
|
258
232
|
- test/sass/templates/subdir/subdir.sass
|
259
233
|
- test/sass/templates/units.sass
|
234
|
+
- test/sass/templates/nested_bork2.sass
|
235
|
+
- test/sass/templates/nested_bork3.sass
|
236
|
+
- test/sass/templates/nested_bork4.sass
|
237
|
+
- test/sass/templates/nested_mixin_bork.sass
|
260
238
|
- test/test_helper.rb
|
261
239
|
- extra/haml-mode.el
|
262
240
|
- extra/sass-mode.el
|
@@ -273,6 +251,8 @@ files:
|
|
273
251
|
- EDGE_GEM_VERSION
|
274
252
|
has_rdoc: true
|
275
253
|
homepage: http://haml.hamptoncatlin.com/
|
254
|
+
licenses: []
|
255
|
+
|
276
256
|
post_install_message:
|
277
257
|
rdoc_options:
|
278
258
|
- --title
|
@@ -300,9 +280,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
280
|
requirements: []
|
301
281
|
|
302
282
|
rubyforge_project: haml
|
303
|
-
rubygems_version: 1.3.
|
283
|
+
rubygems_version: 1.3.5
|
304
284
|
signing_key:
|
305
|
-
specification_version:
|
285
|
+
specification_version: 3
|
306
286
|
summary: An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.
|
307
287
|
test_files:
|
308
288
|
- test/haml/engine_test.rb
|