rsence-pre 2.3.0.10 → 2.3.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0.10.pre
1
+ 2.3.0.11.pre
@@ -530,6 +530,7 @@ ELEM = HClass.extend
530
530
  _classNames = _elem.className.trim().split(' ')
531
531
  _classNames.push(_className)
532
532
  _elem.className = _classNames.join(' ')
533
+ @_attrCache[_id]['className'] = _elem.className
533
534
  null
534
535
 
535
536
  ###
@@ -542,6 +543,7 @@ ELEM = HClass.extend
542
543
  _classNames = _elem.className.split(' ')
543
544
  _classNames.splice( _classNames.indexOf( _className ), 1 )
544
545
  _elem.className = _classNames.join(' ')
546
+ @_attrCache[_id]['className'] = _elem.className
545
547
  null
546
548
 
547
549
  removeClassName: (_id, _className)->
@@ -584,7 +584,7 @@ HView = HClass.extend({
584
584
  },
585
585
 
586
586
  /** = Description
587
- * The selectable state defines whe
587
+ * The selectable state defines when the view should be selectable or not.
588
588
  *
589
589
  **/
590
590
  textSelectable: false,
@@ -600,7 +600,7 @@ HView = HClass.extend({
600
600
  },
601
601
  setTextSelectable: function(_flag){
602
602
  this.textSelectable = !!_flag;
603
- this.updateSelectable();
603
+ this.updateTextSelectable();
604
604
  },
605
605
 
606
606
  /** --
@@ -1908,9 +1908,7 @@ HView = HClass.extend({
1908
1908
  var _stringElem = ELEM.make(_elemId,'span');
1909
1909
  ELEM.setCSS(_stringElem, "visibility:hidden;"+_extraCss);
1910
1910
  ELEM.setHTML(_stringElem, _string);
1911
- // ELEM.flushLoop();
1912
1911
  var _visibleSize=ELEM.getSize(_stringElem);
1913
- // console.log('visibleSize',_visibleSize);
1914
1912
  ELEM.del(_stringElem);
1915
1913
  return [_visibleSize[0]+_visibleSize[0]%2,_visibleSize[1]+_visibleSize[1]%2];
1916
1914
  },
data/lib/rsence/daemon.rb CHANGED
@@ -427,7 +427,11 @@ module RSence
427
427
  puts "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')} -- Saving state..."
428
428
  # transporter_state = @transporter.online?
429
429
  # @transporter.online = false
430
- @transporter.sessions.store_sessions
430
+ begin
431
+ @transporter.sessions.store_sessions
432
+ rescue => e
433
+ puts "Exception #{e.inspect} occurred while storing sessions"
434
+ end
431
435
  @transporter.plugins.delegate(:flush)
432
436
  # @transporter.online = transporter_state
433
437
  puts "#{Time.now.strftime('%Y-%m-%d %H:%M:%S')} -- State saved."
@@ -86,8 +86,10 @@ module RSence
86
86
  return
87
87
  end
88
88
  puts "Storing sessions..." if RSence.args[:verbose]
89
- ses_ids = @sessions.keys
89
+ ses_ids = @sessions.keys.clone
90
90
  ses_ids.each do |ses_id|
91
+ ses_data = @sessions[ses_id]
92
+ next if ses_data.nil?
91
93
  ses_data = @sessions[ses_id].clone
92
94
  if @plugins
93
95
  @plugins.delegate( :dump_ses, ses_data )
@@ -179,7 +181,8 @@ module RSence
179
181
  def expire_sessions
180
182
 
181
183
  # Loop through all sessions in memory:
182
- @sessions.each_key do |ses_id|
184
+ ses_ids = @sessions.keys.clone
185
+ ses_ids.each do |ses_id|
183
186
 
184
187
  timed_out = @sessions[ ses_id ][:timeout] < Time.now.to_i
185
188
 
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.3.0.10
4
+ version: 2.3.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-08 00:00:00.000000000 Z
13
+ date: 2012-11-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps