ludy 0.1.6 → 0.1.7

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.7, 2008.01.31
4
+
5
+ * added preprocess_cpp tools, debug_hook and debug_include
6
+
3
7
  == ludy 0.1.6, 2008.01.31
4
8
 
5
9
  * make erubis don't trim...
@@ -58,6 +58,7 @@ lib/ludy/tasks.rb
58
58
  lib/ludy/tasks/common.rb
59
59
  lib/ludy/tasks/preprocess_cpp.rb
60
60
  lib/ludy/tasks/preprocess_cpp/attr_builder.rb
61
+ lib/ludy/tasks/preprocess_cpp/debug_hook.rb
61
62
  lib/ludy/tasks/preprocess_cpp/header_guard.rb
62
63
  lib/ludy/tasks/preprocess_cpp/template_forward_parameters.rb
63
64
  lib/ludy/test/helper.rb
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = ludy 0.1.6
1
+ = ludy 0.1.7
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.6'
24
+ PROJ.version = '0.1.7'
25
25
  PROJ.exclude << '.DS_Store' << '^tmp'
26
26
  PROJ.dependencies << 'rake'
27
27
 
data/TODO CHANGED
@@ -16,3 +16,4 @@
16
16
  * better bin/ludy support
17
17
 
18
18
  * refactor tasks...
19
+ * make switch between template engine easier
@@ -12,7 +12,7 @@ require 'rake'
12
12
  module Ludy
13
13
 
14
14
  # :stopdoc:
15
- VERSION = '0.1.6'
15
+ VERSION = '0.1.7'
16
16
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
17
17
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
18
18
  $LOAD_PATH << LIBPATH
@@ -0,0 +1,18 @@
1
+
2
+ require 'ludy/tasks/common'
3
+
4
+ module Kernel
5
+ def debug_include
6
+ '#ifndef NDEBUG
7
+ #include <iostream>
8
+ #endif'
9
+ end
10
+ def debug_hook name, &block
11
+ Ludy::erbout name, block.binding
12
+ block.call
13
+ Ludy::erbout \
14
+ "#ifndef NDEBUG
15
+ std::cerr << \"method #{name} called, for \" << this << \" at \" << __FILE__ << \": \" << __LINE__ << '\\n';
16
+ #endif", block.binding
17
+ end
18
+ end
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Lin Jen-Shin (a.k.a. godfat \xE7\x9C\x9F\xE5\xB8\xB8)"
@@ -103,6 +103,7 @@ files:
103
103
  - lib/ludy/tasks/common.rb
104
104
  - lib/ludy/tasks/preprocess_cpp.rb
105
105
  - lib/ludy/tasks/preprocess_cpp/attr_builder.rb
106
+ - lib/ludy/tasks/preprocess_cpp/debug_hook.rb
106
107
  - lib/ludy/tasks/preprocess_cpp/header_guard.rb
107
108
  - lib/ludy/tasks/preprocess_cpp/template_forward_parameters.rb
108
109
  - lib/ludy/test/helper.rb