social_stream 0.11.8 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/base/app/assets/images/btn/download.png +0 -0
  2. data/base/app/assets/javascripts/activities.js.erb +1 -1
  3. data/base/app/assets/javascripts/social_stream-base.js +2 -0
  4. data/base/app/assets/stylesheets/social_stream-base.css +2 -0
  5. data/base/app/views/avatars/index.html.erb +0 -13
  6. data/base/app/views/comments/create.js.erb +3 -0
  7. data/base/app/views/toolbar/_home.html.erb +1 -1
  8. data/base/config/locales/en.yml +1 -0
  9. data/base/config/locales/es.yml +1 -0
  10. data/base/lib/social_stream/base/version.rb +1 -1
  11. data/base/lib/social_stream/controllers/helpers.rb +6 -0
  12. data/base/lib/social_stream/migrations/base.rb +12 -9
  13. data/base/lib/social_stream/migrations/components.rb +1 -1
  14. data/base/social_stream-base.gemspec +1 -1
  15. data/documents/Rakefile +3 -13
  16. data/documents/app/assets/javascripts/documents.js.erb +21 -32
  17. data/documents/app/assets/javascripts/social_stream-documents.js +2 -1
  18. data/documents/app/assets/stylesheets/{documents.css → documents.css.scss} +32 -6
  19. data/documents/app/assets/stylesheets/show.css.scss +75 -0
  20. data/documents/app/assets/stylesheets/social_stream-documents.css +2 -1
  21. data/documents/app/controllers/audios_controller.rb +0 -14
  22. data/documents/app/controllers/common_documents_controller.rb +6 -3
  23. data/documents/app/controllers/documents_controller.rb +9 -3
  24. data/documents/app/controllers/pictures_controller.rb +0 -1
  25. data/documents/app/controllers/videos_controller.rb +0 -15
  26. data/documents/app/helpers/documents_helper.rb +11 -7
  27. data/documents/app/models/audio.rb +1 -1
  28. data/documents/app/models/document.rb +9 -5
  29. data/documents/app/models/picture.rb +1 -1
  30. data/documents/app/models/video.rb +8 -6
  31. data/documents/app/views/audios/_audio.html.erb +2 -2
  32. data/documents/app/views/audios/_audio_processed.html.erb +4 -4
  33. data/documents/app/views/audios/_audio_show.html.erb +62 -0
  34. data/documents/app/views/audios/index.html.erb +1 -1
  35. data/documents/app/views/audios/show.html.erb +2 -2
  36. data/documents/app/views/common_documents/_document_info.html.erb +34 -0
  37. data/documents/app/views/common_documents/_index.html.erb +49 -0
  38. data/documents/app/views/common_documents/_show.html.erb +36 -0
  39. data/documents/app/views/documents/_document.html.erb +2 -6
  40. data/documents/app/views/documents/_document_show.html.erb +7 -0
  41. data/documents/app/views/documents/index.html.erb +1 -1
  42. data/documents/app/views/documents/show.html.erb +2 -2
  43. data/documents/app/views/pictures/_picture.html.erb +13 -12
  44. data/documents/app/views/pictures/_picture_show.html.erb +26 -0
  45. data/documents/app/views/pictures/index.html.erb +1 -1
  46. data/documents/app/views/pictures/show.html.erb +2 -2
  47. data/documents/app/views/videos/_video.html.erb +2 -2
  48. data/documents/app/views/videos/_video_processed.html.erb +4 -3
  49. data/documents/app/views/videos/_video_show.html.erb +64 -0
  50. data/documents/app/views/videos/index.html.erb +1 -1
  51. data/documents/app/views/videos/show.html.erb +2 -2
  52. data/documents/config/locales/en.yml +19 -1
  53. data/documents/config/locales/es.yml +18 -0
  54. data/documents/lib/social_stream/documents/engine.rb +2 -0
  55. data/documents/lib/social_stream/documents/version.rb +1 -1
  56. data/documents/social_stream-documents.gemspec +1 -1
  57. data/documents/spec/controllers/documents_controller_spec.rb +40 -2
  58. data/documents/spec/controllers/pictures_controller_spec.rb +4 -4
  59. data/documents/spec/dummy/config/environments/development.rb +0 -1
  60. data/documents/spec/dummy/config/environments/test.rb +2 -0
  61. data/lib/social_stream/release.rb +26 -4
  62. data/lib/social_stream/version.rb +1 -1
  63. data/presence/app/assets/javascripts/xmpp_client.js +0 -6
  64. data/presence/app/controllers/xmpp_controller.rb +46 -102
  65. data/presence/app/views/xmpp/_chat.html.erb +1 -2
  66. data/presence/ejabberd/conf/{ejabberd.cfg → ejabberd_example.cfg} +3 -7
  67. data/presence/ejabberd/conf/ssconfig_example.cfg +32 -0
  68. data/presence/ejabberd/ejabberd_scripts/authentication_script +7 -3
  69. data/presence/ejabberd/ejabberd_scripts/{compile_module → development_scripts/compile_module} +0 -0
  70. data/presence/ejabberd/ejabberd_scripts/{generate_random_password → development_scripts/generate_random_password} +0 -0
  71. data/presence/ejabberd/ejabberd_scripts/{kill_authentication_script.sh → development_scripts/kill_authentication_script.sh} +0 -0
  72. data/presence/ejabberd/ejabberd_scripts/{reset_logs.sh → development_scripts/reset_logs.sh} +0 -2
  73. data/presence/ejabberd/ejabberd_scripts/{show_config.sh → development_scripts/show_config.sh} +3 -0
  74. data/presence/ejabberd/ejabberd_scripts/{start_ejabberd.sh → development_scripts/start_ejabberd.sh} +0 -0
  75. data/presence/ejabberd/ejabberd_scripts/{stop_ejabberd.sh → development_scripts/stop_ejabberd.sh} +0 -0
  76. data/presence/ejabberd/ejabberd_scripts/emanagement +18 -14
  77. data/presence/ejabberd/mod_sspresence/mod_sspresence.beam +0 -0
  78. data/presence/ejabberd/mod_sspresence/mod_sspresence.erl +11 -7
  79. data/presence/lib/generators/social_stream/presence/templates/initializer.rb +14 -4
  80. data/presence/lib/social_stream/migrations/presence.rb +0 -1
  81. data/presence/lib/social_stream/presence/engine.rb +1 -48
  82. data/presence/lib/social_stream/presence/models/buddy_manager.rb +17 -44
  83. data/presence/lib/social_stream/presence/version.rb +1 -1
  84. data/presence/lib/social_stream/presence/xmpp_server_order.rb +181 -0
  85. data/presence/lib/social_stream-presence.rb +12 -2
  86. data/presence/lib/tasks/presence/synchronize.rake +6 -47
  87. data/social_stream.gemspec +2 -2
  88. metadata +32 -28
  89. data/base/lib/social_stream/migrations/finder.rb +0 -20
  90. data/documents/app/views/common-documents/_index.html.erb +0 -45
  91. data/documents/app/views/toolbar/_uploads_menu.html.erb +0 -21
  92. data/presence/ejabberd/conf/ejabberdctl.cfg +0 -154
  93. data/presence/ejabberd/conf/inetrc +0 -3
  94. data/presence/ejabberd/conf/ssconfig.cfg +0 -32
  95. data/presence/ejabberd/ejabberd_scripts/authentication_script_org +0 -114
