lapillus 0.0.2 → 0.0.3

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/test/tc_rendering.rb CHANGED
@@ -8,7 +8,7 @@ class TC_Rendering < Test::Unit::TestCase
8
8
  def test_invisible_component
9
9
  html='<html><span lapillus:id="label">can you see me now?</span></html>'
10
10
  page = TestWebpage.new
11
- page.add(Label.new("label","now you see me"))
11
+ page.add(Label.new(:label, :model => "now you see me"))
12
12
  label = page["label"]
13
13
  assert(label.visible?)
14
14
  result=page.render(html)
@@ -36,14 +36,14 @@ EOF
36
36
  </html>
37
37
  EOF
38
38
  test_webpage = TestWebpage.new
39
- test_webpage.add Label.new("label", "hello world")
39
+ test_webpage.add Label.new(:label, :model => "hello world")
40
40
  output = test_webpage.render html
41
41
  assert_equal(expected.strip, output)
42
42
  end
43
43
 
44
44
  class RenderingTestWebpage < Webpage
45
- listview "names", :model => ["jantje", "pietje", "klaasje"] do |name|
46
- label "name", :model => name
45
+ listview :names, :model => ["jantje", "pietje", "klaasje"] do |name|
46
+ label :name, :model => name
47
47
  end
48
48
  end
49
49
 
data/test/ts_all_test.rb CHANGED
@@ -17,4 +17,3 @@ require 'test/tc_hierarchy'
17
17
 
18
18
  require 'examples/tc_guest_book'
19
19
  require 'examples/tc_hello_world'
20
- require 'examples/tc_persons'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: lapillus
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.2
7
- date: 2007-10-05 00:00:00 +02:00
6
+ version: 0.0.3
7
+ date: 2008-01-29 00:00:00 +01:00
8
8
  summary: Component based webframework written in Ruby
9
9
  require_paths:
10
10
  - lib
@@ -33,22 +33,23 @@ authors:
33
33
  - Joris van Zundert
34
34
  files:
35
35
  - examples/hello_world.rb
36
- - examples/persons.rb
36
+ - examples/personspage.rb
37
37
  - examples/tc_hello_world.rb
38
+ - examples/tc_personspage.rb
38
39
  - examples/tc_guest_book.rb
39
40
  - examples/guest_book.rb
40
- - examples/tc_persons.rb
41
41
  - html/HelloWorld.html
42
42
  - html/GuestBook.html
43
- - html/Persons.html
44
43
  - html/LapillusTesterTestPage.html
45
44
  - html/TestRemotePanel.html
46
45
  - html/TestPage.html
46
+ - html/Personspage.html
47
47
  - lib/lapillus.rb
48
48
  - lib/changelog.txt
49
49
  - lib/license.txt
50
50
  - lib/lapillus
51
51
  - lib/lapillus/web_application.rb
52
+ - lib/lapillus/html_visitor.rb
52
53
  - lib/lapillus/webrick_server.rb
53
54
  - lib/lapillus/process_upload.rb
54
55
  - lib/lapillus/pager.rb