social_stream 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- data/base/app/assets/stylesheets/base.css.scss +2 -1
- data/base/app/assets/stylesheets/footer.css.scss +1 -1
- data/base/app/assets/stylesheets/header.css.scss +3 -3
- data/base/app/assets/stylesheets/messages.css.scss +1 -0
- data/base/app/helpers/subjects_helper.rb +1 -1
- data/base/app/models/activity.rb +1 -4
- data/base/app/views/message_mailer/new_message_email.html.erb +1 -1
- data/base/app/views/message_mailer/new_message_email.text.erb +1 -1
- data/base/app/views/message_mailer/reply_message_email.html.erb +1 -1
- data/base/app/views/message_mailer/reply_message_email.text.erb +1 -1
- data/base/app/views/notification_mailer/new_notification_email.html.erb +5 -11
- data/base/app/views/notification_mailer/new_notification_email.text.erb +3 -2
- data/base/app/views/notifications/_notification.html.erb +2 -4
- data/base/app/views/notifications/activities/_follow.html.erb +10 -0
- data/base/app/views/notifications/activities/_follow.text.erb +8 -0
- data/base/app/views/notifications/activities/_like.html.erb +30 -0
- data/base/app/views/notifications/activities/_like.text.erb +23 -0
- data/base/app/views/notifications/activities/_make-friend.html.erb +10 -0
- data/base/app/views/notifications/activities/_make-friend.text.erb +7 -0
- data/base/app/views/notifications/activities/_post.html.erb +22 -0
- data/base/app/views/notifications/activities/_post.text.erb +17 -0
- data/base/app/views/notifications/activities/_update.html.erb +18 -0
- data/base/app/views/notifications/activities/_update.text.erb +15 -0
- data/base/app/views/notifications/index.js.erb +1 -1
- data/base/config/locales/en.yml +29 -13
- data/base/config/locales/es.yml +29 -13
- data/base/lib/mailboxer/notification_decoder.rb +11 -9
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/spec/factories/activity.rb +25 -0
- data/documents/app/assets/javascripts/documents.js.erb +12 -8
- data/documents/app/assets/stylesheets/show.css.scss +5 -2
- data/documents/app/views/common/_document_info.html.erb +34 -28
- data/documents/app/views/common/_edit_form.html.erb +2 -2
- data/documents/config/locales/en.yml +12 -3
- data/documents/config/locales/es.yml +11 -2
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/events/app/assets/javascripts/schedule.js +11 -11
- data/events/app/controllers/agendas_controller.rb +2 -2
- data/events/app/controllers/events_controller.rb +0 -4
- data/events/app/controllers/sessions_controller.rb +47 -34
- data/events/app/models/agenda.rb +5 -5
- data/events/app/models/event.rb +22 -13
- data/events/app/models/session.rb +1 -1
- data/events/app/views/agendas/_schedule.html.erb +2 -2
- data/events/app/views/agendas/_show.html.erb +1 -1
- data/events/app/views/events/_event.html.erb +4 -4
- data/events/app/views/events/_sessions_edit.html.erb +6 -6
- data/events/app/views/events/new.html.erb +1 -0
- data/events/app/views/sessions/_form.html.erb +4 -4
- data/events/app/views/sessions/_new.html.erb +2 -2
- data/events/app/views/sessions/_show.html.erb +2 -2
- data/events/config/locales/en.yml +17 -0
- data/events/config/locales/es.yml +17 -0
- data/events/db/migrate/20110910161707_create_social_stream_events.rb +4 -4
- data/events/db/migrate/20111102145626_add_more_fields_to_events.rb +1 -1
- data/events/db/migrate/20111104165944_add_more_fields_to_sessions.rb +13 -0
- data/events/db/migrate/20111104182420_add_details_to_events.rb +44 -0
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/events/vendor/assets/javascripts/jquery.ad-gallery.js +7 -7
- data/events/vendor/assets/javascripts/jquery.ad-gallery.pack.js +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/presence/app/assets/images/emoticons/beer.png +0 -0
- data/presence/app/assets/images/emoticons/clock.png +0 -0
- data/presence/app/assets/images/emoticons/face-raspberry.png +0 -0
- data/presence/app/assets/images/emoticons/face-sad.png +0 -0
- data/presence/app/assets/images/emoticons/face-smile.png +0 -0
- data/presence/app/assets/images/emoticons/face-tired.png +0 -0
- data/presence/app/assets/images/emoticons/face-wink.png +0 -0
- data/presence/app/assets/images/emoticons/present.png +0 -0
- data/presence/app/assets/images/emoticons/rain.png +0 -0
- data/presence/app/assets/images/emoticons/sun.png +0 -0
- data/presence/app/assets/javascripts/xmpp_client.js.erb +417 -38
- data/presence/app/assets/stylesheets/chat.css +20 -0
- data/presence/app/helpers/xmpp_helper.rb +1 -1
- data/presence/app/views/xmpp/_chat.html.erb +2 -0
- data/presence/app/views/xmpp/_chat_off.html.erb +13 -5
- data/presence/lib/social_stream/presence/engine.rb +1 -1
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/social_stream.gemspec +3 -3
- metadata +36 -28
- data/base/app/assets/images/boxy/boxy-ne.png +0 -0
- data/base/app/assets/images/boxy/boxy-nw.png +0 -0
- data/base/app/assets/images/boxy/boxy-se.png +0 -0
- data/base/app/assets/images/boxy/boxy-sw.png +0 -0
- data/base/app/mailers/notification_mailer.rb +0 -34
- data/base/app/views/notifications/activities/_follow_body.html.erb +0 -2
- data/base/app/views/notifications/activities/_follow_subject.html.erb +0 -5
- data/base/app/views/notifications/activities/_like_body.html.erb +0 -5
- data/base/app/views/notifications/activities/_like_subject.html.erb +0 -9
- data/base/app/views/notifications/activities/_make-friend_body.html.erb +0 -2
- data/base/app/views/notifications/activities/_make-friend_subject.html.erb +0 -5
- data/base/app/views/notifications/activities/_post_body.html.erb +0 -6
- data/base/app/views/notifications/activities/_post_subject.html.erb +0 -6
- data/base/app/views/notifications/activities/_update_body.html.erb +0 -5
- data/base/app/views/notifications/activities/_update_subject.html.erb +0 -5
data/social_stream.gemspec
CHANGED
@@ -11,9 +11,9 @@ 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.
|
15
|
-
s.add_runtime_dependency('social_stream-documents', '~> 0.4.
|
16
|
-
s.add_runtime_dependency('social_stream-events', '~> 0.0.
|
14
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.28')
|
15
|
+
s.add_runtime_dependency('social_stream-documents', '~> 0.4.4')
|
16
|
+
s.add_runtime_dependency('social_stream-events', '~> 0.0.18')
|
17
17
|
|
18
18
|
# Development Gem dependencies
|
19
19
|
#
|
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:
|
4
|
+
hash: 37
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 5
|
10
|
+
version: 0.12.5
|
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-11-
|
19
|
+
date: 2011-11-15 00:00:00 +01: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:
|
30
|
+
hash: 3
|
31
31
|
segments:
|
32
32
|
- 0
|
33
33
|
- 9
|
34
|
-
-
|
35
|
-
version: 0.9.
|
34
|
+
- 28
|
35
|
+
version: 0.9.28
|
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:
|
46
|
+
hash: 7
|
47
47
|
segments:
|
48
48
|
- 0
|
49
49
|
- 4
|
50
|
-
-
|
51
|
-
version: 0.4.
|
50
|
+
- 4
|
51
|
+
version: 0.4.4
|
52
52
|
type: :runtime
|
53
53
|
version_requirements: *id002
|
54
54
|
- !ruby/object:Gem::Dependency
|
@@ -59,12 +59,12 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - ~>
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
hash:
|
62
|
+
hash: 59
|
63
63
|
segments:
|
64
64
|
- 0
|
65
65
|
- 0
|
66
|
-
-
|
67
|
-
version: 0.0.
|
66
|
+
- 18
|
67
|
+
version: 0.0.18
|
68
68
|
type: :runtime
|
69
69
|
version_requirements: *id003
|
70
70
|
- !ruby/object:Gem::Dependency
|
@@ -209,10 +209,6 @@ files:
|
|
209
209
|
- base/app/assets/images/arrow-start.png
|
210
210
|
- base/app/assets/images/arrow.png
|
211
211
|
- base/app/assets/images/big-logo.png
|
212
|
-
- base/app/assets/images/boxy/boxy-ne.png
|
213
|
-
- base/app/assets/images/boxy/boxy-nw.png
|
214
|
-
- base/app/assets/images/boxy/boxy-se.png
|
215
|
-
- base/app/assets/images/boxy/boxy-sw.png
|
216
212
|
- base/app/assets/images/btn/1-facebook.png
|
217
213
|
- base/app/assets/images/btn/_notes/btn_certificates.png.mno
|
218
214
|
- base/app/assets/images/btn/activity.png
|
@@ -449,7 +445,6 @@ files:
|
|
449
445
|
- base/app/helpers/toolbar_helper.rb
|
450
446
|
- base/app/helpers/users_helper.rb
|
451
447
|
- base/app/mailers/invitation_mailer.rb
|
452
|
-
- base/app/mailers/notification_mailer.rb
|
453
448
|
- base/app/models/ability.rb
|
454
449
|
- base/app/models/activity.rb
|
455
450
|
- base/app/models/activity_object.rb
|
@@ -582,16 +577,16 @@ files:
|
|
582
577
|
- base/app/views/notification_mailer/new_notification_email.text.erb
|
583
578
|
- base/app/views/notifications/_index.html.erb
|
584
579
|
- base/app/views/notifications/_notification.html.erb
|
585
|
-
- base/app/views/notifications/activities/
|
586
|
-
- base/app/views/notifications/activities/
|
587
|
-
- base/app/views/notifications/activities/
|
588
|
-
- base/app/views/notifications/activities/
|
589
|
-
- base/app/views/notifications/activities/_make-
|
590
|
-
- base/app/views/notifications/activities/_make-
|
591
|
-
- base/app/views/notifications/activities/
|
592
|
-
- base/app/views/notifications/activities/
|
593
|
-
- base/app/views/notifications/activities/
|
594
|
-
- base/app/views/notifications/activities/
|
580
|
+
- base/app/views/notifications/activities/_follow.html.erb
|
581
|
+
- base/app/views/notifications/activities/_follow.text.erb
|
582
|
+
- base/app/views/notifications/activities/_like.html.erb
|
583
|
+
- base/app/views/notifications/activities/_like.text.erb
|
584
|
+
- base/app/views/notifications/activities/_make-friend.html.erb
|
585
|
+
- base/app/views/notifications/activities/_make-friend.text.erb
|
586
|
+
- base/app/views/notifications/activities/_post.html.erb
|
587
|
+
- base/app/views/notifications/activities/_post.text.erb
|
588
|
+
- base/app/views/notifications/activities/_update.html.erb
|
589
|
+
- base/app/views/notifications/activities/_update.text.erb
|
595
590
|
- base/app/views/notifications/index.html.erb
|
596
591
|
- base/app/views/notifications/index.js.erb
|
597
592
|
- base/app/views/objects/_destroy.js.erb
|
@@ -1066,6 +1061,7 @@ files:
|
|
1066
1061
|
- events/app/views/events/index.html.erb
|
1067
1062
|
- events/app/views/events/manage.html.erb
|
1068
1063
|
- events/app/views/events/manage.js.erb
|
1064
|
+
- events/app/views/events/new.html.erb
|
1069
1065
|
- events/app/views/events/show.html.erb
|
1070
1066
|
- events/app/views/frontpage/_caracteristics.html.erb
|
1071
1067
|
- events/app/views/frontpage/index.html.erb
|
@@ -1089,6 +1085,8 @@ files:
|
|
1089
1085
|
- events/config/routes.rb
|
1090
1086
|
- events/db/migrate/20110910161707_create_social_stream_events.rb
|
1091
1087
|
- events/db/migrate/20111102145626_add_more_fields_to_events.rb
|
1088
|
+
- events/db/migrate/20111104165944_add_more_fields_to_sessions.rb
|
1089
|
+
- events/db/migrate/20111104182420_add_details_to_events.rb
|
1092
1090
|
- events/lib/generators/social_stream/events/install_generator.rb
|
1093
1091
|
- events/lib/social_stream-events.rb
|
1094
1092
|
- events/lib/social_stream/events/engine.rb
|
@@ -1125,6 +1123,16 @@ files:
|
|
1125
1123
|
- presence/app/assets/audio/chat/onMessageAudio.mp3
|
1126
1124
|
- presence/app/assets/audio/chat/onMessageAudio.wav
|
1127
1125
|
- presence/app/assets/images/black_arrow3.png
|
1126
|
+
- presence/app/assets/images/emoticons/beer.png
|
1127
|
+
- presence/app/assets/images/emoticons/clock.png
|
1128
|
+
- presence/app/assets/images/emoticons/face-raspberry.png
|
1129
|
+
- presence/app/assets/images/emoticons/face-sad.png
|
1130
|
+
- presence/app/assets/images/emoticons/face-smile.png
|
1131
|
+
- presence/app/assets/images/emoticons/face-tired.png
|
1132
|
+
- presence/app/assets/images/emoticons/face-wink.png
|
1133
|
+
- presence/app/assets/images/emoticons/present.png
|
1134
|
+
- presence/app/assets/images/emoticons/rain.png
|
1135
|
+
- presence/app/assets/images/emoticons/sun.png
|
1128
1136
|
- presence/app/assets/images/status/available.png
|
1129
1137
|
- presence/app/assets/images/status/away.png
|
1130
1138
|
- presence/app/assets/images/status/dnd.png
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#OVERRING WARNING
|
2
|
-
#We must override the NotificationMailer from Mailboxer to change the new_notification_email method
|
3
|
-
#refer to it for more info
|
4
|
-
#NOTE: There is just few lines different from original Mailboxer NotificationMailer. Please maintain it
|
5
|
-
#updated for correct behaviour
|
6
|
-
class NotificationMailer < ActionMailer::Base
|
7
|
-
default :from => Mailboxer.default_from
|
8
|
-
#Sends and email for indicating a new notification to a receiver.
|
9
|
-
#It calls new_notification_email.
|
10
|
-
def send_email(notification,receiver)
|
11
|
-
new_notification_email(notification,receiver)
|
12
|
-
end
|
13
|
-
|
14
|
-
include ActionView::Helpers::SanitizeHelper
|
15
|
-
#DIFFERENT FROM ORIGINAL----------------------
|
16
|
-
include Mailboxer::NotificationDecoder
|
17
|
-
#END OF DIFFERENCE----------------------------
|
18
|
-
|
19
|
-
#Sends an email for indicating a new message for the receiver
|
20
|
-
def new_notification_email(notification,receiver)
|
21
|
-
@notification = notification
|
22
|
-
@receiver = receiver
|
23
|
-
#DIFFERENT FROM ORIGINAL----------------------
|
24
|
-
subject = notification.subject.to_s
|
25
|
-
subject = decode_basic_notification(subject,notification.notified_object)
|
26
|
-
subject = subject.gsub(/\n/,'')
|
27
|
-
#END OF DIFFERENCE----------------------------
|
28
|
-
subject = strip_tags(subject) unless subject.html_safe?
|
29
|
-
mail(:to => receiver.send(Mailboxer.email_method,notification), :subject => t('mailboxer.notification_mailer.subject', :subject => subject)) do |format|
|
30
|
-
format.text {render __method__}
|
31
|
-
format.html {render __method__}
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
|
2
|
-
<%= t('notification.fan')%>
|
3
|
-
<% else %>
|
4
|
-
<% if activity.receiver.subject.is_a?(User) %>
|
5
|
-
<%= t('notification.like.user') %>
|
6
|
-
<% else %>
|
7
|
-
<%= t('notification.like.other') %>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|