@@ -1,9 +1,3 @@
1
- require 'xmpp4r'
2
- require 'xmpp4r/muc'
3
- require 'xmpp4r/roster'
4
- require 'xmpp4r/client'
5
- require 'xmpp4r/message'
6
-
7
1
  module SocialStream
8
2
  module Presence
9
3
  module Models
@@ -18,54 +12,33 @@ module SocialStream
18
12
 
19
13
  def save_buddy
20
14
 
15
+ unless SocialStream::Presence.enable
16
+ return
17
+ end
18
+
21
19
  unless self.receiver.subject_type == "User" and self.sender.subject_type == "User"
22
20
  return
23
21
  end
24
-
22
+
25
23
  #XMPP DOMAIN
26
24
  domain = SocialStream::Presence.domain
27
- #PASSWORD
28
- password= SocialStream::Presence.password
29
- #SS Username
30
- ss_name = SocialStream::Presence.social_stream_presence_username
31
- ss_sid = ss_name + "@" + domain
32
-
33
25
  user_sid = self.sender.slug + "@" + domain
34
26
  user_name = self.sender.name
35
27
  buddy_sid = self.receiver.slug + "@" + domain
36
28
  buddy_name = self.receiver.name
37
29
 
38
-
39
- begin
40
- client = Jabber::Client.new(Jabber::JID.new(ss_sid))
41
- client.connect
42
- client.auth(password)
43
-
44
- #Check if is a positive and replied tie
45
- if self.bidirectional?
46
- #SetRosterForBidirectionalTie[UserASID,UserBSID,UserAName,UserBName]
47
- msg = Jabber::Message::new(ss_sid, "SetRosterForBidirectionalTie&" + user_sid + "&" + buddy_sid + "&" + buddy_name + "&" + user_name)
48
- elsif self.positive?
49
- #Case: Possitive tie unidirectional
50
- sType = "from"
51
- #AddItemToRoster[UserSID,BuddySID,BuddyName,Subscription_type]
52
- msg = Jabber::Message::new(ss_sid, "AddItemToRoster&" + user_sid + "&" + buddy_sid + "&" + buddy_name + "&" + sType)
53
- else
54
- return
55
- end
56
-
57
- msg.type=:chat
58
- client.send(msg)
59
- client.close()
60
-
61
- rescue Exception => e
62
- case e
63
- when Errno::ECONNREFUSED
64
- puts "Connection to XMPP Server refused"
65
- else
66
- puts "Unknown exception: #{e.to_s}"
67
- end
68
- end
30
+ #Check if is a positive and replied tie
31
+ if self.bidirectional?
32
+ #Execute setRosterForBidirectionalTie(userASid,userBSid,userANick,userBNick,groupForA,groupForB)
33
+ SocialStream::Presence::XmppServerOrder::setRosterForBidirectionalTie(user_sid,buddy_sid,user_name,buddy_name,"SocialStream","SocialStream")
34
+ elsif self.positive?
35
+ #Case: Possitive tie unidirectional
36
+ #Execute addBuddyToRoster(userSID,buddySID,buddyNick,buddyGroup,subscription_type)
37
+ subscription_type = "to"
38
+ SocialStream::Presence::XmppServerOrder::addBuddyToRoster(user_sid,buddy_sid,buddy_name,"SocialStream",subscription_type)
39
+ else
40
+ return
41
+ end
69
42
 
