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://localhost:8080/http-bind"
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&LTCUh^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
- #True to enable Social Stream Presence
13
- config.enable = true
12
+ #False to disable Social Stream Presence
13
+ #config.enable = false
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Socialstream
2
2
  module Presence
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -13,7 +13,8 @@ module SocialStream
13
13
  mattr_accessor :xmpp_server_password
14
14
  mattr_accessor :social_stream_presence_username
15
15
  mattr_accessor :enable
16
-
16
+ @@enable = true
17
+
17
18
  class << self
18
19
  def setup
19
20
  yield self
@@ -1,5 +1,5 @@
1
1
  namespace :presence do
2
- desc 'Synchronize the Xmpp Server database with the Social Stream database'
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"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: social_stream-presence
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Aldo Gordillo