rsence-pre 2.2.0.26 → 2.2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/js/core/elem/elem.coffee +14 -3
- data/lib/conf/argv.rb +23 -8
- data/plugins/client_pkg/lib/client_pkg_build.rb +3 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.0.
|
1
|
+
2.2.0.27.pre
|
data/js/core/elem/elem.coffee
CHANGED
@@ -175,7 +175,9 @@ ELEM = HClass.extend({
|
|
175
175
|
[ _parentClientWidth, _parentClientHeight ] = [ _parent.clientWidth, _parent.clientHeight ]
|
176
176
|
w = _parentClientWidth - _elem.offsetLeft if w > _parentClientWidth
|
177
177
|
h = _parentClientWidth - _elem.offsetTop if h > _parentClientHeight
|
178
|
-
|
178
|
+
_elem = _elem.parentNode
|
179
|
+
break unless _parent.parentNode
|
180
|
+
_parent = _parent.parentNode
|
179
181
|
[ w, h ]
|
180
182
|
|
181
183
|
###
|
@@ -528,8 +530,15 @@ ELEM = HClass.extend({
|
|
528
530
|
_str.replace( /((-)([a-z])(\w))/g, ($0, $1, $2, $3, $4)->
|
529
531
|
$3.toUpperCase()+$4
|
530
532
|
)
|
531
|
-
|
532
|
-
|
533
|
+
|
534
|
+
###
|
535
|
+
Decamelizes string (used for js property to css property conversion)
|
536
|
+
###
|
537
|
+
_deCamelize: (_str)->
|
538
|
+
_str.replace( /(([A-Z])(\w))/g, ($0, $1, $2, $3)->
|
539
|
+
'-'+$2.toLowerCase()+$3
|
540
|
+
)
|
541
|
+
|
533
542
|
###
|
534
543
|
IE version of _setElementStyle
|
535
544
|
###
|
@@ -555,6 +564,7 @@ ELEM = HClass.extend({
|
|
555
564
|
if _cached == undefined
|
556
565
|
@_initCache( _id )
|
557
566
|
_cached = @_styleCache[_id]
|
567
|
+
_key = @_deCamelize( _key )
|
558
568
|
unless _value == _cached[_key]
|
559
569
|
_cached[_key] = _value
|
560
570
|
if _noCache
|
@@ -619,6 +629,7 @@ ELEM = HClass.extend({
|
|
619
629
|
###
|
620
630
|
getStyle: (_id, _key, _noCache)->
|
621
631
|
_cached = @_styleCache[_id]
|
632
|
+
_key = @_deCamelize(_key)
|
622
633
|
if _cached[_key] == undefined or _noCache
|
623
634
|
if _key == 'opacity'
|
624
635
|
_value = @getOpacity(_id)
|
data/lib/conf/argv.rb
CHANGED
@@ -83,14 +83,28 @@ module RSence
|
|
83
83
|
:http_delayed_start => nil, # --http-delayed-start
|
84
84
|
|
85
85
|
# client_pkg (not supported yet)
|
86
|
-
:client_pkg_no_gzip => false, # --
|
87
|
-
:client_pkg_no_obfuscation => false, # --
|
88
|
-
:client_pkg_no_whitespace_removal => false, # --
|
89
|
-
:client_pkg_quiet => true, # --
|
86
|
+
:client_pkg_no_gzip => false, # --client-no-gzip
|
87
|
+
:client_pkg_no_obfuscation => false, # --client-no-obfuscation
|
88
|
+
:client_pkg_no_whitespace_removal => false, # --client-keep-whitespace
|
89
|
+
:client_pkg_quiet => true, # --client-verbose
|
90
90
|
|
91
91
|
}
|
92
92
|
end
|
93
93
|
|
94
|
+
def set_client_pkg_arg( arg_name )
|
95
|
+
if arg_name == '--client-no-gzip'
|
96
|
+
@args[:client_pkg_no_gzip] = true
|
97
|
+
elsif arg_name == '--client-no-obfuscation'
|
98
|
+
@args[:client_pkg_no_obfuscation] = true
|
99
|
+
elsif arg_name == '--client-keep-whitespace'
|
100
|
+
@args[:client_pkg_no_whitespace_removel] = true
|
101
|
+
elsif arg_name == '--client-verbose'
|
102
|
+
@args[:client_pkg_quiet] = false
|
103
|
+
else
|
104
|
+
invalid_option( arg_name )
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
94
108
|
# Main argument parser for all 'start' -type commands.
|
95
109
|
def parse_startup_argv
|
96
110
|
init_args
|
@@ -128,6 +142,8 @@ module RSence
|
|
128
142
|
set_log_fg
|
129
143
|
elsif arg == '--trace-js'
|
130
144
|
@args[:trace_js] = true
|
145
|
+
elsif arg.start_with?( '--client-' )
|
146
|
+
set_client_pkg_arg( arg )
|
131
147
|
elsif arg == '--trace-delegate'
|
132
148
|
@args[:trace_delegate] = true
|
133
149
|
elsif arg == '--port'
|
@@ -763,22 +779,21 @@ module RSence
|
|
763
779
|
end
|
764
780
|
if @@cmds.include?(cmd)
|
765
781
|
@cmd = cmd
|
782
|
+
unless [:help, :version].include?( cmd )
|
783
|
+
puts "RSence #{@@version} -- Ruby #{RUBY_VERSION}"
|
784
|
+
end
|
766
785
|
if cmd == :help
|
767
786
|
parse_help_argv
|
768
787
|
elsif cmd == :version
|
769
788
|
puts version
|
770
789
|
exit
|
771
790
|
elsif [:run,:start,:stop,:restart].include? cmd
|
772
|
-
puts "RSence #{@@version} -- Ruby #{RUBY_VERSION}"
|
773
791
|
parse_startup_argv
|
774
792
|
elsif cmd == :status
|
775
|
-
puts "RSence #{@@version} -- Ruby #{RUBY_VERSION}"
|
776
793
|
parse_status_argv
|
777
794
|
elsif cmd == :save
|
778
|
-
puts "RSence #{@@version} -- Ruby #{RUBY_VERSION}"
|
779
795
|
parse_save_argv
|
780
796
|
elsif cmd == :initenv or cmd == :init
|
781
|
-
puts "RSence #{@@version} -- Ruby #{RUBY_VERSION}"
|
782
797
|
parse_initenv_argv
|
783
798
|
end
|
784
799
|
else
|
@@ -270,6 +270,9 @@ class ClientPkgBuild
|
|
270
270
|
def coffee( src )
|
271
271
|
begin
|
272
272
|
js = CoffeeScript.compile( src, :bare => true )
|
273
|
+
rescue ExecJS::RuntimeError => e
|
274
|
+
warn "ExecJS RuntimeError, invalid CoffeScript supplied:\n----\n#{src}----\n"
|
275
|
+
js = "function(){console.log('ERROR; invalid CoffeeScript supplied: #{src.to_json}');}"
|
273
276
|
rescue CoffeeScript::CompilationError
|
274
277
|
warn "Invalid CoffeeScript supplied:\n----\n#{src}----\n"
|
275
278
|
js = "function(){console.log('ERROR; invalid CoffeeScript supplied: #{src.to_json}');}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.
|
4
|
+
version: 2.2.0.27
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsence-deps
|
17
|
-
requirement: &
|
17
|
+
requirement: &70194617776080 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - =
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '964'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70194617776080
|
26
26
|
description: ! 'RSence is a different and unique development model and software frameworks
|
27
27
|
designed first-hand for real-time web applications. RSence consists of separate,
|
28
28
|
but tigtly integrated data- and user interface frameworks.
|