70
43
  end
71
44
 
@@ -1,5 +1,5 @@
1
1
  module Socialstream
2
2
  module Presence
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
@@ -0,0 +1,181 @@
1
+ require 'xmpp4r'
2
+ require 'xmpp4r/muc'
3
+ require 'xmpp4r/roster'
4
+ require 'xmpp4r/client'
5
+ require 'xmpp4r/message'
6
+
7
+ module SocialStream
8
+ module Presence
9
+ class XmppServerOrder
10
+
11
+ class << self
12
+
13
+ def setRosterForBidirectionalTie(userASid,userBSid,userANick,userBNick,groupForA,groupForB)
14
+ if SocialStream::Presence.remote_xmpp_server
15
+ puts "Not implemented setRosterForBidirectionalTie(userASid,userBSid,userANick,userBNick,groupForA,groupForB) for remote_xmpp_server"
16
+ return
17
+ else
18
+ #SocialStream::Presence.remote_xmpp_server=false
19
+ executeEmanagementLocalCommand("setBidireccionalBuddys",[userASid,userBSid,userANick,userBNick,groupForA,groupForB])
20
+ end
21
+ end
22
+
23
+ def addBuddyToRoster(userSID,buddySID,buddyNick,buddyGroup,subscription_type)
24
+ if SocialStream::Presence.remote_xmpp_server
25
+ puts "Not implemented addBuddyToRoster(userSID,buddySID,buddyNick,buddyGroup,subscription_type) for remote_xmpp_server"
26
+ return
27
+ else
28
+ #SocialStream::Presence.remote_xmpp_server=false
29
+ executeEmanagementLocalCommand("addBuddyToRoster",[userSID,buddySID,buddyNick,buddyGroup,subscription_type])
30
+ end
31
+ end
32
+
33
+ def synchronize_presence
34
+ if SocialStream::Presence.remote_xmpp_server
35
+
36
+ begin
37
+ client = openXmppClientForSocialStreamUser
38
+ if client
39
+ sendXmppChatMessage(client,getSocialStreamUserSid,"Synchronize")
40
+ client.close()
41
+ return "Ok"
42
+ else
43
+ reset_presence
44
+ return "Reset Connected Users"
45
+ end
46
+ rescue
47
+ puts "Error in SocialStream::Presence::XmppServerOrder::synchronize_presence"
48
+ end
49
+
50
+ else
51
+ #SocialStream::Presence.remote_xmpp_server=false
52
+
53
+ #Get connected users locally
54
+ users = []
55
+ output = %x[ejabberdctl connected-users]
56
+ sessions = output.split("\n")
57
+
58
+ sessions.each do |session|
59
+ users << session.split("@")[0]
60
+ puts session.split("@")[0]
61
+ end
62
+
63
+ synchronize_presence_for_slugs(users)
64
+
65
+ end
66
+ end
67
+
68
+
69
+ def remove_all_rosters
70
+ if SocialStream::Presence.remote_xmpp_server
71
+ puts "Not implemented SocialStream::Presence::XmppServerOrder::remove_all_rosters for remote_xmpp_server"
72
+ return
73
+ else
74
+ #SocialStream::Presence.remote_xmpp_server=false
75
+ executeEmanagementLocalCommand("removeAllRosters",[])
76
+ end
77
+ end
78
+
79
+ def synchronize_rosters
80
+ puts "Removing all rosters"
81
+ remove_all_rosters
82
+ puts "Rosters removed"
83
+
84
+ puts "Populate rosters"
85
+ users = User.all
86
+ checkedUsers = []
87
+
88
+ users.each do |user|
89
+ checkedUsers << user.slug
90
+ contacts = user.contact_actors(:type=>:user)
91
+ contacts.each do |contact|
92
+ unless checkedUsers.include?(contact.slug)
93
+ domain = SocialStream::Presence.domain
94
+ user_sid = user.slug + "@" + domain
95
+ contact_sid = contact.slug + "@" + domain
96
+ setRosterForBidirectionalTie(user_sid,contact_sid,user.name,contact.name,"SocialStream","SocialStream")
97
+ end
98
+ end
99
+ end
100
+ end
101
+
102
+
103
+ #Help methods
104
+
105
+ def getSocialStreamUserSid
106
+ #XMPP DOMAIN
107
+ domain = SocialStream::Presence.domain
108
+ #SS Username
109
+ ss_name = SocialStream::Presence.social_stream_presence_username
110
+ return ss_name + "@" + domain
111
+ end
112
+
113
+ def openXmppClientForSocialStreamUser
114
+ begin
115
+ password= SocialStream::Presence.password
116
+ client = Jabber::Client.new(Jabber::JID.new(getSocialStreamUserSid))
117
+ client.connect
118
+ client.auth(password)
119
+ return client
120
+ rescue Exception => e
121
+ case e
122
+ when Errno::ECONNREFUSED
123
+ puts "Connection to XMPP Server refused"
124
+ return nil
125
+ else
126
+ puts "Unknown exception: #{e.to_s}"
127
+ return nil
128
+ end
129
+ end
130
+ end
131
+
132
+ def sendXmppChatMessage(client,dest_sid,body)
133
+ msg = Jabber::Message::new(dest_sid, body)
134
+ msg.type=:chat
135
+ client.send(msg)
136
+ end
137
+
138
+ def synchronize_presence_for_slugs(user_slugs)
139
+ #Check connected users
140
+ users = User.find_all_by_connected(true)
141
+
142
+ users.each do |user|
143
+ if user_slugs.include?(user.slug) == false
144
+ user.connected = false
145
+ user.save!
146
+ end
147
+ end
148
+
149
+ user_slugs.each do |user_slug|
150
+ u = User.find_by_slug(user_slug)
151
+ if (u != nil && u.connected == false)
152
+ u.connected = true
153
+ u.save!
154
+ end
155
+ end
156
+ end
157
+
158
+ def reset_presence
159
+ users = User.find_all_by_connected(true)
160
+
161
+ users.each do |user|
162
+ user.connected = false
163
+ user.save!
164
+ end
165
+ end
166
+
167
+ def executeEmanagementLocalCommand(order,params)
168
+ command = SocialStream::Presence.scripts_path + "/emanagement " + order
169
+ params.each do |param|
170
+ command = command + " " + param.split(" ")[0]
171
+ end
172
+ puts "Executing " + command
173
+ system command
174
+ puts "Ok"
175
+ end
176
+
177
+ end
178
+
179
+ end
180
+ end
181
+ end
@@ -3,16 +3,26 @@ require 'social_stream-base'
3
3
  module SocialStream
4
4
  module Presence
5
5
 
6
+ autoload :XmppServerOrder, 'social_stream/presence/xmpp_server_order'
7
+
6
8
  module Models
7
9
  autoload :BuddyManager, 'social_stream/presence/models/buddy_manager'
8
10
  end
9
11
 
10
- mattr_accessor :domain
11
12
  mattr_accessor :bosh_service
12
- mattr_accessor :password
13
13
  mattr_accessor :xmpp_server_password
14
+ mattr_accessor :remote_xmpp_server
15
+ mattr_accessor :enable
16
+
17
+ mattr_accessor :domain
14
18
  mattr_accessor :social_stream_presence_username
19
+ mattr_accessor :password
20
+
21
+ mattr_accessor :scripts_path
15
22
 
23
+ @@enable = true
24
+ @@remote_xmpp_server = false
25
+
16
26
  class << self
17
27
  def setup
18
28
  yield self
@@ -1,63 +1,22 @@
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
6
6
 
7
- desc "Synchronize user presence."
7
+ desc "Synchronize user presence"
8
8
  task :connections => :environment do
9
9
  puts "Starting presence:synchronize:connections"
10
+ SocialStream::Presence::XmppServerOrder::synchronize_presence
10
11
  puts "Synchronization complete"
11
12
  end
