ludy 0.1.5 → 0.1.6

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/CHANGES CHANGED
@@ -1,5 +1,9 @@
1
1
  = ludy changes history
2
2
 
3
+ == ludy 0.1.6, 2008.01.31
4
+
5
+ * make erubis don't trim...
6
+
3
7
  == ludy 0.1.5, 2008.01.31
4
8
 
5
9
  * fixed task preprocess:erubis presentation error.
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = ludy 0.1.5
1
+ = ludy 0.1.6
2
2
  by Lin Jen-Shin (a.k.a. godfat 真常)
3
3
  strip any number: 18god29fat7029 (at] godfat32 -dooot- 20org
4
4
  http://ludy.rubyforge.org
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.5'
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.new(input).result(binding)
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
@@ -12,7 +12,7 @@ require 'rake'
12
12
  module Ludy
13
13
 
14
14
  # :stopdoc:
15
- VERSION = '0.1.5'
15
+ VERSION = '0.1.6'
16
16
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
17
17
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
18
18
  $LOAD_PATH << LIBPATH
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ludy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Lin Jen-Shin (a.k.a. godfat \xE7\x9C\x9F\xE5\xB8\xB8)"