social_stream 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/.gitignore +1 -0
  2. data/README.rdoc +2 -3
  3. data/app/controllers/likes_controller.rb +2 -2
  4. data/app/controllers/messages_controller.rb +3 -0
  5. data/app/controllers/representations_controller.rb +8 -0
  6. data/app/controllers/ties_controller.rb +1 -1
  7. data/app/helpers/activities_helper.rb +2 -2
  8. data/app/helpers/ties_helper.rb +19 -16
  9. data/app/models/activity.rb +42 -7
  10. data/app/models/activity_object.rb +1 -0
  11. data/app/models/activity_verb.rb +5 -1
  12. data/app/models/actor.rb +113 -68
  13. data/app/models/group.rb +15 -1
  14. data/app/models/message.rb +2 -0
  15. data/app/models/permission.rb +20 -41
  16. data/app/models/profile.rb +1 -1
  17. data/app/models/relation.rb +34 -26
  18. data/app/models/representation.rb +35 -0
  19. data/app/models/tie.rb +47 -100
  20. data/app/models/user.rb +12 -17
  21. data/app/views/activities/_activities.html.erb +2 -2
  22. data/app/views/activities/_new.html.erb +6 -3
  23. data/app/views/activities/_options.html.erb +1 -1
  24. data/app/views/comments/_new.html.erb +2 -2
  25. data/app/views/frontpage/index.html.erb +0 -2
  26. data/app/views/groups/_group.html.erb +3 -3
  27. data/app/views/groups/_index.html.erb +3 -4
  28. data/app/views/groups/_middle_show.html.erb +7 -4
  29. data/app/views/groups/_new.html.erb +25 -0
  30. data/app/views/groups/_right_show.html.erb +4 -2
  31. data/app/views/groups/new.html.erb +1 -0
  32. data/app/views/groups/show.html.erb +1 -1
  33. data/app/views/home/_groups.html.erb +7 -5
  34. data/app/views/home/_location.html.erb +1 -1
  35. data/app/views/home/_options.html.erb +2 -2
  36. data/app/views/home/_right.html.erb +2 -2
  37. data/app/views/home/index.html.erb +6 -2
  38. data/app/views/layouts/_footer.html.erb +1 -1
  39. data/app/views/layouts/_header.erb +4 -1
  40. data/app/views/layouts/_representation.html.erb +20 -0
  41. data/app/views/{private_messages → messages}/_form.html.erb +4 -4
  42. data/app/views/{private_messages → messages}/_index.html.erb +1 -1
  43. data/app/views/{private_messages → messages}/_location.html.erb +1 -1
  44. data/app/views/messages/_message.html.erb +17 -0
  45. data/app/views/messages/_messages.html.erb +2 -0
  46. data/app/views/messages/edit.html.erb +6 -0
  47. data/app/views/{private_messages → messages}/index.html.erb +0 -0
  48. data/app/views/{private_messages → messages}/index.js.erb +0 -0
  49. data/app/views/{private_messages → messages}/new.html.erb +2 -2
  50. data/app/views/messages/show.html.erb +21 -0
  51. data/app/views/subjects/_contacts.html.erb +20 -0
  52. data/app/views/ties/_new.html.erb +6 -6
  53. data/app/views/ties/_pendings.html.erb +3 -3
  54. data/app/views/ties/_suggestions.html.erb +3 -3
  55. data/app/views/ties/_tie.html.erb +1 -1
  56. data/app/views/ties/create.js.erb +4 -5
  57. data/app/views/ties/new.js.erb +1 -1
  58. data/app/views/users/_groups.html.erb +5 -5
  59. data/app/views/users/_index.html.erb +3 -1
  60. data/app/views/users/_options.html.erb +1 -1
  61. data/app/views/users/_right_show.html.erb +3 -3
  62. data/app/views/users/show.html.erb +5 -3
  63. data/config/locales/en.yml +13 -19
  64. data/config/routes.rb +11 -4
  65. data/lib/generators/social_stream/install_generator.rb +2 -10
  66. data/lib/generators/social_stream/templates/initializer.rb +1 -1
  67. data/lib/generators/social_stream/templates/migration.rb +19 -24
  68. data/lib/generators/social_stream/templates/public/javascripts/jquery.js +6883 -0
  69. data/lib/generators/social_stream/templates/public/javascripts/rails.js +146 -0
  70. data/lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js +3 -13
  71. data/lib/generators/social_stream/templates/public/stylesheets/header.css +5 -1
  72. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  73. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_flat_75_ffffff_40x100.png +0 -0
  74. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  75. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
  76. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_glass_75_dadada_1x400.png +0 -0
  77. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  78. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  79. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  80. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-icons_222222_256x240.png +0 -0
  81. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-icons_2e83ff_256x240.png +0 -0
  82. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-icons_454545_256x240.png +0 -0
  83. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-icons_888888_256x240.png +0 -0
  84. data/lib/generators/social_stream/templates/public/{images → stylesheets/images}/ui-icons_cd0a0a_256x240.png +0 -0
  85. data/lib/generators/social_stream/templates/relations.yml +42 -0
  86. data/lib/social_stream/ability.rb +7 -6
  87. data/lib/social_stream/controllers/helpers.rb +35 -0
  88. data/lib/social_stream/models/{activity_object.rb → object.rb} +1 -1
  89. data/lib/social_stream/models/{actor.rb → subject.rb} +10 -30
  90. data/lib/social_stream/models/supertype.rb +5 -2
  91. data/lib/social_stream/rails.rb +25 -6
  92. data/lib/social_stream/relations.rb +46 -0
  93. data/lib/social_stream/version.rb +1 -1
  94. data/lib/social_stream.rb +13 -13
  95. data/lib/tasks/db/populate.rake +23 -29
  96. data/spec/controllers/groups_controller_spec.rb +2 -6
  97. data/spec/controllers/ties_controller_spec.rb +19 -0
  98. data/spec/controllers/users_controller_spec.rb +0 -2
  99. data/spec/dummy/config/application.rb +0 -1
  100. data/spec/dummy/config/initializers/social_stream.rb +14 -2
  101. data/spec/dummy/config/relations.yml +42 -0
  102. data/spec/dummy/db/schema.rb +9 -0
  103. data/spec/dummy/db/seeds.rb +0 -1
  104. data/spec/factories/activity.rb +2 -2
  105. data/spec/factories/actor.rb +2 -1
  106. data/spec/factories/group.rb +1 -0
  107. data/spec/factories/post.rb +1 -1
  108. data/spec/factories/tie.rb +16 -22
  109. data/spec/models/activity_spec.rb +27 -24
  110. data/spec/models/actor_spec.rb +3 -0
  111. data/spec/models/representation_spec.rb +16 -0
  112. data/spec/models/tie_spec.rb +49 -57
  113. data/spec/models/user_spec.rb +22 -0
  114. data/spec/support/db.rb +1 -1
  115. metadata +47 -45
  116. data/Gemfile.lock +0 -171
  117. data/app/controllers/private_messages_controller.rb +0 -3
  118. data/app/models/private_message.rb +0 -6
  119. data/app/views/groups/_follow.html.erb +0 -9
  120. data/app/views/groups/_followers.html.erb +0 -16
  121. data/app/views/home/_contacts.html.erb +0 -17
  122. data/app/views/private_messages/_messages.html.erb +0 -2
  123. data/app/views/private_messages/_private_message.html.erb +0 -17
  124. data/app/views/private_messages/edit.html.erb +0 -6
  125. data/app/views/private_messages/show.html.erb +0 -21
  126. data/app/views/ties/_pending.html.erb +0 -21
  127. data/app/views/users/_contacts.html.erb +0 -19
  128. data/init.rb +0 -3
  129. data/lib/generators/social_stream/templates/seeds.yml +0 -64
  130. data/lib/social_stream/rails/common.rb +0 -36
  131. data/lib/social_stream/rails/engine.rb +0 -9
  132. data/lib/social_stream/rails/railtie.rb +0 -9
  133. data/lib/social_stream/seed.rb +0 -49
  134. data/spec/dummy/db/seeds/social_stream.yml +0 -64
  135. data/spec/models/user_space.rb +0 -10
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: 17
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
8
  - 3
