sbsm 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fe0cd3bee32abd6584a2ef5bee75193dc3f6628
4
- data.tar.gz: dfae87daaf90a29b77aa63cd2d6383a38adac999
3
+ metadata.gz: d647251dba775553fefe6121a9426dbb451d3cca
4
+ data.tar.gz: 1f856b9d6adf4c1a7744057fe0c2dc7dfc3e711c
5
5
  SHA512:
6
- metadata.gz: 11964b9621a5888a2cffd473d25d6df2187cdf47bfb325bc8d8625715e173e7ed3edafe326519fc24632ef5cef43beef225db0b37f33f42fb44f7c66ad247ebd
7
- data.tar.gz: c824c1ee2f3915e65d7863c75d71e0a00df4221a454b124c04855171d8e9732892aabb4c69cd43d9e7d05106c1cf28dc32d238dcd31ad153124e79d7cda11524
6
+ metadata.gz: 3143714442df1fb02afe914f21e9f6046d152e65595e6c65db919c7e4b5bcce1b7d1e0ca094d3c5db0bcbf268fcc38521cc8341eb010ba54d30a01cfa306a7c9
7
+ data.tar.gz: 319e8f27fea2a105a9db1474c09bd9d3a7da3280bc5c164837ae3f8bebd453086208ac9e2a03c7dc6e78cce87096b04de779b872d28b0ad89626880e3b4a1414
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.4.1 / 22.05.2017
2
+
3
+ * Moved _async from from SessionStore back to Session class
4
+
1
5
  === 1.4.0 / 17.05.2017
2
6
 
3
7
  * Moved _admin to separate AdminServer class
data/lib/sbsm/session.rb CHANGED
@@ -52,6 +52,7 @@ module SBSM
52
52
  SERVER_NAME = nil
53
53
  UNKNOWN_USER = UnknownUser
54
54
  @@mutex = Mutex.new
55
+ @@async = ThreadGroup.new
55
56
  def Session.reset_stats
56
57
  @@stats = {}
57
58
  end
@@ -550,6 +551,9 @@ module SBSM
550
551
  def []=(key, val)
551
552
  @variables[key] = val
552
553
  end
554
+ def async(&block)
555
+ @@async.add(Thread.new(&block))
556
+ end
553
557
  private
554
558
  def active_state
555
559
  if(state_id = @valid_input[:state_id])
@@ -61,7 +61,6 @@ module SBSM
61
61
  @sessions = {}
62
62
  @mutex = Mutex.new
63
63
  @cleaner = run_cleaner if(self.class.const_get(:RUN_CLEANER))
64
- @async = ThreadGroup.new
65
64
  @app = app
66
65
  @system = persistence_layer
67
66
  @persistence_layer = persistence_layer
@@ -74,9 +73,6 @@ module SBSM
74
73
  @unknown_user ||= UNKNOWN_USER
75
74
  @validator = validator
76
75
  end
77
- def async(&block)
78
- @async.add(Thread.new(&block))
79
- end
80
76
  def cap_max_sessions(now = Time.now)
81
77
  if(@sessions.size > self::class::CAP_MAX_THRESHOLD)
82
78
  SBSM.info "too many sessions! Keeping only #{self::class::MAX_SESSIONS}"
data/lib/sbsm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SBSM
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack