uwa_hello 1.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.
@@ -0,0 +1,17 @@
1
+ require 'uwa'
2
+
3
+ module UWA
4
+ module Widget
5
+ class Hello < UWA::Handler
6
+ NAME = 'uwa_hello'
7
+ VERSION = '1.0'
8
+ COPYRIGHT = 'Copyright (C) 2007 Florent Solt'
9
+ DESC = 'UWA HelloWorld widget'
10
+ AUTHOR = 'Florent Solt'
11
+ EMAIL = 'florent@solt.biz'
12
+ HOMEPAGE = 'http://gnetvibes.rubyforge.org'
13
+ LICENSE = 'BSD'
14
+ end
15
+ end
16
+ end
17
+
@@ -0,0 +1,20 @@
1
+ require 'uwa_hello/config'
2
+
3
+ module UWA
4
+ module Widget
5
+ class Hello
6
+
7
+ def initialize
8
+ super
9
+ @author = 'Florent Solt'
10
+ @title = 'HelloWorld'
11
+ @preferences << {:name => :name, :type => :text, :label => 'Name', :defaultValue => 'Me'}
12
+ end
13
+
14
+ def hello(query, headers, out)
15
+ out.write('Say hello to...')
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,9 @@
1
+ widget.onLoad = function() {
2
+ widget.remoteText('hello', widget.onHello);
3
+ }
4
+
5
+ widget.onHello = function(msg) {
6
+ name = widget.getValue('name');
7
+ widget.setBody('<div class="uwa_hello">' + msg + ' ' + name + '</div>');
8
+ }
9
+
@@ -0,0 +1,4 @@
1
+ .uwa_hello {
2
+ color: green;
3
+ font-size: 20pt;
4
+ }
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: uwa_hello
5
+ version: !ruby/object:Gem::Version
6
+ version: "1.0"
7
+ date: 2007-03-28 00:00:00 +02:00
8
+ summary: UWA HelloWorld widget
9
+ require_paths:
10
+ - lib
11
+ email: florent@solt.biz
12
+ homepage: http://gnetvibes.rubyforge.org
13
+ rubyforge_project:
14
+ description:
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: false
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Florent Solt
31
+ files:
32
+ - lib/uwa_hello/config.rb
33
+ - lib/uwa_hello/widget.rb
34
+ - ressources/script.js
35
+ - ressources/style.css
36
+ test_files: []
37
+
38
+ rdoc_options: []
39
+
40
+ extra_rdoc_files: []
41
+
42
+ executables: []
43
+
44
+ extensions: []
45
+
46
+ requirements: []
47
+
48
+ dependencies:
49
+ - !ruby/object:Gem::Dependency
50
+ name: uwa
51
+ version_requirement:
52
+ version_requirements: !ruby/object:Gem::Version::Requirement
53
+ requirements:
54
+ - - ">"
55
+ - !ruby/object:Gem::Version
56
+ version: 0.0.0
57
+ version: