haml-edge 2.3.223 → 2.3.224
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/plugin/rails.rb +2 -2
- metadata +22 -57
- data/test/haml/spec/README.md +0 -97
- data/test/haml/spec/lua_haml_spec.lua +0 -30
- data/test/haml/spec/ruby_haml_test.rb +0 -19
- data/test/haml/spec/tests.json +0 -534
- data/vendor/fssm/LICENSE +0 -20
- data/vendor/fssm/README.markdown +0 -55
- data/vendor/fssm/Rakefile +0 -59
- data/vendor/fssm/VERSION.yml +0 -5
- data/vendor/fssm/example.rb +0 -9
- data/vendor/fssm/fssm.gemspec +0 -77
- data/vendor/fssm/lib/fssm/backends/fsevents.rb +0 -36
- data/vendor/fssm/lib/fssm/backends/inotify.rb +0 -26
- data/vendor/fssm/lib/fssm/backends/polling.rb +0 -25
- data/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +0 -131
- data/vendor/fssm/lib/fssm/monitor.rb +0 -26
- data/vendor/fssm/lib/fssm/path.rb +0 -91
- data/vendor/fssm/lib/fssm/pathname.rb +0 -502
- data/vendor/fssm/lib/fssm/state/directory.rb +0 -57
- data/vendor/fssm/lib/fssm/state/file.rb +0 -24
- data/vendor/fssm/lib/fssm/support.rb +0 -63
- data/vendor/fssm/lib/fssm/tree.rb +0 -176
- data/vendor/fssm/lib/fssm.rb +0 -33
- data/vendor/fssm/profile/prof-cache.rb +0 -40
- data/vendor/fssm/profile/prof-fssm-pathname.html +0 -1231
- data/vendor/fssm/profile/prof-pathname.rb +0 -68
- data/vendor/fssm/profile/prof-plain-pathname.html +0 -988
- data/vendor/fssm/profile/prof.html +0 -2379
- data/vendor/fssm/spec/path_spec.rb +0 -75
- data/vendor/fssm/spec/root/duck/quack.txt +0 -0
- data/vendor/fssm/spec/root/file.css +0 -0
- data/vendor/fssm/spec/root/file.rb +0 -0
- data/vendor/fssm/spec/root/file.yml +0 -0
- data/vendor/fssm/spec/root/moo/cow.txt +0 -0
- data/vendor/fssm/spec/spec_helper.rb +0 -14
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.224
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.224
|
data/lib/sass/plugin/rails.rb
CHANGED
@@ -8,10 +8,10 @@ unless defined?(Sass::RAILS_LOADED)
|
|
8
8
|
:quiet => Haml::Util.rails_env != "production",
|
9
9
|
:full_exception => Haml::Util.rails_env != "production")
|
10
10
|
|
11
|
-
if defined?(
|
11
|
+
if defined?(ActionController::Metal)
|
12
12
|
# Rails >= 3.0
|
13
13
|
require 'sass/plugin/rack'
|
14
|
-
|
14
|
+
ActionController::Metal.use(Sass::Plugin::Rack)
|
15
15
|
elsif defined?(ActionController::Dispatcher) &&
|
16
16
|
defined?(ActionController::Dispatcher.middleware)
|
17
17
|
# Rails >= 2.3
|
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.224
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -66,13 +66,13 @@ files:
|
|
66
66
|
- lib/haml/html.rb
|
67
67
|
- lib/haml/precompiler.rb
|
68
68
|
- lib/haml/railtie.rb
|
69
|
-
- lib/haml/util.rb
|
70
|
-
- lib/haml/html/erb.rb
|
71
|
-
- lib/haml/shared.rb
|
72
69
|
- lib/haml/template.rb
|
70
|
+
- lib/haml/shared.rb
|
71
|
+
- lib/haml/util.rb
|
73
72
|
- lib/haml/template/patch.rb
|
74
73
|
- lib/haml/template/plugin.rb
|
75
74
|
- lib/haml/version.rb
|
75
|
+
- lib/haml/html/erb.rb
|
76
76
|
- lib/haml/root.rb
|
77
77
|
- lib/haml/util/subset_map.rb
|
78
78
|
- lib/sass.rb
|
@@ -107,6 +107,14 @@ files:
|
|
107
107
|
- lib/sass/script/interpolation.rb
|
108
108
|
- lib/sass/script/string_interpolation.rb
|
109
109
|
- lib/sass/callbacks.rb
|
110
|
+
- lib/sass/scss/css_parser.rb
|
111
|
+
- lib/sass/scss/parser.rb
|
112
|
+
- lib/sass/scss/rx.rb
|
113
|
+
- lib/sass/scss/sass_parser.rb
|
114
|
+
- lib/sass/scss/script_lexer.rb
|
115
|
+
- lib/sass/scss/script_parser.rb
|
116
|
+
- lib/sass/scss/static_parser.rb
|
117
|
+
- lib/sass/selector.rb
|
110
118
|
- lib/sass/tree/comment_node.rb
|
111
119
|
- lib/sass/tree/debug_node.rb
|
112
120
|
- lib/sass/tree/directive_node.rb
|
@@ -123,49 +131,11 @@ files:
|
|
123
131
|
- lib/sass/tree/extend_node.rb
|
124
132
|
- lib/sass/tree/root_node.rb
|
125
133
|
- lib/sass/tree/warn_node.rb
|
126
|
-
- lib/sass/scss/css_parser.rb
|
127
|
-
- lib/sass/scss/parser.rb
|
128
|
-
- lib/sass/scss/rx.rb
|
129
|
-
- lib/sass/scss/sass_parser.rb
|
130
|
-
- lib/sass/scss/script_lexer.rb
|
131
|
-
- lib/sass/scss/script_parser.rb
|
132
|
-
- lib/sass/scss/static_parser.rb
|
133
|
-
- lib/sass/selector.rb
|
134
134
|
- lib/sass/selector/abstract_sequence.rb
|
135
135
|
- lib/sass/selector/comma_sequence.rb
|
136
136
|
- lib/sass/selector/sequence.rb
|
137
137
|
- lib/sass/selector/simple.rb
|
138
138
|
- lib/sass/selector/simple_sequence.rb
|
139
|
-
- vendor/fssm/LICENSE
|
140
|
-
- vendor/fssm/README.markdown
|
141
|
-
- vendor/fssm/Rakefile
|
142
|
-
- vendor/fssm/VERSION.yml
|
143
|
-
- vendor/fssm/example.rb
|
144
|
-
- vendor/fssm/fssm.gemspec
|
145
|
-
- vendor/fssm/lib/fssm.rb
|
146
|
-
- vendor/fssm/lib/fssm/backends/fsevents.rb
|
147
|
-
- vendor/fssm/lib/fssm/backends/inotify.rb
|
148
|
-
- vendor/fssm/lib/fssm/backends/polling.rb
|
149
|
-
- vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb
|
150
|
-
- vendor/fssm/lib/fssm/monitor.rb
|
151
|
-
- vendor/fssm/lib/fssm/path.rb
|
152
|
-
- vendor/fssm/lib/fssm/pathname.rb
|
153
|
-
- vendor/fssm/lib/fssm/state/directory.rb
|
154
|
-
- vendor/fssm/lib/fssm/state/file.rb
|
155
|
-
- vendor/fssm/lib/fssm/support.rb
|
156
|
-
- vendor/fssm/lib/fssm/tree.rb
|
157
|
-
- vendor/fssm/profile/prof-cache.rb
|
158
|
-
- vendor/fssm/profile/prof-fssm-pathname.html
|
159
|
-
- vendor/fssm/profile/prof-pathname.rb
|
160
|
-
- vendor/fssm/profile/prof-plain-pathname.html
|
161
|
-
- vendor/fssm/profile/prof.html
|
162
|
-
- vendor/fssm/spec/path_spec.rb
|
163
|
-
- vendor/fssm/spec/root/duck/quack.txt
|
164
|
-
- vendor/fssm/spec/root/file.css
|
165
|
-
- vendor/fssm/spec/root/file.rb
|
166
|
-
- vendor/fssm/spec/root/file.yml
|
167
|
-
- vendor/fssm/spec/root/moo/cow.txt
|
168
|
-
- vendor/fssm/spec/spec_helper.rb
|
169
139
|
- bin/css2sass
|
170
140
|
- bin/haml
|
171
141
|
- bin/html2haml
|
@@ -200,10 +170,6 @@ files:
|
|
200
170
|
- test/haml/results/tag_parsing.xhtml
|
201
171
|
- test/haml/results/very_basic.xhtml
|
202
172
|
- test/haml/results/whitespace_handling.xhtml
|
203
|
-
- test/haml/spec/README.md
|
204
|
-
- test/haml/spec/lua_haml_spec.lua
|
205
|
-
- test/haml/spec/ruby_haml_test.rb
|
206
|
-
- test/haml/spec/tests.json
|
207
173
|
- test/haml/template_test.rb
|
208
174
|
- test/haml/util_test.rb
|
209
175
|
- test/haml/templates/_av_partial_1.haml
|
@@ -245,6 +211,7 @@ files:
|
|
245
211
|
- test/sass/functions_test.rb
|
246
212
|
- test/sass/plugin_test.rb
|
247
213
|
- test/sass/script_test.rb
|
214
|
+
- test/sass/callbacks_test.rb
|
248
215
|
- test/sass/data/hsl-rgb.txt
|
249
216
|
- test/sass/more_results/more1.css
|
250
217
|
- test/sass/more_results/more1_with_line_comments.css
|
@@ -274,21 +241,17 @@ files:
|
|
274
241
|
- test/sass/results/units.css
|
275
242
|
- test/sass/results/warn.css
|
276
243
|
- test/sass/results/warn_imported.css
|
277
|
-
- test/sass/callbacks_test.rb
|
278
244
|
- test/sass/conversion_test.rb
|
279
|
-
- test/sass/
|
280
|
-
- test/sass/scss/rx_test.rb
|
281
|
-
- test/sass/scss/scss_test.rb
|
282
|
-
- test/sass/scss/test_helper.rb
|
245
|
+
- test/sass/script_conversion_test.rb
|
283
246
|
- test/sass/templates/_partial.sass
|
284
247
|
- test/sass/templates/alt.sass
|
285
248
|
- test/sass/templates/basic.sass
|
286
249
|
- test/sass/templates/bork1.sass
|
287
250
|
- test/sass/templates/bork2.sass
|
251
|
+
- test/sass/templates/complex.sass
|
288
252
|
- test/sass/templates/import.sass
|
289
|
-
- test/sass/templates/mixins.sass
|
290
253
|
- test/sass/templates/compact.sass
|
291
|
-
- test/sass/templates/
|
254
|
+
- test/sass/templates/mixins.sass
|
292
255
|
- test/sass/templates/compressed.sass
|
293
256
|
- test/sass/templates/expanded.sass
|
294
257
|
- test/sass/templates/importee.sass
|
@@ -314,7 +277,10 @@ files:
|
|
314
277
|
- test/sass/templates/scss_importee.scss
|
315
278
|
- test/sass/templates/warn.sass
|
316
279
|
- test/sass/templates/warn_imported.sass
|
317
|
-
- test/sass/
|
280
|
+
- test/sass/scss/css_test.rb
|
281
|
+
- test/sass/scss/rx_test.rb
|
282
|
+
- test/sass/scss/scss_test.rb
|
283
|
+
- test/sass/scss/test_helper.rb
|
318
284
|
- test/test_helper.rb
|
319
285
|
- extra/haml-mode.el
|
320
286
|
- extra/sass-mode.el
|
@@ -368,7 +334,6 @@ test_files:
|
|
368
334
|
- test/haml/engine_test.rb
|
369
335
|
- test/haml/helper_test.rb
|
370
336
|
- test/haml/html2haml_test.rb
|
371
|
-
- test/haml/spec/ruby_haml_test.rb
|
372
337
|
- test/haml/template_test.rb
|
373
338
|
- test/haml/util_test.rb
|
374
339
|
- test/haml/spec_test.rb
|
@@ -378,10 +343,10 @@ test_files:
|
|
378
343
|
- test/sass/functions_test.rb
|
379
344
|
- test/sass/plugin_test.rb
|
380
345
|
- test/sass/script_test.rb
|
381
|
-
- test/sass/extend_test.rb
|
382
346
|
- test/sass/callbacks_test.rb
|
347
|
+
- test/sass/extend_test.rb
|
383
348
|
- test/sass/conversion_test.rb
|
349
|
+
- test/sass/script_conversion_test.rb
|
384
350
|
- test/sass/scss/css_test.rb
|
385
351
|
- test/sass/scss/rx_test.rb
|
386
352
|
- test/sass/scss/scss_test.rb
|
387
|
-
- test/sass/script_conversion_test.rb
|
data/test/haml/spec/README.md
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
# Haml Spec #
|
2
|
-
|
3
|
-
Haml Spec provides a basic suite of tests for Haml interpreters.
|
4
|
-
|
5
|
-
It is intented for developers who are creating or maintaining an implementation
|
6
|
-
of the [Haml](http://haml-lang.com) markup language.
|
7
|
-
|
8
|
-
At the moment, there are test runners for the [original Haml](http://github.com/nex3/haml)
|
9
|
-
in Ruby, and for [Lua Haml](http://github.com/norman/lua-haml). Support for
|
10
|
-
other versions of Haml will be added if their developers/maintainers
|
11
|
-
are interested in using it.
|
12
|
-
|
13
|
-
## The Tests ##
|
14
|
-
|
15
|
-
The tests are kept in JSON format for portability across languages. Each test
|
16
|
-
is a JSON object with expected input, output, local variables and configuration
|
17
|
-
parameters (see below). The test suite only provides tests for features which
|
18
|
-
are portable, therefore no tests for script are provided, nor for external
|
19
|
-
filters such as :markdown or :textile.
|
20
|
-
|
21
|
-
The one major exception to this are the tests for interpolation, which you may
|
22
|
-
need to modify with a regular expression to run under PHP or Perl, which
|
23
|
-
require a symbol before variable names. These tests are included despite being
|
24
|
-
less than 100% portable because interpolation is an important part of Haml and
|
25
|
-
can be tricky to implement.
|
26
|
-
|
27
|
-
## Running the Tests ##
|
28
|
-
|
29
|
-
### Ruby ###
|
30
|
-
|
31
|
-
In order to make it as easy as possible for non-Ruby programmers to run the
|
32
|
-
Ruby Haml tests, the Ruby test runner uses test/unit, rather than something
|
33
|
-
fancier like Rspec. To run them you probably only need to install `haml`, and
|
34
|
-
possibly `ruby` if your platform doesn't come with it by default. If you're
|
35
|
-
using Ruby 1.8.x, you'll also need to install `json`:
|
36
|
-
|
37
|
-
sudo gem install haml
|
38
|
-
# for Ruby 1.8.x; check using "ruby --version" if unsure
|
39
|
-
sudo gem install json
|
40
|
-
|
41
|
-
Then, running the Ruby test suite is easy:
|
42
|
-
|
43
|
-
ruby ruby_haml_test.rb
|
44
|
-
|
45
|
-
### Lua ###
|
46
|
-
|
47
|
-
The Lua test depends on [Telescope](http://telescope.luaforge.net/),
|
48
|
-
[jason4lua](http://json.luaforge.net/), and
|
49
|
-
[Lua Haml](http://github.com/norman/lua-haml). Install and
|
50
|
-
run `tsc lua_haml_spec.lua`.
|
51
|
-
|
52
|
-
## Contributing ##
|
53
|
-
|
54
|
-
### Getting it ###
|
55
|
-
|
56
|
-
You can access the [Git repository](http://github.com/norman/haml-spec) at:
|
57
|
-
|
58
|
-
git://github.com/norman/haml-spec.git
|
59
|
-
|
60
|
-
Patches are *very* welcome, as are test runners for your Haml implementation.
|
61
|
-
|
62
|
-
As long as any test you add run against Ruby Haml and are not redundant, I'll
|
63
|
-
be very happy to add them.
|
64
|
-
|
65
|
-
### Test JSON format ###
|
66
|
-
|
67
|
-
"test name" : {
|
68
|
-
"haml" : "haml input",
|
69
|
-
"html" : "expected html output",
|
70
|
-
"result" : "expected test result",
|
71
|
-
"locals" : "local vars",
|
72
|
-
"config" : "config params"
|
73
|
-
}
|
74
|
-
|
75
|
-
* test name: This should be a *very* brief description of what's being tested. It can
|
76
|
-
be used by the test runners to name test methods, or to exclude certain tests from being
|
77
|
-
run.
|
78
|
-
* haml: The Haml code to be evaluated. Always required.
|
79
|
-
* html: The HTML output that should be generated. Required unless "result" is "error".
|
80
|
-
* result: Can be "pass" or "error". If it's absent, then "pass" is assumed. If it's "error",
|
81
|
-
then the goal of the test is to make sure that malformed Haml code generates an error.
|
82
|
-
* locals: An object containing local variables needed for the test.
|
83
|
-
* config: An object containing configuration parameters used to run the test.
|
84
|
-
The configuration parameters should be usable directly by Ruby's Haml with no
|
85
|
-
modification. If your implementation uses config parameters with different
|
86
|
-
names, you may need to process them to make them match your implementation.
|
87
|
-
If your implementation has options that do not exist in Ruby's Haml, then you
|
88
|
-
should add tests for this in your implementation's test rather than here.
|
89
|
-
|
90
|
-
## License ##
|
91
|
-
|
92
|
-
This project is released under the [WTFPL](http://sam.zoy.org/wtfpl/) in order
|
93
|
-
to be as usable as possible in any project, commercial or free.
|
94
|
-
|
95
|
-
## Author ##
|
96
|
-
|
97
|
-
[Norman Clarke](mailto:norman@njclarke.com)
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'luarocks.require'
|
2
|
-
require 'json'
|
3
|
-
require 'telescope'
|
4
|
-
require 'haml'
|
5
|
-
|
6
|
-
local function get_tests(filename)
|
7
|
-
local self = debug.getinfo(1).short_src
|
8
|
-
if self:match("/") then return "./" .. self:gsub("[^/]*%.lua$", "/" .. filename)
|
9
|
-
elseif self:match("\\") then return self:gsub("[^\\]*%.lua$", "\\" .. filename)
|
10
|
-
else return filename
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
local fh = assert(io.open(get_tests("tests.json")))
|
15
|
-
local input = fh:read '*a'
|
16
|
-
fh:close()
|
17
|
-
|
18
|
-
local contexts = json.decode(input)
|
19
|
-
|
20
|
-
describe("LuaHaml", function()
|
21
|
-
for context, expectations in pairs(contexts) do
|
22
|
-
describe("When handling " .. context, function()
|
23
|
-
for name, exp in pairs(expectations) do
|
24
|
-
it(string.format("should correctly render %s", name), function()
|
25
|
-
assert_equal(haml.render(exp.haml, exp.config or {}, exp.locals or {}), exp.html)
|
26
|
-
end)
|
27
|
-
end
|
28
|
-
end)
|
29
|
-
end
|
30
|
-
end)
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require "test/unit"
|
2
|
-
require "json"
|
3
|
-
require "haml"
|
4
|
-
|
5
|
-
class HamlTest < Test::Unit::TestCase
|
6
|
-
contexts = JSON.parse(File.read(File.dirname(__FILE__) + "/tests.json"))
|
7
|
-
contexts.each do |context|
|
8
|
-
context[1].each do |name, test|
|
9
|
-
class_eval(<<-EOTEST)
|
10
|
-
def test_#{name.gsub(/\s+|[^a-zA-Z0-9_]/, "_")}
|
11
|
-
locals = Hash[*(#{test}["locals"] || {}).collect {|k, v| [k.to_sym, v] }.flatten]
|
12
|
-
options = Hash[*(#{test}["config"] || {}).collect {|k, v| [k.to_sym, v.to_sym] }.flatten]
|
13
|
-
engine = Haml::Engine.new(#{test}["haml"], options)
|
14
|
-
assert_equal(engine.render(Object.new, locals).chomp, #{test}["html"])
|
15
|
-
end
|
16
|
-
EOTEST
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|