12
13
 
14
+ desc "Synchronize Xmpp Server database with Social Stream Rails Application database"
13
15
  desc "Remove all rosters and populate rosters from Social Stream data."
14
16
  task :rosters => :environment do
15
17
  puts "Starting presence:synchronize:rosters"
16
-
17
- #XMPP DOMAIN
18
- domain = SocialStream::Presence.domain
19
- #PASSWORD
20
- password= SocialStream::Presence.password
21
- #SS Username
22
- ss_name = SocialStream::Presence.social_stream_presence_username
23
- ss_sid = ss_name + "@" + domain
24
-
25
- puts "Connecting to Xmpp Server"
26
- client = Jabber::Client.new(Jabber::JID.new(ss_sid))
27
- client.connect
28
- puts "Authentication..."
29
- client.auth(password)
30
- puts "Connected to Xmpp Server"
31
-
32
- puts "Remove all rosters"
33
- msg = Jabber::Message::new(ss_sid, "SynchronizeRosters")
34
- msg.type=:chat
35
- client.send(msg)
36
-
37
-
38
- puts "Populate rosters"
39
- users = User.all
40
- checkedUsers = []
41
-
42
- users.each do |user|
43
- checkedUsers << user.slug
44
- contacts = user.contact_actors(:type=>:user)
45
- contacts.each do |contact|
46
- unless checkedUsers.include?(contact.slug)
47
- user_sid = user.slug + "@" + domain
48
- buddy_sid = contact.slug + "@" + domain
49
- msg = Jabber::Message::new(ss_sid, "SetRosterForBidirectionalTie&" + user_sid + "&" + buddy_sid + "&" + user.name + "&" + contact.name)
50
- msg.type=:chat
51
- client.send(msg)
52
- end
53
- end
54
- end
55
-
56
- puts "Synchronization complete"
57
- puts "Closing connection"
58
- client.close()
59
- puts "Connection closing"
60
-
18
+ SocialStream::Presence::XmppServerOrder::synchronize_rosters
19
+ puts "Rosters Synchronization complete"
61
20
  end
