social_stream-base 0.10.5 → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -94,7 +94,9 @@
94
94
  color: $main-color;
95
95
  padding: 5px 5px 5px 5px;
96
96
  width:549px;
97
- height:40px;
97
+ min-height:40px;
98
+ max-height:60px;
99
+ overflow: hidden;
98
100
  border-bottom:1px solid $text-over-main;
99
101
  }
100
102
  .conversations .conversation .content_left {
@@ -131,7 +133,7 @@
131
133
  .conversations .conversation .notification {
132
134
  float:left;
133
135
  width:5px;
134
- height:100%;
136
+ height: 45px;
135
137
  margin: 0px 5px 0px 0px;
136
138
  }
137
139
  .conversations .unread .notification {
@@ -56,4 +56,9 @@ class ActivityObject < ActiveRecord::Base
56
56
  def post_activity
57
57
  activities.includes(:activity_verb).where('activity_verbs.name' => 'post').first
58
58
  end
59
+
60
+ # Does this {ActivityObject} has {Actor}?
61
+ def acts_as_actor?
62
+ object_type == "Actor"
63
+ end
59
64
  end
@@ -1,4 +1,4 @@
1
- <% if activity_object.object.is_a?(Actor) || activity_object.object.class.ancestors.include?(SocialStream::Models::Subject) %>
1
+ <% if activity_object.acts_as_actor? %>
2
2
  <div class="block">
3
3
  <%= model_with_details activity_object.object %>
4
4
  </div>
@@ -1,10 +1,12 @@
1
1
  <% content_for :title do %>
2
- <%= @group.name%>
2
+ <%= @group.name+" | "+t('site.name') %>
3
3
  <% end %>
4
4
 
5
- <% if @group.profile.description? %>
6
- <% content_for :description do %>
5
+ <% content_for :description do %>
6
+ <% if @group.profile.description? %>
7
7
  <%= @group.profile.description%>
8
+ <% else %>
9
+ <%= @group.name+" "+t('profile.is_on') + " "+ t('site.name') %>
8
10
  <% end %>
9
11
  <% end %>
10
12
 
@@ -1,4 +1,4 @@
1
- <% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
1
+ <% if activity.direct_object.acts_as_actor? %>
2
2
  <div class="subject">
3
3
  <%= raw t('notification.fan',
4
4
  :sender => link_to(truncate_name(activity.sender.name), polymorphic_url(activity.sender.subject)),
@@ -1,4 +1,4 @@
1
- <% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
1
+ <% if activity.direct_object.acts_as_actor? %>
2
2
  <%= raw t('notification.fan',
3
3
  :sender => truncate_name(activity.sender.name),
4
4
  :whose => t('notification.whose.'+ activity.receiver.subject.class.to_s.underscore,
@@ -1,4 +1,4 @@
1
- <% author = post.post_activity.sender_subject %>
1
+ <% author = post.author_subject %>
2
2
  <div class="model_with_details">
3
3
  <div class="logo">
4
4
  <%= link_to (image_tag(author.logo.url , :size => "50x50", :alt => author.name )), author %>
@@ -15,4 +15,4 @@
15
15
  <br>
16
16
  </div>
17
17
  </div>
18
- </div>
18
+ </div>
@@ -1,10 +1,13 @@
1
1
  <% content_for :title do %>
2
- <%= @user.name%>
2
+ <%= @user.name+" | "+t('site.name') %>
3
3
  <% end %>
4
4
 
5
- <% if @user.profile.description? %>
6
- <% content_for :description do %>
5
+
6
+ <% content_for :description do %>
7
+ <% if @user.profile.description? %>
7
8
  <%= @user.profile.description%>
9
+ <% else %>
10
+ <%= @user.name+" "+t('profile.is_on') + " "+ t('site.name') %>
8
11
  <% end %>
9
12
  <% end %>
10
13
 
@@ -318,12 +318,14 @@ en:
318
318
  input: "What are you doing?"
319
319
  name: "post"
320
320
  one: "a post"
321
- title: "Posts"
321
+ title: "Posts"
322
322
  preposition:
323
323
  and: "and"
324
+ on: "on"
324
325
  profile:
325
326
  one: "Profile"
326
327
  age: "Age"
328
+ is_on: "is on"
327
329
  must_be_signed_id: "You must be signed in"
328
330
  group:
329
331
  about: "About us"
@@ -324,6 +324,7 @@ es:
324
324
  profile:
325
325
  one: "Perfil"
326
326
  age: "Edad"
327
+ is_on: "esta en"
327
328
  must_be_signed_id: "Debes identificarte"
328
329
  group:
329
330
  about: "Sobre nosotros/as"
@@ -37,16 +37,3 @@ group:
37
37
  name: partner
38
38
  permissions:
39
39
  - [ read, activity ]
40
-
41
- event:
42
- member:
43
- name: member
44
- permissions:
45
- - [ represent ]
46
- - [ create, activity ]
47
- - [ read, activity ]
48
- - [ read, tie ]
49
- partner:
50
- name: partner
51
- permissions:
52
- - [ read, activity ]
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.10.5".freeze
3
+ VERSION = "0.10.6".freeze
4
4
  end
5
5
  end
@@ -35,8 +35,6 @@ Gem::Specification.new do |s|
35
35
  s.add_runtime_dependency('kaminari', '~> 0.12.4')
36
36
  # OAuth client
37
37
  s.add_runtime_dependency('omniauth','~> 0.2.6')
38
- # OAuth provider
39
- s.add_runtime_dependency('oauth-plugin','~> 0.4.0.pre1')
40
38
  # Messages
41
39
  s.add_runtime_dependency('mailboxer','~> 0.5.4')
42
40
  # Tagging
@@ -37,16 +37,3 @@ group:
37
37
  name: partner
38
38
  permissions:
39
39
  - [ read, activity ]
40
-
41
- event:
42
- member:
43
- name: member
44
- permissions:
45
- - [ represent ]
46
- - [ create, activity ]
47
- - [ read, activity ]
48
- - [ read, tie ]
49
- partner:
50
- name: partner
51
- permissions:
52
- - [ read, activity ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 5
10
- version: 0.10.5
9
+ - 6
10
+ version: 0.10.6
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-12-05 00:00:00 +01:00
19
+ date: 2011-12-09 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -195,28 +195,10 @@ dependencies:
195
195
  version: 0.2.6
196
196
  type: :runtime
197
197
  version_requirements: *id011
198
- - !ruby/object:Gem::Dependency
199
- name: oauth-plugin
200
- prerelease: false
201
- requirement: &id012 !ruby/object:Gem::Requirement
202
- none: false
203
- requirements:
204
- - - ~>
205
- - !ruby/object:Gem::Version
206
- hash: -223651605
207
- segments:
208
- - 0
209
- - 4
210
- - 0
211
- - pre
212
- - 1
213
- version: 0.4.0.pre1
214
- type: :runtime
215
- version_requirements: *id012
216
198
  - !ruby/object:Gem::Dependency
217
199
  name: mailboxer
218
200
  prerelease: false
219
- requirement: &id013 !ruby/object:Gem::Requirement
201
+ requirement: &id012 !ruby/object:Gem::Requirement
220
202
  none: false
221
203
  requirements:
222
204
  - - ~>
@@ -228,11 +210,11 @@ dependencies:
228
210
  - 4
229
211
  version: 0.5.4
230
212
  type: :runtime
231
- version_requirements: *id013
213
+ version_requirements: *id012
232
214
  - !ruby/object:Gem::Dependency
233
215
  name: acts-as-taggable-on
234
216
  prerelease: false
235
- requirement: &id014 !ruby/object:Gem::Requirement
217
+ requirement: &id013 !ruby/object:Gem::Requirement
236
218
  none: false
237
219
  requirements:
238
220
  - - ~>
@@ -244,11 +226,11 @@ dependencies:
244
226
  - 6
245
227
  version: 2.0.6
246
228
  type: :runtime
247
- version_requirements: *id014
229
+ version_requirements: *id013
248
230
  - !ruby/object:Gem::Dependency
249
231
  name: formtastic
250
232
  prerelease: false
251
- requirement: &id015 !ruby/object:Gem::Requirement
233
+ requirement: &id014 !ruby/object:Gem::Requirement
252
234
  none: false
253
235
  requirements:
254
236
  - - ~>
@@ -260,11 +242,11 @@ dependencies:
260
242
  - 3
261
243
  version: 1.2.3
262
244
  type: :runtime
263
- version_requirements: *id015
245
+ version_requirements: *id014
264
246
  - !ruby/object:Gem::Dependency
265
247
  name: simple-navigation
266
248
  prerelease: false
267
- requirement: &id016 !ruby/object:Gem::Requirement
249
+ requirement: &id015 !ruby/object:Gem::Requirement
268
250
  none: false
269
251
  requirements:
270
252
  - - ">="
@@ -274,11 +256,11 @@ dependencies:
274
256
  - 0
275
257
  version: "0"
276
258
  type: :runtime
277
- version_requirements: *id016
259
+ version_requirements: *id015
278
260
  - !ruby/object:Gem::Dependency
279
261
  name: resque
280
262
  prerelease: false
281
- requirement: &id017 !ruby/object:Gem::Requirement
263
+ requirement: &id016 !ruby/object:Gem::Requirement
282
264
  none: false
283
265
  requirements:
284
266
  - - ~>
@@ -290,11 +272,11 @@ dependencies:
290
272
  - 1
291
273
  version: 1.17.1
292
274
  type: :runtime
293
- version_requirements: *id017
275
+ version_requirements: *id016
294
276
  - !ruby/object:Gem::Dependency
295
277
  name: modernizr-rails
296
278
  prerelease: false
297
- requirement: &id018 !ruby/object:Gem::Requirement
279
+ requirement: &id017 !ruby/object:Gem::Requirement
298
280
  none: false
299
281
  requirements:
300
282
  - - ~>
@@ -306,11 +288,11 @@ dependencies:
306
288
  - 6
307
289
  version: 2.0.6
308
290
  type: :runtime
309
- version_requirements: *id018
291
+ version_requirements: *id017
310
292
  - !ruby/object:Gem::Dependency
311
293
  name: thinking-sphinx
312
294
  prerelease: false
313
- requirement: &id019 !ruby/object:Gem::Requirement
295
+ requirement: &id018 !ruby/object:Gem::Requirement
314
296
  none: false
315
297
  requirements:
316
298
  - - ~>
@@ -322,11 +304,11 @@ dependencies:
322
304
  - 8
323
305
  version: 2.0.8
324
306
  type: :runtime
325
- version_requirements: *id019
307
+ version_requirements: *id018
326
308
  - !ruby/object:Gem::Dependency
327
309
  name: sass-rails
328
310
  prerelease: false
329
- requirement: &id020 !ruby/object:Gem::Requirement
311
+ requirement: &id019 !ruby/object:Gem::Requirement
330
312
  none: false
331
313
  requirements:
332
314
  - - ~>
@@ -338,11 +320,11 @@ dependencies:
338
320
  - 0
339
321
  version: 3.1.0
340
322
  type: :runtime
341
- version_requirements: *id020
323
+ version_requirements: *id019
342
324
  - !ruby/object:Gem::Dependency
343
325
  name: rails_autolink
344
326
  prerelease: false
345
- requirement: &id021 !ruby/object:Gem::Requirement
327
+ requirement: &id020 !ruby/object:Gem::Requirement
346
328
  none: false
347
329
  requirements:
348
330
  - - ~>
@@ -354,11 +336,11 @@ dependencies:
354
336
  - 4
355
337
  version: 1.0.4
356
338
  type: :runtime
357
- version_requirements: *id021
339
+ version_requirements: *id020
358
340
  - !ruby/object:Gem::Dependency
359
341
  name: capybara
360
342
  prerelease: false
361
- requirement: &id022 !ruby/object:Gem::Requirement
343
+ requirement: &id021 !ruby/object:Gem::Requirement
362
344
  none: false
363
345
  requirements:
364
346
  - - ~>
@@ -370,11 +352,11 @@ dependencies:
370
352
  - 9
371
353
  version: 0.3.9
372
354
  type: :development
373
- version_requirements: *id022
355
+ version_requirements: *id021
374
356
  - !ruby/object:Gem::Dependency
375
357
  name: sqlite3-ruby
376
358
  prerelease: false
377
- requirement: &id023 !ruby/object:Gem::Requirement
359
+ requirement: &id022 !ruby/object:Gem::Requirement
378
360
  none: false
379
361
  requirements:
380
362
  - - ">="
@@ -384,11 +366,11 @@ dependencies:
384
366
  - 0
385
367
  version: "0"
386
368
  type: :development
387
- version_requirements: *id023
369
+ version_requirements: *id022
388
370
  - !ruby/object:Gem::Dependency
389
371
  name: ruby-debug
390
372
  prerelease: false
391
- requirement: &id024 !ruby/object:Gem::Requirement
373
+ requirement: &id023 !ruby/object:Gem::Requirement
392
374
  none: false
393
375
  requirements:
394
376
  - - ">="
@@ -398,11 +380,11 @@ dependencies:
398
380
  - 0
399
381
  version: "0"
400
382
  type: :development
401
- version_requirements: *id024
383
+ version_requirements: *id023
402
384
  - !ruby/object:Gem::Dependency
403
385
  name: rspec-rails
404
386
  prerelease: false
405
- requirement: &id025 !ruby/object:Gem::Requirement
387
+ requirement: &id024 !ruby/object:Gem::Requirement
406
388
  none: false
407
389
  requirements:
408
390
  - - ~>
@@ -414,11 +396,11 @@ dependencies:
414
396
  - 1
415
397
  version: 2.6.1
416
398
  type: :development
417
- version_requirements: *id025
399
+ version_requirements: *id024
418
400
  - !ruby/object:Gem::Dependency
419
401
  name: factory_girl
420
402
  prerelease: false
421
- requirement: &id026 !ruby/object:Gem::Requirement
403
+ requirement: &id025 !ruby/object:Gem::Requirement
422
404
  none: false
423
405
  requirements:
424
406
  - - ~>
@@ -430,11 +412,11 @@ dependencies:
430
412
  - 2
431
413
  version: 1.3.2
432
414
  type: :development
433
- version_requirements: *id026
415
+ version_requirements: *id025
434
416
  - !ruby/object:Gem::Dependency
435
417
  name: forgery
436
418
  prerelease: false
437
- requirement: &id027 !ruby/object:Gem::Requirement
419
+ requirement: &id026 !ruby/object:Gem::Requirement
438
420
  none: false
439
421
  requirements:
440
422
  - - ~>
@@ -446,11 +428,11 @@ dependencies:
446
428
  - 2
447
429
  version: 0.4.2
448
430
  type: :development
449
- version_requirements: *id027
431
+ version_requirements: *id026
450
432
  - !ruby/object:Gem::Dependency
451
433
  name: ci_reporter
452
434
  prerelease: false
453
- requirement: &id028 !ruby/object:Gem::Requirement
435
+ requirement: &id027 !ruby/object:Gem::Requirement
454
436
  none: false
455
437
  requirements:
456
438
  - - ~>
@@ -462,11 +444,11 @@ dependencies:
462
444
  - 4
463
445
  version: 1.6.4
464
446
  type: :development
465
- version_requirements: *id028
447
+ version_requirements: *id027
466
448
  - !ruby/object:Gem::Dependency
467
449
  name: nifty-generators
468
450
  prerelease: false
469
- requirement: &id029 !ruby/object:Gem::Requirement
451
+ requirement: &id028 !ruby/object:Gem::Requirement
470
452
  none: false
471
453
  requirements:
472
454
  - - ~>
@@ -478,7 +460,7 @@ dependencies:
478
460
  - 5
479
461
  version: 0.4.5
480
462
  type: :development
481
- version_requirements: *id029
463
+ version_requirements: *id028
482
464
  description: |-
483
465
  Social Stream is a Ruby on Rails engine providing your application with social networking features and activity streams.
484
466
 
@@ -547,6 +529,7 @@ files:
547
529
  - app/assets/images/btn/btn_page_link.png
548
530
  - app/assets/images/btn/btn_partner.png
549
531
  - app/assets/images/btn/btn_photo.png
532
+ - app/assets/images/btn/btn_play.png
550
533
  - app/assets/images/btn/btn_printer.png
551
534
  - app/assets/images/btn/btn_profile.png
552
535
  - app/assets/images/btn/btn_rank.png