ludy 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/ludy/tasks/preprocess_cpp.rb +3 -3
- data/lib/ludy.rb +1 -1
- metadata +1 -1
data/CHANGES
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ PROJ.description = paragraphs_of('README', 1).join("\n\n")
|
|
21
21
|
PROJ.changes = paragraphs_of('CHANGES', 0..1).join("\n\n")
|
22
22
|
PROJ.rubyforge_name = 'ludy'
|
23
23
|
|
24
|
-
PROJ.version = '0.1.
|
24
|
+
PROJ.version = '0.1.6'
|
25
25
|
PROJ.exclude << '.DS_Store' << '^tmp'
|
26
26
|
PROJ.dependencies << 'rake'
|
27
27
|
|
@@ -28,13 +28,13 @@ namespace :preprocess do
|
|
28
28
|
@indent = ' '
|
29
29
|
@prefix = ''
|
30
30
|
Project.name ||= 'please_set_Project_name_for_your_header_name'
|
31
|
-
o << template_engine
|
31
|
+
o << template_engine[input].result(binding)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
erb_inputs.zip(erb_outputs).each{ |input, output|
|
36
36
|
file output => input do
|
37
|
-
preprocess ERB, open(input).read, output
|
37
|
+
preprocess lambda{|input| ERB.new input}, open(input).read, output
|
38
38
|
end
|
39
39
|
}
|
40
40
|
|
@@ -53,7 +53,7 @@ namespace :preprocess do
|
|
53
53
|
erubis_inputs.zip(erubis_outputs).each{ |input, output|
|
54
54
|
file output => input do
|
55
55
|
class ErboutEruby < Erubis::Eruby; include Erubis::ErboutEnhancer; end
|
56
|
-
preprocess ErboutEruby, open(input).read, output
|
56
|
+
preprocess lambda{|input| ErboutEruby.new input, :trim => false}, open(input).read, output
|
57
57
|
end
|
58
58
|
}
|
59
59
|
rescue LoadError; end # no erubis
|
data/lib/ludy.rb
CHANGED