tap-test 0.1.0 → 0.2.0
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/History +4 -0
- data/lib/tap/test/tap_test.rb +2 -0
- data/lib/tap/test/utils.rb +3 -3
- metadata +3 -3
data/History
CHANGED
data/lib/tap/test/tap_test.rb
CHANGED
data/lib/tap/test/utils.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'tap/root'
|
2
2
|
require 'fileutils'
|
3
3
|
require 'tempfile'
|
4
|
-
require 'tap/
|
4
|
+
require 'tap/templater'
|
5
5
|
|
6
6
|
module Tap
|
7
7
|
|
@@ -120,7 +120,7 @@ module Tap
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
-
# Uses a Tap::
|
123
|
+
# Uses a Tap::Templater to template and replace the contents of path,
|
124
124
|
# for the duration of the block. The attributes will be available in the
|
125
125
|
# template context.
|
126
126
|
def template(paths, attributes={}, tempdir=Dir::tmpdir)
|
@@ -135,7 +135,7 @@ module Tap
|
|
135
135
|
# template the source file
|
136
136
|
content = File.read(path)
|
137
137
|
File.open(path, "wb") do |file|
|
138
|
-
file <<
|
138
|
+
file << Templater.new(content, attributes).build
|
139
139
|
end
|
140
140
|
|
141
141
|
mapped_paths << [path, tempfile]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tap-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Chiang
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-17 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: 0.18.0
|
24
24
|
version:
|
25
25
|
description:
|
26
26
|
email: simon.a.chiang@gmail.com
|