10
- version: 0.2.3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Antonio Tapiador
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-10 00:00:00 +01:00
19
+ date: 2011-01-19 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -301,7 +301,6 @@ files:
301
301
  - .gitignore
302
302
  - .yardopts
303
303
  - Gemfile
304
- - Gemfile.lock
305
304
  - LICENSE
306
305
  - README.rdoc
307
306
  - Rakefile
@@ -311,8 +310,9 @@ files:
311
310
  - app/controllers/groups_controller.rb
312
311
  - app/controllers/home_controller.rb
313
312
  - app/controllers/likes_controller.rb
313
+ - app/controllers/messages_controller.rb
314
314
  - app/controllers/posts_controller.rb
315
- - app/controllers/private_messages_controller.rb
315
+ - app/controllers/representations_controller.rb
316
316
  - app/controllers/ties_controller.rb
317
317
  - app/controllers/users_controller.rb
318
318
  - app/helpers/activities_helper.rb
@@ -327,12 +327,13 @@ files:
327
327
  - app/models/actor.rb
328
328
  - app/models/comment.rb
329
329
  - app/models/group.rb
330
+ - app/models/message.rb
330
331
  - app/models/permission.rb
331
332
  - app/models/post.rb
332
- - app/models/private_message.rb
333
333
  - app/models/profile.rb
