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.
Files changed (97) hide show
  1. data/base/app/assets/stylesheets/base.css.scss +2 -1
  2. data/base/app/assets/stylesheets/footer.css.scss +1 -1
  3. data/base/app/assets/stylesheets/header.css.scss +3 -3
  4. data/base/app/assets/stylesheets/messages.css.scss +1 -0
  5. data/base/app/helpers/subjects_helper.rb +1 -1
  6. data/base/app/models/activity.rb +1 -4
  7. data/base/app/views/message_mailer/new_message_email.html.erb +1 -1
  8. data/base/app/views/message_mailer/new_message_email.text.erb +1 -1
  9. data/base/app/views/message_mailer/reply_message_email.html.erb +1 -1
  10. data/base/app/views/message_mailer/reply_message_email.text.erb +1 -1
  11. data/base/app/views/notification_mailer/new_notification_email.html.erb +5 -11
  12. data/base/app/views/notification_mailer/new_notification_email.text.erb +3 -2
  13. data/base/app/views/notifications/_notification.html.erb +2 -4
  14. data/base/app/views/notifications/activities/_follow.html.erb +10 -0
  15. data/base/app/views/notifications/activities/_follow.text.erb +8 -0
  16. data/base/app/views/notifications/activities/_like.html.erb +30 -0
  17. data/base/app/views/notifications/activities/_like.text.erb +23 -0
  18. data/base/app/views/notifications/activities/_make-friend.html.erb +10 -0
  19. data/base/app/views/notifications/activities/_make-friend.text.erb +7 -0
  20. data/base/app/views/notifications/activities/_post.html.erb +22 -0
  21. data/base/app/views/notifications/activities/_post.text.erb +17 -0
  22. data/base/app/views/notifications/activities/_update.html.erb +18 -0
  23. data/base/app/views/notifications/activities/_update.text.erb +15 -0
  24. data/base/app/views/notifications/index.js.erb +1 -1
  25. data/base/config/locales/en.yml +29 -13
  26. data/base/config/locales/es.yml +29 -13
  27. data/base/lib/mailboxer/notification_decoder.rb +11 -9
  28. data/base/lib/social_stream/base/version.rb +1 -1
  29. data/base/spec/factories/activity.rb +25 -0
  30. data/documents/app/assets/javascripts/documents.js.erb +12 -8
  31. data/documents/app/assets/stylesheets/show.css.scss +5 -2
  32. data/documents/app/views/common/_document_info.html.erb +34 -28
  33. data/documents/app/views/common/_edit_form.html.erb +2 -2
  34. data/documents/config/locales/en.yml +12 -3
  35. data/documents/config/locales/es.yml +11 -2
  36. data/documents/lib/social_stream/documents/version.rb +1 -1
  37. data/documents/social_stream-documents.gemspec +1 -1
  38. data/events/app/assets/javascripts/schedule.js +11 -11
  39. data/events/app/controllers/agendas_controller.rb +2 -2
  40. data/events/app/controllers/events_controller.rb +0 -4
  41. data/events/app/controllers/sessions_controller.rb +47 -34
  42. data/events/app/models/agenda.rb +5 -5
  43. data/events/app/models/event.rb +22 -13
  44. data/events/app/models/session.rb +1 -1
  45. data/events/app/views/agendas/_schedule.html.erb +2 -2
  46. data/events/app/views/agendas/_show.html.erb +1 -1
  47. data/events/app/views/events/_event.html.erb +4 -4
  48. data/events/app/views/events/_sessions_edit.html.erb +6 -6
  49. data/events/app/views/events/new.html.erb +1 -0
  50. data/events/app/views/sessions/_form.html.erb +4 -4
  51. data/events/app/views/sessions/_new.html.erb +2 -2
  52. data/events/app/views/sessions/_show.html.erb +2 -2
  53. data/events/config/locales/en.yml +17 -0
  54. data/events/config/locales/es.yml +17 -0
  55. data/events/db/migrate/20110910161707_create_social_stream_events.rb +4 -4
  56. data/events/db/migrate/20111102145626_add_more_fields_to_events.rb +1 -1
  57. data/events/db/migrate/20111104165944_add_more_fields_to_sessions.rb +13 -0
  58. data/events/db/migrate/20111104182420_add_details_to_events.rb +44 -0
  59. data/events/lib/social_stream/events/version.rb +1 -1
  60. data/events/social_stream-events.gemspec +1 -1
  61. data/events/vendor/assets/javascripts/jquery.ad-gallery.js +7 -7
  62. data/events/vendor/assets/javascripts/jquery.ad-gallery.pack.js +1 -1
  63. data/lib/social_stream/version.rb +1 -1
  64. data/presence/app/assets/images/emoticons/beer.png +0 -0
  65. data/presence/app/assets/images/emoticons/clock.png +0 -0
  66. data/presence/app/assets/images/emoticons/face-raspberry.png +0 -0
  67. data/presence/app/assets/images/emoticons/face-sad.png +0 -0
  68. data/presence/app/assets/images/emoticons/face-smile.png +0 -0
  69. data/presence/app/assets/images/emoticons/face-tired.png +0 -0
  70. data/presence/app/assets/images/emoticons/face-wink.png +0 -0
  71. data/presence/app/assets/images/emoticons/present.png +0 -0
  72. data/presence/app/assets/images/emoticons/rain.png +0 -0
  73. data/presence/app/assets/images/emoticons/sun.png +0 -0
  74. data/presence/app/assets/javascripts/xmpp_client.js.erb +417 -38
  75. data/presence/app/assets/stylesheets/chat.css +20 -0
  76. data/presence/app/helpers/xmpp_helper.rb +1 -1
  77. data/presence/app/views/xmpp/_chat.html.erb +2 -0
  78. data/presence/app/views/xmpp/_chat_off.html.erb +13 -5
  79. data/presence/lib/social_stream/presence/engine.rb +1 -1
  80. data/presence/lib/social_stream/presence/version.rb +1 -1
  81. data/social_stream.gemspec +3 -3
  82. metadata +36 -28
  83. data/base/app/assets/images/boxy/boxy-ne.png +0 -0
  84. data/base/app/assets/images/boxy/boxy-nw.png +0 -0
  85. data/base/app/assets/images/boxy/boxy-se.png +0 -0
  86. data/base/app/assets/images/boxy/boxy-sw.png +0 -0
  87. data/base/app/mailers/notification_mailer.rb +0 -34
  88. data/base/app/views/notifications/activities/_follow_body.html.erb +0 -2
  89. data/base/app/views/notifications/activities/_follow_subject.html.erb +0 -5
  90. data/base/app/views/notifications/activities/_like_body.html.erb +0 -5
  91. data/base/app/views/notifications/activities/_like_subject.html.erb +0 -9
  92. data/base/app/views/notifications/activities/_make-friend_body.html.erb +0 -2
  93. data/base/app/views/notifications/activities/_make-friend_subject.html.erb +0 -5
  94. data/base/app/views/notifications/activities/_post_body.html.erb +0 -6
  95. data/base/app/views/notifications/activities/_post_subject.html.erb +0 -6
  96. data/base/app/views/notifications/activities/_update_body.html.erb +0 -5
  97. data/base/app/views/notifications/activities/_update_subject.html.erb +0 -5
