rsence 2.0.0.pre → 2.0.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/INSTALL.rdoc +295 -0
  2. data/LICENSE +622 -0
  3. data/README.rdoc +87 -0
  4. data/VERSION +1 -0
  5. data/bin/rsence +5 -101
  6. data/conf/config.yaml +4 -0
  7. data/conf/default_conf.yaml +6 -4
  8. data/conf/{local_conf.yaml → local_conf.yaml.devel} +2 -1
  9. data/js/comm/comm/autosync/autosync.js +0 -1
  10. data/js/comm/comm/queue/queue.js +1 -1
  11. data/js/comm/comm/urlresponder/urlresponder.js +58 -35
  12. data/js/comm/comm/values/values.js +13 -3
  13. data/js/comm/jsloader/jsloader.js +29 -12
  14. data/js/controls/button/themes/default/button_parts1-ie6.gif +0 -0
  15. data/js/controls/checkbox/themes/default/checkbox_parts1-ie6.gif +0 -0
  16. data/js/controls/datetime/timesheet/timesheet.js +2 -2
  17. data/js/controls/dialogs/sheet/themes/default/sheet_bg-ie6.gif +0 -0
  18. data/js/controls/dialogs/sheet/themes/default/sheet_parts1-ie6.gif +0 -0
  19. data/js/controls/dialogs/sheet/themes/default/sheet_parts2-ie6.gif +0 -0
  20. data/js/controls/dialogs/sheet/themes/default/sheet_warning-ie6.gif +0 -0
  21. data/js/controls/passwordcontrol/themes/default/passwordcontrol.html +1 -1
  22. data/js/controls/radiobutton/themes/default/radiobutton_parts1-ie6.gif +0 -0
  23. data/js/controls/sliders/slider/themes/default/hslider_tracks-ie6.gif +0 -0
  24. data/js/controls/sliders/slider/themes/default/slider.css +2 -0
  25. data/js/controls/sliders/slider/themes/default/slider_thumbs-ie6.gif +0 -0
  26. data/js/controls/sliders/vslider/themes/default/vslider.css +2 -0
  27. data/js/controls/sliders/vslider/themes/default/vslider_tracks-ie6.gif +0 -0
  28. data/js/controls/stepper/themes/default/stepper-ie6.gif +0 -0
  29. data/js/controls/tab/tab.js +2 -6
  30. data/js/controls/tab/themes/default/tab.css +1 -0
  31. data/js/controls/tab/themes/default/tab.html +1 -1
  32. data/js/controls/tab/themes/default/tab_border_pattern-ie6.gif +0 -0
  33. data/js/controls/tab/themes/default/tab_parts1-ie6.gif +0 -0
  34. data/js/controls/textarea/themes/default/textarea.css +21 -0
  35. data/js/controls/textarea/themes/default/textarea.html +2 -2
  36. data/js/controls/textcontrol/textcontrol.js +56 -69
  37. data/js/controls/textcontrol/themes/default/textcontrol.css +23 -20
  38. data/js/controls/textcontrol/themes/default/textcontrol.html +1 -1
  39. data/js/controls/window/themes/default/window.css +1 -0
  40. data/js/controls/window/themes/default/window_bg_active-ie6.gif +0 -0
  41. data/js/controls/window/themes/default/window_bg_inactive-ie6.gif +0 -0
  42. data/js/controls/window/themes/default/window_buttons-ie6.gif +0 -0
  43. data/js/controls/window/themes/default/window_parts1-ie6.gif +0 -0
  44. data/js/controls/window/themes/default/window_parts2-ie6.gif +0 -0
  45. data/js/controls/window/window.js +28 -7
  46. data/js/core/class/class.js +31 -30
  47. data/js/core/elem/elem.js +94 -71
  48. data/js/core/event/event.js +34 -26
  49. data/js/core/iefix/iefix.js +46 -31
  50. data/js/debugg/debugg.js +43 -0
  51. data/js/debugg/js.inc +0 -0
  52. data/js/foundation/application/application.js +3 -1
  53. data/js/foundation/control/dyncontrol/dyncontrol.js +1 -0
  54. data/js/foundation/control/eventresponder/eventresponder.js +1 -1
  55. data/js/foundation/json_renderer/json_renderer.js +1 -3
  56. data/js/foundation/system/system.js +4 -4
  57. data/js/foundation/thememanager/thememanager.js +3 -3
  58. data/js/foundation/view/view.js +71 -1
  59. data/lib/conf/argv.rb +664 -0
  60. data/lib/conf/default.rb +51 -52
  61. data/lib/daemon/daemon.rb +281 -195
  62. data/lib/plugins/plugin_plugins.rb +47 -0
  63. data/lib/plugins/pluginmanager.rb +17 -12
  64. data/lib/transporter/transporter.rb +6 -9
  65. data/plugins/client_pkg/client_pkg.rb +12 -9
  66. data/plugins/client_pkg/lib/client_pkg_build.rb +1 -1
  67. data/plugins/index_html/tmpl/index.html +3 -3
  68. data/plugins/main/main.rb +1 -0
  69. metadata +16 -14
  70. data/bin/build_client.rb +0 -254
  71. data/bin/help +0 -6
  72. data/bin/launch.rb +0 -120
  73. data/bin/rdoc.sh +0 -2
  74. data/bin/restart +0 -6
  75. data/bin/run +0 -6
  76. data/bin/run.rb +0 -6
  77. data/bin/save +0 -6
  78. data/bin/start +0 -6
  79. data/bin/status +0 -6
  80. data/bin/stop +0 -6
