rsence-pre 2.2.0.24 → 2.2.0.25
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/VERSION +1 -1
- data/lib/plugins/plugin_base.rb +11 -1
- data/lib/session/msg.rb +5 -0
- data/lib/values/hvalue.rb +6 -1
- data/plugins/main/values.yaml +3 -1
- metadata +66 -66
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.0.
|
1
|
+
2.2.0.25.pre
|
data/lib/plugins/plugin_base.rb
CHANGED
@@ -104,7 +104,17 @@ module RSence
|
|
104
104
|
if not file_data
|
105
105
|
return false
|
106
106
|
else
|
107
|
-
|
107
|
+
begin
|
108
|
+
return YAML.load( file_data )
|
109
|
+
rescue Psych::SyntaxError => e
|
110
|
+
warn "Syntax Error in YAML file: #{path} (#{e.message})"
|
111
|
+
return false
|
112
|
+
rescue => e
|
113
|
+
warn "An exception occurred while parsing YAML file: #{path}"
|
114
|
+
warn e.message
|
115
|
+
warn " #{e.backtrace.join("\n ")}"
|
116
|
+
return false
|
117
|
+
end
|
108
118
|
end
|
109
119
|
end
|
110
120
|
|
data/lib/session/msg.rb
CHANGED
data/lib/values/hvalue.rb
CHANGED
@@ -176,10 +176,11 @@ module RSence
|
|
176
176
|
|
177
177
|
# @private Handle updates from the client.
|
178
178
|
def from_client( msg, data )
|
179
|
-
|
180
179
|
# only process changes, if different from the one already stored.
|
181
180
|
if @data != data
|
182
181
|
|
182
|
+
# puts "data sync from client: #{@data.inspect} -> #{data.inspect} (#{@meta[:name]})"
|
183
|
+
|
183
184
|
## set takes care of the setting..
|
184
185
|
@data = data
|
185
186
|
|
@@ -270,6 +271,10 @@ module RSence
|
|
270
271
|
end
|
271
272
|
end
|
272
273
|
alias die die!
|
274
|
+
|
275
|
+
def inspect
|
276
|
+
"#<RSence::HValue value_id:#{@value_id.inspect}, valid: #{@is_valid.inspect}, sync: #{@sync.inspect}, is_new_to_client: #{@is_new_to_client.inspect}, meta: #{@meta.inspect[0..100]}, data: #{@data.inspect[0..100]} ...>"
|
277
|
+
end
|
273
278
|
|
274
279
|
end
|
275
280
|
|
data/plugins/main/values.yaml
CHANGED
metadata
CHANGED
@@ -1,61 +1,75 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.0.25
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
- 24
|
11
|
-
version: 2.2.0.24
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Riassence Inc.
|
15
9
|
- Juha-Jarmo Heinonen
|
16
10
|
autorequire:
|
17
11
|
bindir: bin
|
18
12
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2011-11-21 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: rsence-deps
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70129073305800 !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 964
|
33
|
-
version: "964"
|
19
|
+
requirements:
|
20
|
+
- - =
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '964'
|
34
23
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70129073305800
|
26
|
+
description: ! 'RSence is a different and unique development model and software frameworks
|
27
|
+
designed first-hand for real-time web applications. RSence consists of separate,
|
28
|
+
but tigtly integrated data- and user interface frameworks.
|
29
|
+
|
30
|
+
|
39
31
|
RSence could be classified as a thin server - thick client system.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
The
|
48
|
-
|
49
|
-
|
50
|
-
|
32
|
+
|
33
|
+
|
34
|
+
Applications and submobules are installed as indepenent plugin bundles into the
|
35
|
+
plugins folder of a RSence environment, which in itself is a self-contained bundle.
|
36
|
+
A big part of RSence itself is implemented as shared plugin bundles.
|
37
|
+
|
38
|
+
|
39
|
+
The user interface framework of RSence is implemented in high-level user interface
|
40
|
+
widget classes. The widget classes share a common foundation API and access the
|
41
|
+
browser''s native API''s using an abstracted event- and element layer, which provides
|
42
|
+
exceptional cross-browser compatibility.
|
43
|
+
|
44
|
+
|
45
|
+
The data framework of RSence is a event-driven system, which synchronized shared
|
46
|
+
values between the client and server. It''s like a realtime bidirectional form-submission
|
47
|
+
engine that handles data changes intelligently. On the client, changed values trigger
|
48
|
+
events on user interface widgets. On the server, changed values trigger events on
|
49
|
+
value responder methods of server plugin modules. It doesn''t matter if the change
|
50
|
+
originates on client or server, it''s all synchronized and propagated automatically.
|
51
|
+
|
52
|
+
|
53
|
+
The server framework is implemented as a high-level, modular data-event-driven system,
|
54
|
+
which handles delegation of tasks impossible to implement using a client-only approach.
|
55
|
+
|
56
|
+
Client sessions are selectively connected to other client sessions and legacy back-ends
|
57
|
+
via the server by using the data framework.
|
58
|
+
|
59
|
+
|
60
|
+
The client is written in Javascript and the server is written in Ruby. The client
|
61
|
+
also supports CoffeeScript for custom logic. In many cases, no custom client logic
|
62
|
+
is needed; the user interfaces can be defined in tree-like data models. By default,
|
63
|
+
the models are parsed from YAML files, and other structured data formats are possible,
|
64
|
+
including XML, JSON, databases or any custom logic capable of producing similar
|
65
|
+
objects. The server can connect to custom environments and legacy backends accessible
|
66
|
+
on the server, including software written in other languages.'
|
51
67
|
email: info@rsence.org
|
52
|
-
executables:
|
68
|
+
executables:
|
53
69
|
- rsence-pre
|
54
70
|
extensions: []
|
55
|
-
|
56
71
|
extra_rdoc_files: []
|
57
|
-
|
58
|
-
files:
|
72
|
+
files:
|
59
73
|
- lib/conf/argv.rb
|
60
74
|
- lib/conf/default.rb
|
61
75
|
- lib/daemon/daemon.rb
|
@@ -333,42 +347,28 @@ files:
|
|
333
347
|
- .yardopts
|
334
348
|
- bin/rsence-pre
|
335
349
|
homepage: http://www.rsence.org/
|
336
|
-
licenses:
|
350
|
+
licenses:
|
337
351
|
- GPL-3
|
338
352
|
post_install_message:
|
339
353
|
rdoc_options: []
|
340
|
-
|
341
|
-
require_paths:
|
354
|
+
require_paths:
|
342
355
|
- lib
|
343
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
356
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
344
357
|
none: false
|
345
|
-
requirements:
|
346
|
-
- -
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
hash: 57
|
349
|
-
segments:
|
350
|
-
- 1
|
351
|
-
- 8
|
352
|
-
- 7
|
358
|
+
requirements:
|
359
|
+
- - ! '>='
|
360
|
+
- !ruby/object:Gem::Version
|
353
361
|
version: 1.8.7
|
354
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
363
|
none: false
|
356
|
-
requirements:
|
357
|
-
- -
|
358
|
-
- !ruby/object:Gem::Version
|
359
|
-
hash: 25
|
360
|
-
segments:
|
361
|
-
- 1
|
362
|
-
- 3
|
363
|
-
- 1
|
364
|
+
requirements:
|
365
|
+
- - ! '>'
|
366
|
+
- !ruby/object:Gem::Version
|
364
367
|
version: 1.3.1
|
365
368
|
requirements: []
|
366
|
-
|
367
369
|
rubyforge_project: rsence-
|
368
370
|
rubygems_version: 1.8.10
|
369
371
|
signing_key:
|
370
372
|
specification_version: 3
|
371
373
|
summary: Pre-Release 2.2 version of RSence.
|
372
374
|
test_files: []
|
373
|
-
|
374
|
-
has_rdoc:
|