assert-view 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- assert-view (0.4.2)
4
+ assert-view (0.5.0)
5
5
  ansi (~> 1.3)
6
- undies (~> 1.1)
6
+ undies (~> 2.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- ansi (1.3.0)
12
- assert (0.7.0)
13
- assert-view (~> 0.4)
11
+ ansi (1.4.1)
12
+ assert (0.7.3)
13
+ assert-view (~> 0.5)
14
14
  rake (0.9.2)
15
- undies (1.2.0)
15
+ undies (2.0.0)
16
16
 
17
17
  PLATFORMS
18
18
  ruby
data/assert-view.gemspec CHANGED
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency("assert")
22
22
 
23
23
  s.add_dependency("ansi", ["~> 1.3"])
24
- s.add_dependency("undies", ["~> 1.1"])
24
+ s.add_dependency("undies", ["~> 2.0"])
25
25
  end
@@ -28,11 +28,10 @@ module Assert::View
28
28
  # streaming to the view's output io
29
29
  # passing in the view itself and any runner_callback as locals
30
30
  def render(*args, &runner_callback)
31
- locals = {
31
+ Template.new(Undies::Source.new(self.class.template), {
32
32
  :view => self,
33
33
  :runner => runner_callback
34
- }
35
- Template.new(self.output_io, locals, &self.class.template)
34
+ }, Undies::Output.new(self.output_io))
36
35
  end
37
36
 
38
37
  module ClassMethods
@@ -1,5 +1,5 @@
1
1
  module Assert; end
2
2
 
3
3
  module Assert::View
4
- VERSION = "0.4.2"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 2
10
- version: 0.4.2
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-19 00:00:00 Z
18
+ date: 2011-12-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development
@@ -68,11 +68,11 @@ dependencies:
68
68
  requirements:
69
69
  - - ~>
70
70
  - !ruby/object:Gem::Version
71
- hash: 13
71
+ hash: 3
72
72
  segments:
73
- - 1
74
- - 1
75
- version: "1.1"
73
+ - 2
74
+ - 0
75
+ version: "2.0"
76
76
  version_requirements: *id004
77
77
  name: undies
78
78
  description: A collection of views for use in the Assert testing framework
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements: []
138
138
 
139
139
  rubyforge_project:
140
- rubygems_version: 1.8.10
140
+ rubygems_version: 1.8.11
141
141
  signing_key:
142
142
  specification_version: 3
143
143
  summary: A collection of views for use in the Assert testing framework