erector 0.2.83 → 0.3.105

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -11,3 +11,11 @@ require "action_controller/test_process"
11
11
  Spec::Runner.configure do |config|
12
12
  config.include ViewCaching
13
13
  end
14
+
15
+ # This mimics Rails load path and dependency stuff
16
+ RAILS_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../test/rails_root") unless defined?(RAILS_ROOT)
17
+ #$: << "#{RAILS_ROOT}/app"
18
+ module Views
19
+ module TemplateHandlerSpec
20
+ end
21
+ end
@@ -0,0 +1,8 @@
1
+ class Views::TemplateHandlerSpec::TestPage < Erector::Widget
2
+ def render
3
+ div :class => 'page' do
4
+ p @foo
5
+ helpers.render :partial => 'test_partial', :locals => {:foo => @foo}
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.83
4
+ version: 0.3.105
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-23 00:00:00 -07:00
12
+ date: 2008-05-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.5.0
41
41
  version:
42
- description: Erector is a Builder-like view framework, inspired by Markaby but overcoming some of its flaws. In Erector all views are objects, not template files, which allows the full power of object-oriented programming (inheritance, modular decomposition, encapsulation) in views.
42
+ description: Erector is a Builder-like view framework, inspired by Markaby but overcoming some of its flaws. In Erector all views are objects, not template files, which allows the full power of object-oriented programming (inheritance, modular decomposition, encapsulation) in views. See the rdoc for the Erector::Widget class to learn how to make your own widgets, and visit the project site at http://erector.rubyforge.org for more documentation.
43
43
  email:
44
44
  - alex@pivotallabs.com
45
45
  executables:
@@ -56,9 +56,14 @@ files:
56
56
  - spec/erector
57
57
  - spec/erector/extensions
58
58
  - spec/erector/extensions/render_widget_spec.rb
59
+ - spec/erector/extensions/template_handler_spec.rb
60
+ - spec/erector/rails_helpers_spec.rb
59
61
  - spec/erector/widget_spec.rb
60
62
  - spec/erector/widgets
61
63
  - spec/erector/widgets/table_spec.rb
64
+ - spec/rails
65
+ - spec/rails/standard_helpers_spec.rb
66
+ - spec/rails/view_spec.rb
62
67
  - spec/spec_helper.rb
63
68
  - spec/spec_suite.rb
64
69
  - spec/view_caching.rb
@@ -72,6 +77,7 @@ files:
72
77
  - lib/erector/helpers.rb
73
78
  - lib/erector/html_parts.rb
74
79
  - lib/erector/indenting.rb
80
+ - lib/erector/raw_string.rb
75
81
  - lib/erector/rhtml.treetop
76
82
  - lib/erector/widget.rb
77
83
  - lib/erector/widgets
@@ -107,5 +113,5 @@ rubygems_version: 1.0.1
107
113
  signing_key:
108
114
  specification_version: 2
109
115
  summary: Erector is a Builder-like view framework, inspired by Markaby but overcoming some of its flaws
110
- test_files: []
111
-
116
+ test_files:
117
+ - test/rails_root/app/views/template_handler_spec/test_page.rb