62
21
  end
63
22
  end
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.files = `git ls-files`.split("\n")
12
12
 
13
13
  # Gem dependencies
14
- s.add_runtime_dependency('social_stream-base', '~> 0.9.22')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.3.3')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.9.23')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.4.0')
16
16
  s.add_runtime_dependency('social_stream-events', '~> 0.0.15')
17
17
 
18
18
  # Development Gem dependencies
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 11
9
- - 8
10
- version: 0.11.8
8
+ - 12
9
+ - 0
10
+ version: 0.12.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - GING - DIT - UPM
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-19 00:00:00 +02:00
19
+ date: 2011-10-28 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,12 +27,12 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- hash: 23
30
+ hash: 21
31
31
  segments:
32
32
  - 0
33
33
  - 9
34
- - 22
35
- version: 0.9.22
34
+ - 23
35
+ version: 0.9.23
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
@@ -43,12 +43,12 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- hash: 21
46
+ hash: 15
47
47
  segments:
48
48
  - 0
49
- - 3
50
- - 3
51
- version: 0.3.3
49
+ - 4
50
+ - 0
51
+ version: 0.4.0
52
52
  type: :runtime
53
53
  version_requirements: *id002
54
54
  - !ruby/object:Gem::Dependency
@@ -267,6 +267,7 @@ files:
267
267
  - base/app/assets/images/btn/close.png
268
268
  - base/app/assets/images/btn/date.png
269
269
  - base/app/assets/images/btn/delete.png
270
+ - base/app/assets/images/btn/download.png
270
271
  - base/app/assets/images/btn/edit.png
271
272
  - base/app/assets/images/btn/error.png
272
273
  - base/app/assets/images/btn/facebook.png
@@ -682,7 +683,6 @@ files:
682
683
  - base/lib/social_stream/d3.rb
683
684
  - base/lib/social_stream/migrations/base.rb
684
685
  - base/lib/social_stream/migrations/components.rb
685
- - base/lib/social_stream/migrations/finder.rb
686
686
  - base/lib/social_stream/models/object.rb
687
687
  - base/lib/social_stream/models/subject.rb
688
688
  - base/lib/social_stream/models/supertype.rb
@@ -856,7 +856,8 @@ files:
856
856
  - documents/app/assets/images/btn/document.png
857
857
  - documents/app/assets/javascripts/documents.js.erb
858
858
  - documents/app/assets/javascripts/social_stream-documents.js
859
- - documents/app/assets/stylesheets/documents.css
859
+ - documents/app/assets/stylesheets/documents.css.scss
860
+ - documents/app/assets/stylesheets/show.css.scss
860
861
  - documents/app/assets/stylesheets/social_stream-documents.css
861
862
  - documents/app/controllers/audios_controller.rb
862
863
  - documents/app/controllers/common_documents_controller.rb
@@ -873,6 +874,7 @@ files:
873
874
  - documents/app/views/audios/_audio_global_search.html.erb
874
875
  - documents/app/views/audios/_audio_processed.html.erb
875
876
  - documents/app/views/audios/_audio_processing.html.erb
877
+ - documents/app/views/audios/_audio_show.html.erb
876
878
  - documents/app/views/audios/_audio_with_details.html.erb
877
879
  - documents/app/views/audios/_mediapreviews.html.erb
878
880
  - documents/app/views/audios/_new.html.erb
@@ -880,10 +882,13 @@ files:
880
882
  - documents/app/views/audios/index.html.erb
881
883
  - documents/app/views/audios/index.js.erb
882
884
  - documents/app/views/audios/show.html.erb
883
- - documents/app/views/common-documents/_index.html.erb
885
+ - documents/app/views/common_documents/_document_info.html.erb
886
+ - documents/app/views/common_documents/_index.html.erb
887
+ - documents/app/views/common_documents/_show.html.erb
884
888
  - documents/app/views/documents/_document.html.erb
885
889
  - documents/app/views/documents/_document_focus_search.html.erb
886
890
  - documents/app/views/documents/_document_global_search.html.erb