data/bin/help DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} help")
6
-
data/bin/launch.rb DELETED
@@ -1,120 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #--
3
- ## Riassence Framework
4
- # Copyright 2008 Riassence Inc.
5
- # http://riassence.com/
6
- #
7
- # You should have received a copy of the GNU General Public License along
8
- # with this software package. If not, contact licensing@riassence.com
9
- ##
10
- #++
11
-
12
- if RUBY_VERSION.to_f >= 1.9
13
- Encoding.default_external = Encoding::ASCII_8BIT
14
- end
15
-
16
- is_win = ['i386-mingw32','x86-mingw32'].include? RUBY_PLATFORM
17
-
18
- if is_win
19
- commands = %w[help run]
20
- else
21
- commands = %w[help start stop restart status run]
22
- end
23
-
24
- if ARGV.include?('--help') or ARGV.include?('-h') or
25
- ARGV.include?('help') or not (
26
- commands.include?(ARGV[0])
27
- )
28
-
29
- if is_win
30
- extra_cmd_help = ''
31
- extra_cmd_examples = %{
32
- #{__FILE__} run --log-fg
33
- #{__FILE__} run -d
34
- #{__FILE__} run --latency 150
35
- #{__FILE__} run --server mongrel --port 8080 --addr 127.0.0.1
36
- }
37
- else
38
- extra_cmd_help = %{\
39
- status Tells if Riassence Framework Server is running or not
40
- start Starts Riassence Framework Server
41
- stop Stops Riassence Framework Server
42
- restart Restarts Riassence Framework Server
43
- save Saves Riassence Framework Server session data
44
- }
45
- extra_cmd_examples = %{\
46
- #{__FILE__} status
47
- #{__FILE__} start
48
- #{__FILE__} stop
49
- #{__FILE__} save
50
- #{__FILE__} restart
51
- #{__FILE__} restart -d --reset-sessions
52
- #{__FILE__} restart --latency 150
53
- #{__FILE__} restart --server mongrel --port 8080 --addr 127.0.0.1
54
- }
55
- end
56
-
57
- puts %{
58
-
59
- Riassence Framework is RIA client and server. This help message contains
60
- hints about how to control the server startup/shutdown.
61
-
62
- Usage:
63
- #{__FILE__} command [params]
64
-
65
- Command is one of:
66
- run Run in foreground (exit with ctrl-c)
67
- #{extra_cmd_help} help This message
68
-
69
- Params:
70
- --log-fg Don't write log into file (writes to foreground)
71
- -d Debug/Development mode
72
- --trace-js Write content of msg.reply calls to stdout
73
- --trace-delegate Traces plugin method delegation to stdout
74
- --root-path <PATH> Define the PATH to rsence server
75
- Defaults to 'bin'
76
- --port PORT Define the http PORT to use, defaults to '8001'
77
- --latency MS Simulate network latency, value in milliseconds
78
- --addr <ADDRESS> Define the IPv4 ADDRESS to bind to.
79
- Defaults to '0.0.0.0' (any)
80
- --server <SERVER> Choose http SERVER, valid choices:
81
- - webrick
82
- - mongrel
83
- - ebb
84
- - thin
85
- Defaults to thin
86
- --reset-sessions Deletes all old sessions on startup
87
- --config <PATH> Optional config override file
88
- --run-config-wizard Runs configuration wizard
89
- Runs by default, if no local
90
- configuration files were found.
91
- --no-rescan Doesn't rescan the plugins even when in debug mode.
92
- --profile Turns on profiling
93
- - Runs everything considerable slower!
94
- - Shown a table displaying the results on stop.
95
- --help This message
96
- -h This message
97
-
98
- Examples:
99
- #{__FILE__} run
100
- #{extra_cmd_examples}
101
- Further information:
102
- http://riassence.org/
103
-
104
- }
105
- exit
106
- end
107
-
108
- require 'profile' if ARGV.include?('--profile')
109
-
110
- ## Auto-construct paths using this file as the waypoint
111
- SERVER_PATH = ARGV.include?('--root-path')?(ARGV[ARGV.index('--root-path')+1]):File.split(File.expand_path(File.dirname(__FILE__)))[0]
112
-
113
- ## Include server & lib in the search path
114
- $LOAD_PATH << SERVER_PATH
115
- $LOAD_PATH << File.join( SERVER_PATH, 'lib' )
116
-
117
- ## Riassence Daemon controls
118
- require 'daemon/daemon'
119
- RSence::HTTPDaemon.daemonize
120
-
data/bin/rdoc.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/bin/sh
2
- rdoc --op doc/rdoc -U -w 2 -x ".js .css .html" -S --threads=4 -N -F -I gif -c utf-8 -m "bin/launch.rb" -t "Riassence Framework Server" -i bin lib
data/bin/restart DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} restart #{ARGV.join(' ')}")
6
-
data/bin/run DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} run #{ARGV.join(' ')}")
6
-
data/bin/run.rb DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} run #{ARGV.join(' ')}")
6
-
data/bin/save DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} save #{ARGV.join(' ')}")
6
-
data/bin/start DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} start #{ARGV.join(' ')}")
6
-
data/bin/status DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} status #{ARGV.join(' ')}")
6
-
data/bin/stop DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- BINPATH = File.expand_path(File.dirname(__FILE__))
4
-
5
- system("#{File.join(BINPATH,'launch.rb')} stop #{ARGV.join(' ')}")
6
-