@@ -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.27')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.4.3')
16
- s.add_runtime_dependency('social_stream-events', '~> 0.0.17')
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: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 4
10
- version: 0.12.4
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-08 00:00:00 +01:00
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: 13
30
+ hash: 3
31
31
  segments:
32
32
  - 0
33
33
  - 9
34
- - 27
35
- version: 0.9.27
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: 9
46
+ hash: 7
47
47
  segments:
48
48
  - 0
49
49
  - 4
50
- - 3
51
- version: 0.4.3
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: 61
62
+ hash: 59
63
63
  segments:
64
64
  - 0
65
65
  - 0
66
- - 17
67
- version: 0.0.17
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/_follow_body.html.erb
586
- - base/app/views/notifications/activities/_follow_subject.html.erb
587
- - base/app/views/notifications/activities/_like_body.html.erb
588
- - base/app/views/notifications/activities/_like_subject.html.erb
589
- - base/app/views/notifications/activities/_make-friend_body.html.erb
590
- - base/app/views/notifications/activities/_make-friend_subject.html.erb
591
- - base/app/views/notifications/activities/_post_body.html.erb
592
- - base/app/views/notifications/activities/_post_subject.html.erb
593
- - base/app/views/notifications/activities/_update_body.html.erb
594
- - base/app/views/notifications/activities/_update_subject.html.erb
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
@@ -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,5 +0,0 @@
1
- <% if activity.receiver.subject.is_a?(User) %>
2
- <%= t('notification.added.user') %>
3
- <% else %>
4
- <%= t('notification.added.other') %>
5
- <% end %>
@@ -1,5 +0,0 @@
1
- <% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
2
- %{look}
3
- <% else %>
4
- "%{object.text}"
5
- <% 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 %>
@@ -1,5 +0,0 @@
1
- <% if activity.receiver.subject.is_a?(User) %>
2
- <%= t('notification.makefriend.user') %>
3
- <% else %>
4
- <%= t('notification.makefriend.other') %>
5
- <% end %>
@@ -1,6 +0,0 @@
1
- <% if activity.direct_object.respond_to? :text %>
2
- "%{object.text}"
3
- <%end%>
4
- <% if SocialStream.activity_forms.include? :document and activity.direct_object.is_a? Document %>
5
- %{object.image}
6
- <% end%>
@@ -1,6 +0,0 @@
1
- <% if activity.receiver.subject.is_a?(User) %>
2
- <%= t('notification.post.user') %>
3
- <% else %>
4
- <%= t('notification.post.other') %>
5
- <% end %>
6
-
@@ -1,5 +0,0 @@
1
- <% if activity.receiver.subject.is_a?(User) %>
2
- <%= t('notification.update.user') %>
3
- <% else %>
4
- <%= t('notification.update.other') %>
5
- <% end %>
@@ -1,5 +0,0 @@
1
- <% if activity.receiver.subject.is_a?(User) %>
2
- <%= t('notification.update.user') %>
3
- <% else %>
4
- <%= t('notification.update.other') %>
5
- <% end %>