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/examples/guest_book.rb +5 -5
- data/examples/hello_world.rb +1 -1
- data/examples/{persons.rb → personspage.rb} +4 -4
- data/examples/tc_hello_world.rb +11 -11
- data/examples/{tc_persons.rb → tc_personspage.rb} +2 -2
- data/html/{Persons.html → Personspage.html} +0 -0
- data/lib/changelog.txt +10 -0
- data/lib/lapillus/base.rb +82 -82
- data/lib/lapillus/behaviours.rb +53 -38
- data/lib/lapillus/components.rb +9 -7
- data/lib/lapillus/containers.rb +32 -49
- data/lib/lapillus/dispatcher.rb +35 -24
- data/lib/lapillus/form_components.rb +11 -7
- data/lib/lapillus/html_visitor.rb +68 -0
- data/lib/lapillus/pager.rb +8 -8
- data/test/tc_base.rb +2 -2
- data/test/tc_behaviours.rb +29 -7
- data/test/tc_bookmarkablepagelink.rb +5 -5
- data/test/tc_components.rb +42 -21
- data/test/tc_containers.rb +22 -18
- data/test/tc_examples.rb +18 -18
- data/test/tc_form.rb +15 -15
- data/test/tc_fragments.rb +8 -6
- data/test/tc_hierarchy.rb +1 -1
- data/test/tc_lapillus.rb +2 -2
- data/test/tc_lapillus_testers.rb +6 -6
- data/test/tc_multiview.rb +7 -7
- data/test/tc_pager.rb +5 -3
- data/test/tc_rendering.rb +4 -4
- data/test/ts_all_test.rb +0 -1
- metadata +6 -5
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(
|
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(
|
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
|
46
|
-
label
|
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
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.
|
7
|
-
date:
|
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/
|
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
|