334
334
  - app/models/relation.rb
335
335
  - app/models/relation_permission.rb
336
+ - app/models/representation.rb
336
337
  - app/models/tie.rb
337
338
  - app/models/tie_activity.rb
338
339
  - app/models/user.rb
@@ -353,20 +354,19 @@ files:
353
354
  - app/views/frontpage/_header.html.erb
354
355
  - app/views/frontpage/_sponsor.html.erb
355
356
  - app/views/frontpage/index.html.erb
356
- - app/views/groups/_follow.html.erb
357
- - app/views/groups/_followers.html.erb
358
357
  - app/views/groups/_group.html.erb
359
358
  - app/views/groups/_index.html.erb
360
359
  - app/views/groups/_location.html.erb
361
360
  - app/views/groups/_logo.html.erb
362
361
  - app/views/groups/_middle_index.html.erb
363
362
  - app/views/groups/_middle_show.html.erb
363
+ - app/views/groups/_new.html.erb
364
364
  - app/views/groups/_right_index.html.erb
365
365
  - app/views/groups/_right_show.html.erb
366
366
  - app/views/groups/_tabs.html.erb
367
367
  - app/views/groups/index.html.erb
368
+ - app/views/groups/new.html.erb
368
369
  - app/views/groups/show.html.erb
369
- - app/views/home/_contacts.html.erb
370
370
  - app/views/home/_groups.html.erb
371
371
  - app/views/home/_location.html.erb
372
372
  - app/views/home/_middle.html.erb
@@ -375,26 +375,27 @@ files:
375
375
  - app/views/home/index.html.erb
376
376
  - app/views/layouts/_footer.html.erb
377
377
  - app/views/layouts/_header.erb
378
+ - app/views/layouts/_representation.html.erb
378
379
  - app/views/layouts/application.html.erb
379
380
  - app/views/layouts/frontpage.html.erb
380
381
  - app/views/likes/create.js.erb
381
382
  - app/views/likes/destroy.js.erb
383
+ - app/views/messages/_form.html.erb
384
+ - app/views/messages/_index.html.erb
385
+ - app/views/messages/_location.html.erb
386
+ - app/views/messages/_message.html.erb
387
+ - app/views/messages/_messages.html.erb
388
+ - app/views/messages/edit.html.erb
389
+ - app/views/messages/index.html.erb
390
+ - app/views/messages/index.js.erb
391
+ - app/views/messages/new.html.erb
392
+ - app/views/messages/show.html.erb
382
393
  - app/views/posts/_post.html.erb
383
394
  - app/views/posts/create.js.erb
384
395
  - app/views/posts/destroy.js.erb
385
- - app/views/private_messages/_form.html.erb
386
- - app/views/private_messages/_index.html.erb
387
- - app/views/private_messages/_location.html.erb
388
- - app/views/private_messages/_messages.html.erb
389
- - app/views/private_messages/_private_message.html.erb
390
- - app/views/private_messages/edit.html.erb
391
- - app/views/private_messages/index.html.erb
392
- - app/views/private_messages/index.js.erb
393
- - app/views/private_messages/new.html.erb
394
- - app/views/private_messages/show.html.erb
396
+ - app/views/subjects/_contacts.html.erb
395
397
  - app/views/ties/_form.html.erb
396
398
  - app/views/ties/_new.html.erb
397
- - app/views/ties/_pending.html.erb
398
399
  - app/views/ties/_pendings.html.erb
399
400
  - app/views/ties/_suggestions.html.erb
400
401
  - app/views/ties/_tie.html.erb
@@ -403,7 +404,6 @@ files:
403
404
  - app/views/ties/new.js.erb
404
405
  - app/views/ties/suggestion.html.erb
405
406
  - app/views/ties/suggestion.js.erb
406
- - app/views/users/_contacts.html.erb
407
407
  - app/views/users/_groups.html.erb
408
408
  - app/views/users/_index.html.erb
409
409
  - app/views/users/_location.html.erb
@@ -422,7 +422,6 @@ files:
422
422
  - bin/social_stream
423
423
  - config/locales/en.yml
424
424
  - config/routes.rb
425
- - init.rb
426
425
  - lib/generators/social_stream/USAGE
427
426
  - lib/generators/social_stream/install_generator.rb
428
427
  - lib/generators/social_stream/templates/initializer.rb
@@ -535,26 +534,15 @@ files:
535
534
  - lib/generators/social_stream/templates/public/images/logos/tie/user.png
536
535
  - lib/generators/social_stream/templates/public/images/right.png
537
536
  - lib/generators/social_stream/templates/public/images/title_background.png
538
- - lib/generators/social_stream/templates/public/images/ui-bg_flat_0_aaaaaa_40x100.png
539
- - lib/generators/social_stream/templates/public/images/ui-bg_flat_75_ffffff_40x100.png
540
- - lib/generators/social_stream/templates/public/images/ui-bg_glass_55_fbf9ee_1x400.png
541
- - lib/generators/social_stream/templates/public/images/ui-bg_glass_65_ffffff_1x400.png
542
- - lib/generators/social_stream/templates/public/images/ui-bg_glass_75_dadada_1x400.png
543
- - lib/generators/social_stream/templates/public/images/ui-bg_glass_75_e6e6e6_1x400.png
544
- - lib/generators/social_stream/templates/public/images/ui-bg_glass_95_fef1ec_1x400.png
545
- - lib/generators/social_stream/templates/public/images/ui-bg_highlight-soft_75_cccccc_1x100.png
546
- - lib/generators/social_stream/templates/public/images/ui-icons_222222_256x240.png
547
- - lib/generators/social_stream/templates/public/images/ui-icons_2e83ff_256x240.png
548
- - lib/generators/social_stream/templates/public/images/ui-icons_454545_256x240.png
549
- - lib/generators/social_stream/templates/public/images/ui-icons_888888_256x240.png
550
- - lib/generators/social_stream/templates/public/images/ui-icons_cd0a0a_256x240.png
551
537
  - lib/generators/social_stream/templates/public/javascripts/hoverIntent.js
552
538
  - lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js
553
539
  - lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js
554
540
  - lib/generators/social_stream/templates/public/javascripts/jquery.boxy.js
541
+ - lib/generators/social_stream/templates/public/javascripts/jquery.js
555
542
  - lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js
556
543
  - lib/generators/social_stream/templates/public/javascripts/jquery.validate.js
557
544
  - lib/generators/social_stream/templates/public/javascripts/menu.js
545
+ - lib/generators/social_stream/templates/public/javascripts/rails.js
558
546
  - lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js
559
547
  - lib/generators/social_stream/templates/public/stylesheets/activities.css
560
548
  - lib/generators/social_stream/templates/public/stylesheets/base.css
@@ -565,6 +553,19 @@ files:
565
553
  - lib/generators/social_stream/templates/public/stylesheets/frontpage.css
566
554
  - lib/generators/social_stream/templates/public/stylesheets/header.css
567
555
  - lib/generators/social_stream/templates/public/stylesheets/home.css
556
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png
557
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_flat_75_ffffff_40x100.png
558
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_glass_55_fbf9ee_1x400.png
559
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_glass_65_ffffff_1x400.png
560
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_glass_75_dadada_1x400.png
561
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_glass_75_e6e6e6_1x400.png
562
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_glass_95_fef1ec_1x400.png
563
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-bg_highlight-soft_75_cccccc_1x100.png
564
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-icons_222222_256x240.png
565
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-icons_2e83ff_256x240.png
566
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-icons_454545_256x240.png
567
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-icons_888888_256x240.png
568
+ - lib/generators/social_stream/templates/public/stylesheets/images/ui-icons_cd0a0a_256x240.png
568
569
  - lib/generators/social_stream/templates/public/stylesheets/index.css
569
570
  - lib/generators/social_stream/templates/public/stylesheets/jquery-ui.css
570
571
  - lib/generators/social_stream/templates/public/stylesheets/menu.css
@@ -588,25 +589,24 @@ files:
588
589
  - lib/generators/social_stream/templates/public/stylesheets/smoothness/jquery-ui-1.8.4.custom.css
589
590
  - lib/generators/social_stream/templates/public/stylesheets/social_stream.css
590
591
  - lib/generators/social_stream/templates/public/stylesheets/ui.dropdownchecklist.css
591
- - lib/generators/social_stream/templates/seeds.yml
592
+ - lib/generators/social_stream/templates/relations.yml
592
593
  - lib/paperclip/social_stream.rb
593
594
  - lib/social_stream.rb
594
595
  - lib/social_stream/ability.rb
