torquebox-stomp 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/torquebox-stomp.rb
CHANGED
@@ -21,6 +21,7 @@ require 'torquebox/stomp/rack/stomp_javascript_client_provider'
|
|
21
21
|
begin
|
22
22
|
require 'torquebox/stomp/ext/stomplet_config'
|
23
23
|
require 'torquebox/stomp/ext/stomp_session'
|
24
|
+
require 'torquebox/stomp/ext/http_stomp_session'
|
24
25
|
rescue NameError
|
25
26
|
# This is expected if torquebox-stomp gets loaded when not running
|
26
27
|
# inside TorqueBox, like in Rake tasks.
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Copyright 2008-2013 Red Hat, Inc, and individual contributors.
|
2
|
+
#
|
3
|
+
# This is free software; you can redistribute it and/or modify it
|
4
|
+
# under the terms of the GNU Lesser General Public License as
|
5
|
+
# published by the Free Software Foundation; either version 2.1 of
|
6
|
+
# the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This software is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this software; if not, write to the Free
|
15
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
16
|
+
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
17
|
+
|
18
|
+
class org.projectodd.polyglot.stomp::HttpStompSession
|
19
|
+
|
20
|
+
def [](name)
|
21
|
+
@ruby_session[name]
|
22
|
+
end
|
23
|
+
|
24
|
+
def []=(name,value)
|
25
|
+
@ruby_session[name] = value
|
26
|
+
end
|
27
|
+
|
28
|
+
def delete(name)
|
29
|
+
@ruby_session.delete(name)
|
30
|
+
end
|
31
|
+
|
32
|
+
def method_missing(sym,*args)
|
33
|
+
@ruby_session.send(sym, *args)
|
34
|
+
end
|
35
|
+
|
36
|
+
def load_session_data()
|
37
|
+
@ruby_session = TorqueBox::Session::ServletStore.load_session_data(http_session)
|
38
|
+
end
|
39
|
+
|
40
|
+
def store_session_data()
|
41
|
+
TorqueBox::Session::ServletStore.store_session_data(http_session, @ruby_session)
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
org.projectodd.polyglot.stomp::HttpStompSession.__persistent__ = true
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: torquebox-stomp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.3.
|
5
|
+
version: 2.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- The TorqueBox Team
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: torquebox-core
|
@@ -17,13 +17,13 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.3.
|
20
|
+
version: 2.3.1
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.3.
|
26
|
+
version: 2.3.1
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :runtime
|
@@ -33,13 +33,13 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - '='
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 2.3.
|
36
|
+
version: 2.3.1
|
37
37
|
none: false
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.3.
|
42
|
+
version: 2.3.1
|
43
43
|
none: false
|
44
44
|
prerelease: false
|
45
45
|
type: :runtime
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- lib/torquebox/stomp/rack/stilts-stomp-client-js.js
|
75
75
|
- lib/torquebox/stomp/ext/stomplet_config.rb
|
76
76
|
- lib/torquebox/stomp/ext/stomp_session.rb
|
77
|
+
- lib/torquebox/stomp/ext/http_stomp_session.rb
|
77
78
|
homepage: http://torquebox.org/
|
78
79
|
licenses:
|
79
80
|
- lgpl
|