891
+ - documents/app/views/documents/_document_show.html.erb
887
892
  - documents/app/views/documents/_document_with_details.html.erb
888
893
  - documents/app/views/documents/_header.html.erb
889
894
  - documents/app/views/documents/_new_activity.html.erb
@@ -897,18 +902,19 @@ files:
897
902
  - documents/app/views/pictures/_picture.html.erb
898
903
  - documents/app/views/pictures/_picture_focus_search.html.erb
899
904
  - documents/app/views/pictures/_picture_global_search.html.erb
905
+ - documents/app/views/pictures/_picture_show.html.erb
900
906
  - documents/app/views/pictures/_picture_with_details.html.erb
901
907
  - documents/app/views/pictures/destroy.js.erb
902
908
  - documents/app/views/pictures/index.html.erb
903
909
  - documents/app/views/pictures/index.js.erb
904
910
  - documents/app/views/pictures/show.html.erb
905
- - documents/app/views/toolbar/_uploads_menu.html.erb
906
911
  - documents/app/views/videos/_new.html.erb
907
912
  - documents/app/views/videos/_video.html.erb
908
913
  - documents/app/views/videos/_video_focus_search.html.erb
909
914
  - documents/app/views/videos/_video_global_search.html.erb
910
915
  - documents/app/views/videos/_video_processed.html.erb
911
916
  - documents/app/views/videos/_video_processing.html.erb
917
+ - documents/app/views/videos/_video_show.html.erb
912
918
  - documents/app/views/videos/_video_with_details.html.erb
913
919
  - documents/app/views/videos/destroy.js.erb
914
920
  - documents/app/views/videos/index.html.erb
@@ -1143,23 +1149,20 @@ files:
1143
1149
  - presence/config/routes.rb
1144
1150
  - presence/db/migrate/20110711111408_add_connected_column_to_user.rb
1145
1151
  - presence/db/migrate/20110928135031_add_status_column_to_user.rb
1146
- - presence/ejabberd/conf/ejabberd.cfg
1147
- - presence/ejabberd/conf/ejabberdctl.cfg
1148
- - presence/ejabberd/conf/inetrc
1149
- - presence/ejabberd/conf/ssconfig.cfg
1152
+ - presence/ejabberd/conf/ejabberd_example.cfg
1153
+ - presence/ejabberd/conf/ssconfig_example.cfg
1150
1154
  - presence/ejabberd/ejabberd_scripts/authentication_script
1151
- - presence/ejabberd/ejabberd_scripts/authentication_script_org
1152
- - presence/ejabberd/ejabberd_scripts/compile_module
1155
+ - presence/ejabberd/ejabberd_scripts/development_scripts/compile_module
1156
+ - presence/ejabberd/ejabberd_scripts/development_scripts/generate_random_password
1157
+ - presence/ejabberd/ejabberd_scripts/development_scripts/kill_authentication_script.sh
1158
+ - presence/ejabberd/ejabberd_scripts/development_scripts/reset_logs.sh
1159
+ - presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
1160
+ - presence/ejabberd/ejabberd_scripts/development_scripts/start_ejabberd.sh
1161
+ - presence/ejabberd/ejabberd_scripts/development_scripts/stop_ejabberd.sh
1153
1162
  - presence/ejabberd/ejabberd_scripts/emanagement
1154
- - presence/ejabberd/ejabberd_scripts/generate_random_password
1155
- - presence/ejabberd/ejabberd_scripts/kill_authentication_script.sh
1156
1163
  - presence/ejabberd/ejabberd_scripts/reset_connection_script
1157
- - presence/ejabberd/ejabberd_scripts/reset_logs.sh
1158
1164
  - presence/ejabberd/ejabberd_scripts/set_connection_script
1159
1165
  - presence/ejabberd/ejabberd_scripts/set_presence_script
1160
- - presence/ejabberd/ejabberd_scripts/show_config.sh
1161
- - presence/ejabberd/ejabberd_scripts/start_ejabberd.sh
1162
- - presence/ejabberd/ejabberd_scripts/stop_ejabberd.sh
1163
1166
  - presence/ejabberd/ejabberd_scripts/synchronize_presence_script
