foreign_office 0.15.0 → 0.15.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9cae84ec5a250d5b67b21834f8dbb24c4e6b81c
|
|
4
|
+
data.tar.gz: 9b082f9d7fb8053984ba920abe5e3213ecfb6ec3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d8122df27dc7f63ffe264d7c01c48210d409f6f20eeed278d5f7ed7c323999d37f075ec7849e3a7b1b9e21f61b7a68e7d5917d075cd5709c22295bc89fb1fcb
|
|
7
|
+
data.tar.gz: 644da196de535ee346021b947c1fd4e8c5ac8db6885074d8010856e0712430c9616c0f8a00da0356208ef2a14f813e5a60c2a10b7bfcdb8696277ad6be9dd8a9
|
|
@@ -68,6 +68,10 @@ var ForeignOffice = Class.extend({
|
|
|
68
68
|
alert(this.reconnect_alert)
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
//If the bus broadcasts the channel as part of the message...
|
|
72
|
+
handleMessage: function(m){
|
|
73
|
+
this.channels_by_name[m.channel].handleMessage(m.message)
|
|
74
|
+
},
|
|
71
75
|
bind_listeners: function(){
|
|
72
76
|
window.any_time_manager.register('listener','addListener',this);
|
|
73
77
|
window.any_time_manager.load();
|
|
@@ -83,6 +87,7 @@ var ForeignOfficeChannel = Class.extend({
|
|
|
83
87
|
debug_logger.log(channel_name);
|
|
84
88
|
foreign_office.bus.subscribe({
|
|
85
89
|
channel : channel_name,
|
|
90
|
+
//If the bus binds the callback to the channel object...
|
|
86
91
|
callback : function(m){
|
|
87
92
|
foreign_office_channel.handleMessage(m)
|
|
88
93
|
}
|
|
@@ -12,13 +12,9 @@ var PubnubBus = Class.extend({
|
|
|
12
12
|
debug_logger.log("about to unload page")
|
|
13
13
|
pubnubbus.unsubscribe()
|
|
14
14
|
};
|
|
15
|
-
},
|
|
16
|
-
subscribe: function(subscription){
|
|
17
|
-
debug_logger.log("subscribing with PubnubBus")
|
|
18
|
-
debug_logger.log(subscription)
|
|
19
15
|
this.pubnub.addListener({
|
|
20
16
|
message : function(m){
|
|
21
|
-
|
|
17
|
+
foreign_office.handleMessage(m)
|
|
22
18
|
},
|
|
23
19
|
status: function(s){
|
|
24
20
|
debug_logger.log("Foreign Office PubnubBus:")
|
|
@@ -42,6 +38,10 @@ var PubnubBus = Class.extend({
|
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
});
|
|
41
|
+
},
|
|
42
|
+
subscribe: function(subscription){
|
|
43
|
+
debug_logger.log("subscribing with PubnubBus")
|
|
44
|
+
debug_logger.log(subscription)
|
|
45
45
|
this.pubnub.subscribe({
|
|
46
46
|
channels : [subscription.channel]
|
|
47
47
|
});
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreign_office
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Draut
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-06-
|
|
12
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
159
|
rubyforge_project:
|
|
160
|
-
rubygems_version: 2.6.
|
|
160
|
+
rubygems_version: 2.6.12
|
|
161
161
|
signing_key:
|
|
162
162
|
specification_version: 4
|
|
163
163
|
summary: A light framework that provides functionality for listeners on web clients
|