rsence 2.0.0.8.pre → 2.0.0.9.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +11 -3
- data/VERSION +1 -1
- data/lib/plugins/dependencies.rb +258 -11
- data/lib/plugins/dependencies.rbc +2103 -0
- data/lib/plugins/plugin.rb +2 -2
- data/lib/plugins/plugin_sqlite_db.rb +2 -5
- data/lib/plugins/pluginmanager.rb +447 -315
- data/lib/plugins/plugins.rb +2 -2
- data/lib/transporter/transporter.rb +12 -1
- data/plugins/client_pkg/info.yaml +4 -0
- data/plugins/index_html/info.yaml +4 -0
- data/plugins/main/info.yaml +4 -0
- data/plugins/ticket/info.yaml +4 -0
- metadata +17 -10
- data/conf/config.ru +0 -5
- data/conf/unicorn.conf +0 -78
data/lib/plugins/plugins.rb
CHANGED
@@ -104,9 +104,9 @@ module ::RSence
|
|
104
104
|
super
|
105
105
|
end
|
106
106
|
end
|
107
|
-
plugin_src =
|
107
|
+
plugin_src = params[:src]
|
108
108
|
unless RUBY_VERSION.to_f >= 1.9
|
109
|
-
plugin_src =
|
109
|
+
plugin_src = "bundle_path = #{params[:bundle_path].inspect}\n\n" + plugin_src
|
110
110
|
end
|
111
111
|
m.module_eval( plugin_src )
|
112
112
|
end
|
@@ -31,7 +31,17 @@ module RSence
|
|
31
31
|
@accept_req = false
|
32
32
|
@valuemanager = ValueManager.new
|
33
33
|
@sessions = SessionManager.new( self )
|
34
|
-
|
34
|
+
core_pkgs = {
|
35
|
+
:core => [:transporter, :session_storage, :session_manager, :value_manager]
|
36
|
+
}
|
37
|
+
@plugins = PluginManager.new(
|
38
|
+
::RSence.config[:plugin_paths],
|
39
|
+
self,
|
40
|
+
RSence.args[:autoupdate],
|
41
|
+
false,
|
42
|
+
core_pkgs[:core],
|
43
|
+
core_pkgs
|
44
|
+
)
|
35
45
|
if RSence.launch_pid != Process.pid
|
36
46
|
Process.kill( 'TERM', RSence.launch_pid )
|
37
47
|
end
|
@@ -42,6 +52,7 @@ module RSence
|
|
42
52
|
end
|
43
53
|
|
44
54
|
def online=(state)
|
55
|
+
return if @accept_req == state
|
45
56
|
if RSence.args[:verbose]
|
46
57
|
if state
|
47
58
|
puts "RSence is online now."
|
data/plugins/main/info.yaml
CHANGED
data/plugins/ticket/info.yaml
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961916112
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
10
|
+
- 9
|
11
11
|
- pre
|
12
|
-
version: 2.0.0.
|
12
|
+
version: 2.0.0.9.pre
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Riassence Inc.
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-05-
|
20
|
+
date: 2010-05-25 00:00:00 +03:00
|
21
21
|
default_executable: rsence
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -28,14 +28,22 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - "="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 1919
|
32
32
|
segments:
|
33
|
-
-
|
34
|
-
version: "
|
33
|
+
- 958
|
34
|
+
version: "958"
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
description: |
|
38
|
-
RSence is
|
38
|
+
RSence is a RIA framework designed for responsive GUI applications on the web.
|
39
|
+
|
40
|
+
RSence is a flexible and high-performance RIA framework aimed on building responsive, scalable and over-all as high-performance GUI Applications as possible with the chosen technologies.
|
41
|
+
|
42
|
+
RSence includes a server for backend tasks and client suppert as well as a Javascript GUI framework to provide responsive user interfaces.
|
43
|
+
|
44
|
+
The purpose of the server is to provide a highly optimized yet easy to use Ruby framework for writing applications containing all their assets needed as self-contained plugins bundles. The bundles enable easy distribution and maintenance of RSence projects.
|
45
|
+
|
46
|
+
RSence is not primarily targeted as an engine for plain old html web sites, there are plenty of other tools for that purpose and some of them are easily integrated into RSence.
|
39
47
|
|
40
48
|
email: info@rsence.org
|
41
49
|
executables:
|
@@ -55,6 +63,7 @@ files:
|
|
55
63
|
- lib/http/request.rb
|
56
64
|
- lib/http/response.rb
|
57
65
|
- lib/plugins/dependencies.rb
|
66
|
+
- lib/plugins/dependencies.rbc
|
58
67
|
- lib/plugins/gui_plugin.rb
|
59
68
|
- lib/plugins/guiparser.rb
|
60
69
|
- lib/plugins/plugin.rb
|
@@ -78,11 +87,9 @@ files:
|
|
78
87
|
- setup/welcome/text/welcome.html
|
79
88
|
- setup/welcome/values.yaml
|
80
89
|
- setup/welcome/welcome.rb
|
81
|
-
- conf/config.ru
|
82
90
|
- conf/default_conf.yaml
|
83
91
|
- conf/default_strings.yaml
|
84
92
|
- conf/rsence_command_strings.yaml
|
85
|
-
- conf/unicorn.conf
|
86
93
|
- plugins/client_pkg/client_pkg.rb
|
87
94
|
- plugins/client_pkg/info.yaml
|
88
95
|
- plugins/client_pkg/lib/client_pkg_build.rb
|
data/conf/config.ru
DELETED
data/conf/unicorn.conf
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
# Sample configuration file for Unicorn (not Rack)
|
2
|
-
#
|
3
|
-
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
|
4
|
-
# documentation.
|
5
|
-
|
6
|
-
# Use at least one worker per core if you're on a dedicated server,
|
7
|
-
# more will usually help for _short_ waits on databases/caches.
|
8
|
-
worker_processes 1
|
9
|
-
|
10
|
-
# Help ensure your application will always spawn in the symlinked
|
11
|
-
# "current" directory that Capistrano sets up.
|
12
|
-
# working_directory "/path/to/app/current" # available in 0.94.0+
|
13
|
-
|
14
|
-
# listen on both a Unix domain socket and a TCP port,
|
15
|
-
# we use a shorter backlog for quicker failover when busy
|
16
|
-
# listen "/tmp/.sock", :backlog => 64
|
17
|
-
# listen 8080, :tcp_nopush => true
|
18
|
-
|
19
|
-
# nuke workers after 30 seconds instead of 60 seconds (the default)
|
20
|
-
timeout 9999
|
21
|
-
|
22
|
-
# feel free to point this anywhere accessible on the filesystem
|
23
|
-
#pid "/path/to/app/shared/pids/unicorn.pid"
|
24
|
-
|
25
|
-
# some applications/frameworks log to stderr or stdout, so prevent
|
26
|
-
# them from going to /dev/null when daemonized here:
|
27
|
-
#stderr_path "/path/to/app/shared/log/unicorn.stderr.log"
|
28
|
-
#stdout_path "/path/to/app/shared/log/unicorn.stdout.log"
|
29
|
-
|
30
|
-
# combine REE with "preload_app true" for memory savings
|
31
|
-
# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
|
32
|
-
preload_app true
|
33
|
-
GC.respond_to?(:copy_on_write_friendly=) and
|
34
|
-
GC.copy_on_write_friendly = true
|
35
|
-
|
36
|
-
# before_fork do |server, worker|
|
37
|
-
# # the following is highly recomended for Rails + "preload_app true"
|
38
|
-
# # as there's no need for the master process to hold a connection
|
39
|
-
# defined?(ActiveRecord::Base) and
|
40
|
-
# ActiveRecord::Base.connection.disconnect!
|
41
|
-
#
|
42
|
-
# # The following is only recommended for memory/DB-constrained
|
43
|
-
# # installations. It is not needed if your system can house
|
44
|
-
# # twice as many worker_processes as you have configured.
|
45
|
-
# #
|
46
|
-
# # # This allows a new master process to incrementally
|
47
|
-
# # # phase out the old master process with SIGTTOU to avoid a
|
48
|
-
# # # thundering herd (especially in the "preload_app false" case)
|
49
|
-
# # # when doing a transparent upgrade. The last worker spawned
|
50
|
-
# # # will then kill off the old master process with a SIGQUIT.
|
51
|
-
# # old_pid = "#{server.config[:pid]}.oldbin"
|
52
|
-
# # if old_pid != server.pid
|
53
|
-
# # begin
|
54
|
-
# # sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
|
55
|
-
# # Process.kill(sig, File.read(old_pid).to_i)
|
56
|
-
# # rescue Errno::ENOENT, Errno::ESRCH
|
57
|
-
# # end
|
58
|
-
# # end
|
59
|
-
# #
|
60
|
-
# # # *optionally* throttle the master from forking too quickly by sleeping
|
61
|
-
# # sleep 1
|
62
|
-
# end
|
63
|
-
#
|
64
|
-
# after_fork do |server, worker|
|
65
|
-
# # per-process listener ports for debugging/admin/migrations
|
66
|
-
# # addr = "127.0.0.1:#{9293 + worker.nr}"
|
67
|
-
# # server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true)
|
68
|
-
#
|
69
|
-
# # the following is *required* for Rails + "preload_app true",
|
70
|
-
# defined?(ActiveRecord::Base) and
|
71
|
-
# ActiveRecord::Base.establish_connection
|
72
|
-
#
|
73
|
-
# # if preload_app is true, then you may also want to check and
|
74
|
-
# # restart any other shared sockets/descriptors such as Memcached,
|
75
|
-
# # and Redis. TokyoCabinet file handles are safe to reuse
|
76
|
-
# # between any number of forked children (assuming your kernel
|
77
|
-
# # correctly implements pread()/pwrite() system calls)
|
78
|
-
# end
|