1164
1167
  - presence/ejabberd/ejabberd_scripts/unset_connection_script
1165
1168
  - presence/ejabberd/mod_admin_extra/mod_admin_extra.beam
@@ -1173,6 +1176,7 @@ files:
1173
1176
  - presence/lib/social_stream/presence/engine.rb
1174
1177
  - presence/lib/social_stream/presence/models/buddy_manager.rb
1175
1178
  - presence/lib/social_stream/presence/version.rb
1179
+ - presence/lib/social_stream/presence/xmpp_server_order.rb
1176
1180
  - presence/lib/tasks/presence/synchronize.rake
1177
1181
  - presence/social_stream-presence.gemspec
1178
1182
  - presence/spec/demo/.gitignore
@@ -1,20 +0,0 @@
1
- module SocialStream
2
- module Migrations
3
- # Searches for migrations in a gem and requires them.
4
- # Example:
5
- #
6
- # MigrationFinder.new 'acts-as-taggable-on',
7
- # ["generators", "acts_as_taggable_on", "migration", "templates", "active_record", "migration"]
8
- # ActsAsTaggableOnMigration.up
9
- class Finder
10
- def initialize gem, path
11
- finder = Gem::GemPathSearcher.new
12
- taggable_spec = finder.find(gem)
13
- taggable_migration = finder.matching_files(taggable_spec,
14
- File.join(*path)).first
15
-
16
- require taggable_migration
17
- end
18
- end
19
- end
20
- end
@@ -1,45 +0,0 @@
1
- <% content_for :title do %>
2
- <%= profile_subject.name %>
3
- <% end %>
4
-
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
8
-
9
- <%if profile_subject_is_current?%>
10
- <%= location(
11
- link_to(t(controller.controller_name.singularize + '.title'), polymorphic_path(controller.controller_name),:remote => true)
12
- ) %>
13
- <% toolbar %>
14
- <%else%>
15
- <%= location(
16
- link_to(profile_subject.name, polymorphic_path(profile_subject),:remote => true),
17
- link_to(t(controller.controller_name.singularize + '.title'), polymorphic_path([profile_subject, controller.controller_name]),:remote => true)
18
- ) %>
19
- <% toolbar :profile => profile_subject %>
20
- <%end%>
21
-
22
-
23
- <div class="attachment_section_header">
24
- <h3><%= profile_subject_is_current? ? t(controller.controller_name.singularize + '.mine') : t(controller.controller_name.singularize + '.not_mine') %></h3>
25
- </div>
26
- <% @activities.each do |a| %>
27
- <% document = a.activity_objects.first.document %>
28
- <div class="attachment_tile">
29
- <div class="attachment_tile_thumb">
30
- <%= link_to thumb_for(document,48),
31
- {:controller => "documents", :action => "download", :id => document},
32
- :type => document.type,
33
- :title => document.file_file_name,
34
- :path => document_path(document) %>
35
- </div>
36
-
37
- <div class="attachment_tile_text">
38
- <%= link_to document.file_file_name,
39
- {:controller => "documents", :action => "download", :id => document},
40
- :alt => document.file_file_name,
41
- :type => document.type,
42
- :path => document_path(document) %>
43
- </div>
44
- </div>
45
- <% end %>
@@ -1,21 +0,0 @@
1
- <li>
2
- <%= link_to( image_tag("btn/btn_resource.png",:class =>"menu_icon")+t('resource.title'),"#") %>
3
- <ul>
4
- <li>
5
- <%= link_to( image_tag("btn/btn_document.png",
6
- :class => "menu_icon")+t('document.title'), documents_path) %>
7
- </li>
8
- <li>
9
- <%= link_to( image_tag("btn/btn_gallery.png",
10
- :class => "menu_icon")+t('picture.title'), pictures_path) %>
11
- </li>
12
- <li>
13
- <%= link_to( image_tag("btn/btn_video.png",
14
- :class => "menu_icon")+t('video.title'), videos_path) %>
15
- </li>
16
- <li>
17
- <%= link_to( image_tag("btn/btn_audio.png",
18
- :class => "menu_icon")+t('audio.title'), audios_path) %>
19
- </li>
20
- </ul>
21
- </li>