social_stream-presence 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
|
|
14
14
|
<script type="text/javascript">
|
15
15
|
|
16
16
|
//Global variables
|
17
|
-
var BOSH_SERVICE = '<%=SocialStream::Presence.bosh_service%>';
|
17
|
+
var BOSH_SERVICE = '<%= SocialStream::Presence.bosh_service || root_url + "http-bind" %>';
|
18
18
|
var domain = '<%=SocialStream::Presence.domain%>';
|
19
19
|
var user_name = '<%=current_user.name%>';
|
20
20
|
var user_slug = '<%=current_user.slug%>';
|
@@ -2,13 +2,13 @@ SocialStream::Presence.setup do |config|
|
|
2
2
|
#Configures XMPP Server Domain
|
3
3
|
config.domain = "localhost"
|
4
4
|
#Configures Bosh Service Path
|
5
|
-
config.bosh_service = "http://
|
5
|
+
#config.bosh_service = "http://xmpp-proxy/http-bind"
|
6
6
|
#Configures Social Stream Rails App Password
|
7
7
|
config.password = "DnVCB8G|R$VGmZ@2?5=CYS8z)NrL@LuQ<CUh^9B(DF4gC&sQpfbCMbaNKEdNrGYkT4L5zxM0wNWs5q3?ww(b&0d5fK87z^BmgJMMF2SKXT9pEk^UEcch!GX!Avf5GT9)j@FpHe)4RH)BK7J98u!sUmJHUN(Je6aBmn!FtZ4Ab5h8$|nsvUt3Jkq?21HOH$r0sDyJZZvGOCgFS2EKw@0wXsJRHYVRPBe&Eb!1X55e55bQ^h2AW&^R70TK0m)Fu8"
|
8
8
|
#Configures XMPP Server Password
|
9
9
|
config.xmpp_server_password = "G&s6GBnO)anw2Ene%K12Cb=0quj@uDmA"
|
10
10
|
#Username of the the Social Stream Admin sid
|
11
11
|
config.social_stream_presence_username = "social_stream-presence"
|
12
|
-
#
|
13
|
-
config.enable =
|
12
|
+
#False to disable Social Stream Presence
|
13
|
+
#config.enable = false
|
14
14
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
namespace :presence do
|
2
|
-
desc 'Synchronize
|
2
|
+
desc 'Synchronize Xmpp Server with Social Stream Rails Application'
|
3
3
|
task :synchronize => [ 'presence:synchronize:connections', 'presence:synchronize:rosters' ]
|
4
4
|
|
5
5
|
namespace :synchronize do
|
@@ -45,6 +45,7 @@ namespace :presence do
|
|
45
45
|
puts "Synchronization complete"
|
46
46
|
end
|
47
47
|
|
48
|
+
desc "Synchronize Xmpp Server database with Social Stream Rails Application database"
|
48
49
|
desc "Remove all rosters and populate rosters from Social Stream data."
|
49
50
|
task :rosters => :environment do
|
50
51
|
puts "Starting presence:synchronize:rosters"
|