Skip to content

Commit

Permalink
Version bump to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed Apr 9, 2012
1 parent 5224257 commit 53c28bb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.0.1
0.0.2
13 changes: 11 additions & 2 deletions lib/internal/erbt.rb
@@ -1,4 +1,4 @@
def erbt(path)
def __erbt(path)
path = File.expand_path(path)
`touch #{path}`
template = path + '.template'
Expand All @@ -17,6 +17,15 @@ def erbt(path)
f.close
end

def erbt(path)
path = File.expand_path(path)
file path => [path + '.template'] do
__erbt(path)
end
desc("erbt all")
task 'erbt' => [path]
end

if __FILE__ == $0
erbt('test1')
__erbt('test1')
end
15 changes: 12 additions & 3 deletions test/Rakefile
@@ -1,10 +1,19 @@
require 'erbt'

desc "test"
task 'test' do
erbt("test1")
__erbt("test1")
print File.read("test1")
erbt("test1")
__erbt("test1")
`echo "" > test1`
erbt("test1")
__erbt("test1")
print File.read("test1")
end

erbt "test1"

desc "clean"
task 'clean' do
`rm test1`
`rm test1.backup`
end

0 comments on commit 53c28bb

Please sign in to comment.