595
- - lib/social_stream/models/activity_object.rb
596
- - lib/social_stream/models/actor.rb
596
+ - lib/social_stream/controllers/helpers.rb
597
+ - lib/social_stream/models/object.rb
598
+ - lib/social_stream/models/subject.rb
597
599
  - lib/social_stream/models/supertype.rb
598
600
  - lib/social_stream/populate.rb
599
601
  - lib/social_stream/rails.rb
600
- - lib/social_stream/rails/common.rb
601
- - lib/social_stream/rails/engine.rb
602
- - lib/social_stream/rails/railtie.rb
603
- - lib/social_stream/seed.rb
602
+ - lib/social_stream/relations.rb
604
603
  - lib/social_stream/version.rb
605
604
  - lib/tasks/db/populate.rake
606
605
  - social_stream.gemspec
607
606
  - spec/controllers/frontpage_controller_spec.rb
608
607
  - spec/controllers/groups_controller_spec.rb
609
608
  - spec/controllers/home_controller_spec.rb
609
+ - spec/controllers/ties_controller_spec.rb
610
610
  - spec/controllers/users_controller_spec.rb
611
611
  - spec/dummy/Rakefile
612
612
  - spec/dummy/app/controllers/application_controller.rb
@@ -627,11 +627,12 @@ files:
627
627
  - spec/dummy/config/initializers/session_store.rb
628
628
  - spec/dummy/config/initializers/social_stream.rb
629
629
  - spec/dummy/config/locales/en.yml
630
+ - spec/dummy/config/relations.yml
630
631
  - spec/dummy/config/routes.rb
631
632
  - spec/dummy/db/.gitignore
632
633
  - spec/dummy/db/migrate/.gitkeep
634
+ - spec/dummy/db/schema.rb
633
635
  - spec/dummy/db/seeds.rb
634
- - spec/dummy/db/seeds/social_stream.yml
635
636
  - spec/dummy/log/.gitignore
636
637
  - spec/dummy/public/404.html
637
638
  - spec/dummy/public/422.html
@@ -655,8 +656,9 @@ files:
655
656
  - spec/models/activity_spec.rb
656
657
  - spec/models/actor_spec.rb
657
658
  - spec/models/post_spec.rb
659
+ - spec/models/representation_spec.rb
658
660
  - spec/models/tie_spec.rb
659
- - spec/models/user_space.rb
661
+ - spec/models/user_spec.rb
660
662
  - spec/social_stream_spec.rb
661
663
  - spec/spec_helper.rb
662
664
  - spec/support/cancan.rb
