ludy 0.1.4 → 0.1.5
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 +6 -6
- 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.5'
|
25
25
|
PROJ.exclude << '.DS_Store' << '^tmp'
|
26
26
|
PROJ.dependencies << 'rake'
|
27
27
|
|
@@ -14,11 +14,11 @@ namespace :preprocess do
|
|
14
14
|
erb_inputs = FileList['**/*.erb']
|
15
15
|
erb_outputs = erb_inputs.ext
|
16
16
|
|
17
|
-
task :erb_begin do; puts "processing templates: #{erb_inputs.inspect}\n\n"; end
|
18
|
-
task :
|
17
|
+
task :erb_begin do; puts "erb processing templates: #{erb_inputs.inspect}\n\n"; end
|
18
|
+
task :erb_end do; puts "processing done."; end
|
19
19
|
|
20
20
|
desc 'automaticly translate all *.cpp.erb into *.cpp'
|
21
|
-
task :erb => [:erb_begin, erb_outputs, :
|
21
|
+
task :erb => [:erb_begin, erb_outputs, :erb_end].flatten
|
22
22
|
|
23
23
|
def preprocess template_engine, input, output
|
24
24
|
puts "processing... #{output}"
|
@@ -44,11 +44,11 @@ namespace :preprocess do
|
|
44
44
|
erubis_inputs = FileList['**/*.eruby']
|
45
45
|
erubis_outputs = erubis_inputs.ext
|
46
46
|
|
47
|
-
task :erubis_begin do; puts "processing templates: #{erubis_inputs.inspect}\n\n"; end
|
48
|
-
task :
|
47
|
+
task :erubis_begin do; puts "erubis processing templates: #{erubis_inputs.inspect}\n\n"; end
|
48
|
+
task :erubis_end do; puts "processing done."; end
|
49
49
|
|
50
50
|
desc 'automaticly translate all *.cpp.eruby into *.cpp'
|
51
|
-
task :erubis => [:erubis_begin, erubis_outputs, :
|
51
|
+
task :erubis => [:erubis_begin, erubis_outputs, :erubis_end].flatten
|
52
52
|
|
53
53
|
erubis_inputs.zip(erubis_outputs).each{ |input, output|
|
54
54
|
file output => input do
|
data/lib/ludy.rb
CHANGED