data/Gemfile.lock DELETED
@@ -1,171 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- social_stream (0.2.2)
5
- atd-ancestry (= 1.3.0)
6
- cancan (~> 1.4.0)
7
- devise (~> 1.1.3)
8
- foreigner (~> 0.9.1)
9
- inherited_resources (~> 1.1.2)
10
- jquery-rails (~> 0.2.5)
11
- nested_set (~> 1.5.3)
12
- paperclip (~> 2.3.4)
13
- stringex (~> 1.2.0)
14
- will_paginate (~> 2.3.15)
15
-
16
- GEM
17
- remote: http://rubygems.org/
18
- specs:
19
- abstract (1.0.0)
20
- actionmailer (3.0.3)
21
- actionpack (= 3.0.3)
22
- mail (~> 2.2.9)
23
- actionpack (3.0.3)
24
- activemodel (= 3.0.3)
25
- activesupport (= 3.0.3)
26
- builder (~> 2.1.2)
27
- erubis (~> 2.6.6)
28
- i18n (~> 0.4)
29
- rack (~> 1.2.1)
30
- rack-mount (~> 0.6.13)
31
- rack-test (~> 0.5.6)
32
- tzinfo (~> 0.3.23)
33
- activemodel (3.0.3)
34
- activesupport (= 3.0.3)
35
- builder (~> 2.1.2)
36
- i18n (~> 0.4)
37
- activerecord (3.0.3)
38
- activemodel (= 3.0.3)
39
- activesupport (= 3.0.3)
40
- arel (~> 2.0.2)
41
- tzinfo (~> 0.3.23)
42
- activeresource (3.0.3)
43
- activemodel (= 3.0.3)
44
- activesupport (= 3.0.3)
45
- activesupport (3.0.3)
46
- arel (2.0.3)
47
- atd-ancestry (1.3.0)
48
- bcrypt-ruby (2.1.2)
49
- builder (2.1.2)
50
- cancan (1.4.1)
51
- capybara (0.3.9)
52
- culerity (>= 0.2.4)
53
- mime-types (>= 1.16)
54
- nokogiri (>= 1.3.3)
55
- rack (>= 1.0.0)
56
- rack-test (>= 0.5.4)
57
- selenium-webdriver (>= 0.0.3)
58
- childprocess (0.1.4)
59
- ffi (~> 0.6.3)
60
- columnize (0.3.2)
61
- culerity (0.2.12)
62
- devise (1.1.3)
63
- bcrypt-ruby (~> 2.1.2)
64
- warden (~> 0.10.7)
65
- diff-lcs (1.1.2)
66
- erubis (2.6.6)
67
- abstract (>= 1.0.0)
68
- factory_girl (1.3.2)
69
- ffi (0.6.3)
70
- rake (>= 0.8.7)
71
- foreigner (0.9.1)
72
- forgery (0.3.6)
73
- has_scope (0.5.0)
74
- i18n (0.4.2)
75
- inherited_resources (1.1.2)
76
- has_scope (~> 0.5.0)
77
- responders (~> 0.6.0)
78
- jquery-rails (0.2.5)
79
- rails (~> 3.0)
80
- thor (~> 0.14.4)
81
- json_pure (1.4.6)
82
- linecache (0.43)
83
- mail (2.2.10)
84
- activesupport (>= 2.3.6)
85
- i18n (~> 0.4.1)
86
- mime-types (~> 1.16)
87
- treetop (~> 1.4.8)
88
- mime-types (1.16)
89
- nested_set (1.5.4)
90
- activerecord (>= 3.0.0)
91
- railties (>= 3.0.0)
92
- nokogiri (1.4.4)
93
- paperclip (2.3.5)
94
- activerecord
95
- activesupport
96
- polyglot (0.3.1)
97
- rack (1.2.1)
98
- rack-mount (0.6.13)
99
- rack (>= 1.0.0)
100
- rack-test (0.5.6)
101
- rack (>= 1.0)
102
- rails (3.0.3)
103
- actionmailer (= 3.0.3)
104
- actionpack (= 3.0.3)
105
- activerecord (= 3.0.3)
106
- activeresource (= 3.0.3)
107
- activesupport (= 3.0.3)
108
- bundler (~> 1.0)
109
- railties (= 3.0.3)
110
- railties (3.0.3)
111
- actionpack (= 3.0.3)
112
- activesupport (= 3.0.3)
113
- rake (>= 0.8.7)
114
- thor (~> 0.14.4)
115
- rake (0.8.7)
116
- responders (0.6.2)
117
- rspec (2.0.1)
118
- rspec-core (~> 2.0.1)
119
- rspec-expectations (~> 2.0.1)
120
- rspec-mocks (~> 2.0.1)
121
- rspec-core (2.0.1)
122
- rspec-expectations (2.0.1)
123
- diff-lcs (>= 1.1.2)
124
- rspec-mocks (2.0.1)
125
- rspec-core (~> 2.0.1)
126
- rspec-expectations (~> 2.0.1)
127
- rspec-rails (2.0.1)
128
- rspec (~> 2.0.0)
129
- ruby-debug (0.10.4)
130
- columnize (>= 0.1)
131
- ruby-debug-base (~> 0.10.4.0)
132
- ruby-debug-base (0.10.4)
133
- linecache (>= 0.3)
134
- rubyzip (0.9.4)
135
- selenium-webdriver (0.1.0)
136
- childprocess (= 0.1.4)
137
- ffi (~> 0.6.3)
138
- json_pure
139
- rubyzip
140
- sqlite3-ruby (1.3.2)
141
- stringex (1.2.0)
142
- thor (0.14.4)
143
- treetop (1.4.9)
144
- polyglot (>= 0.3.1)
145
- tzinfo (0.3.23)
146
- warden (0.10.7)
147
- rack (>= 1.0.0)
148
- will_paginate (2.3.15)
149
-
150
- PLATFORMS
151
- ruby
152
-
153
- DEPENDENCIES
154
- atd-ancestry (= 1.3.0)
155
- cancan (~> 1.4.0)
156
- capybara (~> 0.3.9)
157
- devise (~> 1.1.3)
158
- factory_girl (~> 1.3.2)
159
- foreigner (~> 0.9.1)
160
- forgery (~> 0.3.6)
161
- inherited_resources (~> 1.1.2)
162
- jquery-rails (~> 0.2.5)
163
- nested_set (~> 1.5.3)
164
- paperclip (~> 2.3.4)
165
- rails (~> 3.0.3)
166
- rspec-rails (~> 2.0.0)
167
- ruby-debug (~> 0.10.3)
168
- social_stream!
169
- sqlite3-ruby
170
- stringex (~> 1.2.0)
171
- will_paginate (~> 2.3.15)
@@ -1,3 +0,0 @@
1
- class PrivateMessagesController < InheritedResources::Base
2
- respond_to :html, :xml, :js
3
- end
@@ -1,6 +0,0 @@
1
- class PrivateMessage < ActiveRecord::Base
2
- belongs_to :sender,
3
- :class_name => 'Actor'
4
- belongs_to :receiver,
5
- :class_name => 'Actor'
6
- end
@@ -1,9 +0,0 @@
1
- <div id="bookmark">
2
- <%=image_tag("btn/btn_bookmark.png", :class=>"btn_config")%> <%= link_to "Follow "+@group.name,
3
- ties_path("tie[sender_id]" => current_user.actor.id,
4
- "tie[receiver_id]" => @group,
5
- "tie[relation_name]" => "follower"),
6
- :method => :post,
7
- :remote => true %>
8
- </div>
9
-
@@ -1,16 +0,0 @@
1
- <%if @group.followers.count > 0%>
2
- <div id="follower">
3
- <div id="title_follower">
4
- <%=image_tag("btn/btn_group.png", :alt => "Follower")%><%=@group.followers.count%>
5
- <%=t('follower', :count => @group.followers.count)%>
6
- </div>
7
- <div class="follower_line">
8
- <% @group.followers.all.each do |follower| %>
9
- <%=link_to((image_tag(follower.logo.url, :alt => follower.name , :size => "40x40")) , follower)%>
10
- <%end%>
11
- </div>
12
- <div class="future_footer">
13
- <%=link_to((image_tag("btn/btn_next.png", :alt => "next")) , group_path)%>
14
- </div>
15
- </div>
16
- <%end%>
@@ -1,17 +0,0 @@
1
- <div class="contacts_header">
2
- <%=image_tag("btn/btn_friend.png", :class => "contacts_icon")%>
3
- <div class="contacts_text_header">
4
- <%= current_user.friends.count %> <%=t('friend', :count => current_user.friends.count) %>
5
- </div>
6
- </div>
7
- <div class ="contacts">
8
- <div class="contact">
9
- <%current_user.friends.all.each do |friend|%>
10
- <%= link_to((image_tag(friend.logo.url, :title => friend.name , :size => "40x40")) , friend)%>
11
- <%end%>
12
- </div>
13
- </div>
14
- <div class="contacts_footer">
15
- <%=link_to((image_tag("btn/btn_next.png", :alt => "next")) , users_path) %>
16
- </div>
17
-
@@ -1,2 +0,0 @@
1
- <%= content_for :head, stylesheet_link_tag("message", :media => "screen, projection") %>
2
- <%= render @private_messages %>
@@ -1,17 +0,0 @@
1
- <%= div_for (private_message) do %>
2
- <div class="actor_logo">
3
- <%= link_to image_tag(private_message.text,
4
- :alt => private_message.text),
5
- private_message %>
6
- </div>
7
- <div class="activity_content_message">
8
- <div class="actor_name_message">
9
- <%= link_to(private_message.text, private_message) %>
10
- </div>
11
- <div class="option_msg">
12
- <div class="edit_message"><%= link_to ( image_tag('btn/btn_edit.png', :class=>"btn_config"), edit_private_message_path(private_message)) %></div>
13
- <div class="detele_message"><%= link_to ( image_tag('btn/btn_delete.png', :class=>"btn_config"), private_message, :confirm => 'Are you sure?', :method => :delete) %></div>
14
- </div>
15
- </div>
16
-
17
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1>Editing private_message</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @private_message %> |
6
- <%= link_to 'Back', private_messages_path %>
@@ -1,21 +0,0 @@
1
-
2
- <p id="notice"><%= notice %></p>
3
-
4
- <p>
5
- <b>Sender:</b>
6
- <%= @private_message.sender %>
7
- </p>
8
-
9
- <p>
10
- <b>Receiver:</b>
11
- <%= @private_message.receiver %>
12
- </p>
13
-
14
- <p>
15
- <b>Text:</b>
16
- <%= @private_message.text %>
17
- </p>
18
-
19
-
20
- <%= link_to 'Edit', edit_private_message_path(@private_message) %> |
21
- <%= link_to 'Back', private_messages_path %>
@@ -1,21 +0,0 @@
1
- <% current_user.received_ties.pending.each do |tie| %>
2
- <div class="middle_box_content">
3
- <div class="actor_logo">
4
- <%= link_to(image_tag(tie.sender_subject.logo.url, :size => "55x40"),
5
- tie.sender_subject.name) %>
6
- </div>
7
- <div class="middle_box_description">
8
- <div class="middle_box_link">
9
- <%= link_to(tie.sender_subject.name, tie.sender_subject) %>
10
- </div>
11
- <div class="middle_box_brief">
12
- 18 contacts in common
13
- </div>
14
- <%= link_to t('new', :scope => tie.relation.granted.name),
15
- new_tie_path("tie[sender_id]" => current_user.actor.id,
16
- "tie[receiver_id]" => tie.sender.id,
17
- "tie[relation_name]" => tie.relation.granted.name),
18
- :remote => true %>
19
- </div>
20
- </div>
21
- <% end %>
@@ -1,19 +0,0 @@
1
-
2
- <div class="contacts_header">
3
- <%=image_tag("btn/btn_friend.png", :class => "contacts_icon")%>
4
- <div class="contacts_text_header">
5
- <%= @user.friends.count %> <%= t('friend', :count => @user.friends.count) %>
6
- </div>
7
- </div>
8
- <div class ="contacts">
9
- <div class="contact">
10
- <%@user.friends.all.each do |friend|%>
11
- <%=link_to((image_tag (friend.logo.url, :alt => friend.name , :size => "40x40")) , friend)%>
12
- <%end%>
13
- </div>
14
- </div>
15
- <div class="contacts_footer">
16
- <%=link_to((image_tag("btn/btn_next.png", :alt => "next")) , users_path) %>
17
- </div>
18
-
19
-
data/init.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'social_stream'
2
-
3
- SocialStream::Rails::Common.inflections
@@ -1,64 +0,0 @@
1
- # Seed configuration for Social Stream
2
- #
3
- # Define the relations and permissions supported by your application
4
- #
5
- relations:
6
- user-friend:
7
- sender_type: User
8
- receiver_type: User
9
- name: friend
10
- inverse: user-friend
11
- reflexive: true
12
- permissions:
13
- - [ create, activity, inverse_weak_set ]
14
- - [ read, activity, inverse_group_set ]
15
- - [ update, activity, inverse_weak_set ]
16
- - [ destroy, activity, inverse_weak_set ]
17
- user-public:
18
- sender_type: User
19
- receiver_type: User
20
- name: public
21
- parent: user-friend
22
- inverse: user-public
23
- permissions:
24
- - [ read, activity, inverse_group_set ]
25
- user-friend-request:
26
- sender_type: User
27
- receiver_type: User
28
- name: friend_request
29
- granted: user-friend
30
-
31
- user-group-member:
32
- sender_type: User
33
- receiver_type: Group
34
- name: member
35
- inverse: group-user-member
36
- user-group-follower:
37
- sender_type: User
38
- receiver_type: Group
39
- name: follower
40
- user-group-public:
41
- sender_type: User
42
- receiver_type: Group
43
- name: public
44
- parent: user-group-member
45
- inverse: group-user-public
46
-
47
- group-user-member:
48
- sender_type: Group
49
- receiver_type: User
50
- name: member
51
- inverse: user-group-member
52
- permissions:
53
- - [ create, activity, inverse_weak_set ]
54
- - [ read, activity, inverse_group_set ]
55
- - [ update, activity, inverse_weak_group_set ]
56
- - [ destroy, activity, inverse_weak_group_set ]
57
- group-user-public:
58
- sender_type: Group
59
- receiver_type: User
60
- name: public
61
- parent: group-user-member
62
- inverse: user-group-public
63
- permissions:
64
- - [ read, activity, inverse_group_set ]
@@ -1,36 +0,0 @@
1
- module SocialStream
2
- module Rails
3
- # Common methods for Rails::Railtie and Rails::Engine
4
- module Common #:nodoc:
5
- class << self
6
- def inflections
7
- ActiveSupport::Inflector.inflections do |inflect|
8
- inflect.singular /^([Tt]ie)s$/, '\1'
9
- end
10
- end
11
-
12
- def included(base)
13
- base.class_eval do
14
- config.app_generators.authentication :devise
15
- config.app_generators.javascript :jquery
16
-
17
- config.to_prepare do
18
- %w( actor activity_object ).each do |supertype|
19
- supertype.classify.constantize.load_subtype_features
20
- end
21
-
22
- # https://rails.lighthouseapp.com/projects/8994/tickets/1905-apphelpers-within-plugin-not-being-mixed-in
23
- ApplicationController.helper ActivitiesHelper
24
- ApplicationController.helper TiesHelper
25
- end
26
-
27
- initializer "social_stream.inflections" do
28
- Common.inflections
29
- end
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
36
-