social_stream 0.28.4 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/.gitignore +6 -1
  2. data/.travis.yml +0 -2
  3. data/Gemfile +3 -0
  4. data/base/app/controllers/activities_controller.rb +14 -12
  5. data/base/app/controllers/api_controller.rb +0 -13
  6. data/base/app/controllers/frontpage_controller.rb +0 -6
  7. data/base/app/models/activity.rb +21 -61
  8. data/base/app/models/actor.rb +4 -8
  9. data/base/app/models/audience.rb +2 -0
  10. data/base/app/models/comment.rb +2 -1
  11. data/base/app/models/group.rb +0 -2
  12. data/base/app/models/relation/custom.rb +17 -4
  13. data/base/app/models/relation.rb +5 -1
  14. data/base/app/models/tie.rb +0 -2
  15. data/base/app/models/user.rb +0 -2
  16. data/base/app/views/activities/_options.html.erb +1 -1
  17. data/base/app/views/activities/index.atom.builder +48 -0
  18. data/base/app/views/activity_objects/_activity_object.atom.erb +1 -0
  19. data/base/config/locales/en.yml +8 -0
  20. data/base/config/locales/es.yml +8 -0
  21. data/base/config/routes.rb +0 -8
  22. data/base/lib/rails/social_stream.rb +1 -1
  23. data/base/lib/social_stream/ability/base.rb +4 -16
  24. data/base/lib/social_stream/activity_streams/subtype.rb +11 -0
  25. data/base/lib/social_stream/activity_streams/supertype.rb +12 -0
  26. data/base/lib/social_stream/activity_streams.rb +39 -0
  27. data/base/lib/social_stream/base/dependencies.rb +2 -0
  28. data/base/lib/social_stream/base/engine.rb +6 -0
  29. data/base/lib/social_stream/base/version.rb +1 -1
  30. data/base/lib/social_stream/models/object.rb +5 -0
  31. data/base/lib/social_stream/models/subject.rb +1 -1
  32. data/base/lib/social_stream/models/subtype.rb +2 -0
  33. data/base/lib/social_stream/models/supertype.rb +2 -0
  34. data/base/lib/social_stream-base.rb +5 -0
  35. data/base/social_stream-base.gemspec +2 -0
  36. data/base/spec/controllers/activities_controller_spec.rb +18 -0
  37. data/base/spec/controllers/frontpage_controller_spec.rb +0 -5
  38. data/base/spec/models/activity_wall_spec.rb +96 -0
  39. data/base/spec/models/post_authorization_spec.rb +370 -0
  40. data/base/spec/models/post_spec.rb +0 -2
  41. data/base/spec/models/relation_spec.rb +22 -0
  42. data/base/spec/social_stream_activity_streams_spec.rb +16 -0
  43. data/base/spec/social_stream_spec.rb +1 -1
  44. data/documents/app/views/common_documents/_document_info.html.erb +2 -2
  45. data/documents/app/views/common_documents/_index.html.erb +2 -2
  46. data/documents/lib/social_stream/documents/engine.rb +7 -0
  47. data/documents/lib/social_stream/documents/version.rb +1 -1
  48. data/documents/social_stream-documents.gemspec +1 -1
  49. data/events/app/decorators/social_stream/base/actor_decorator.rb +3 -0
  50. data/events/app/decorators/social_stream/base/document_decorator.rb +3 -0
  51. data/events/lib/social_stream/events/engine.rb +2 -10
  52. data/events/lib/social_stream/events/version.rb +1 -1
  53. data/events/social_stream-events.gemspec +1 -1
  54. data/lib/generators/social_stream/install_generator.rb +1 -0
  55. data/lib/social_stream/version.rb +1 -1
  56. data/lib/social_stream.rb +7 -6
  57. data/linkser/lib/social_stream/linkser/engine.rb +3 -0
  58. data/linkser/lib/social_stream/linkser/version.rb +1 -1
  59. data/linkser/social_stream-linkser.gemspec +1 -1
  60. data/ostatus/Gemfile +3 -0
  61. data/ostatus/MIT-LICENSE +20 -0
  62. data/ostatus/README.rdoc +26 -0
  63. data/ostatus/Rakefile +26 -0
  64. data/{base → ostatus}/app/assets/images/logos/actor/remote_subject.png +0 -0
  65. data/ostatus/app/assets/images/logos/contact/remote_subject.png +0 -0
  66. data/ostatus/app/assets/images/logos/original/remote_subject.png +0 -0
  67. data/ostatus/app/assets/images/logos/profile/remote_subject.png +0 -0
  68. data/ostatus/app/controllers/host_meta_controller.rb +9 -0
  69. data/ostatus/app/controllers/pshb_controller.rb +26 -0
  70. data/ostatus/app/controllers/remote_subjects_controller.rb +19 -0
  71. data/ostatus/app/controllers/salmon_controller.rb +15 -0
  72. data/ostatus/app/controllers/subjects_controller.rb +5 -0
  73. data/ostatus/app/controllers/webfinger_controller.rb +24 -0
  74. data/ostatus/app/decorators/social_stream/base/activity_decorator.rb +3 -0
  75. data/ostatus/app/decorators/social_stream/base/actor_decorator.rb +3 -0
  76. data/ostatus/app/decorators/social_stream/base/audience_decorator.rb +3 -0
  77. data/ostatus/app/decorators/social_stream/base/relation/custom_decorator.rb +3 -0
  78. data/ostatus/app/decorators/social_stream/base/tie_decorator.rb +3 -0
  79. data/ostatus/app/models/actor_key.rb +30 -0
  80. data/ostatus/app/models/remote_subject.rb +139 -0
  81. data/ostatus/app/views/remote_subjects/_show.html.erb +6 -0
  82. data/ostatus/app/views/remote_subjects/show.html.erb +5 -0
  83. data/ostatus/config/locales/en.yml +34 -0
  84. data/ostatus/config/routes.rb +13 -0
  85. data/ostatus/db/migrate/20120905145030_create_social_stream_ostatus.rb +20 -0
  86. data/ostatus/db/migrate/20120918194708_create_actor_keys.rb +18 -0
  87. data/ostatus/lib/generators/social_stream/ostatus/install_generator.rb +16 -0
  88. data/ostatus/lib/generators/social_stream/ostatus/templates/initializer.rb +18 -0
  89. data/ostatus/lib/social_stream/migrations/ostatus.rb +9 -0
  90. data/ostatus/lib/social_stream/ostatus/activity_streams.rb +79 -0
  91. data/ostatus/lib/social_stream/ostatus/controllers/debug_requests.rb +24 -0
  92. data/ostatus/lib/social_stream/ostatus/engine.rb +21 -0
  93. data/ostatus/lib/social_stream/ostatus/models/activity.rb +41 -0
  94. data/ostatus/lib/social_stream/ostatus/models/actor.rb +89 -0
  95. data/ostatus/lib/social_stream/ostatus/models/audience.rb +19 -0
  96. data/ostatus/lib/social_stream/ostatus/models/object.rb +28 -0
  97. data/ostatus/lib/social_stream/ostatus/models/relation/custom.rb +22 -0
  98. data/ostatus/lib/social_stream/ostatus/models/tie.rb +24 -0
  99. data/ostatus/lib/social_stream/ostatus/version.rb +5 -0
  100. data/ostatus/lib/social_stream-ostatus.rb +54 -0
  101. data/ostatus/social_stream-ostatus.gemspec +28 -0
  102. data/ostatus/spec/controllers/host_meta_controller_spec.rb +10 -0
  103. data/ostatus/spec/controllers/remote_subjects_controller_spec.rb +37 -0
  104. data/ostatus/spec/controllers/webfinger_controller_spec.rb +13 -0
  105. data/ostatus/spec/dummy/Rakefile +7 -0
  106. data/ostatus/spec/dummy/app/controllers/application_controller.rb +3 -0
  107. data/ostatus/spec/dummy/app/helpers/application_helper.rb +2 -0
  108. data/ostatus/spec/dummy/app/views/layouts/application.html.erb +14 -0
  109. data/ostatus/spec/dummy/config/application.rb +45 -0
  110. data/ostatus/spec/dummy/config/boot.rb +10 -0
  111. data/ostatus/spec/dummy/config/database.yml +22 -0
  112. data/ostatus/spec/dummy/config/environment.rb +5 -0
  113. data/ostatus/spec/dummy/config/environments/development.rb +26 -0
  114. data/ostatus/spec/dummy/config/environments/production.rb +49 -0
  115. data/ostatus/spec/dummy/config/environments/test.rb +35 -0
  116. data/ostatus/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  117. data/ostatus/spec/dummy/config/initializers/inflections.rb +10 -0
  118. data/ostatus/spec/dummy/config/initializers/mime_types.rb +5 -0
  119. data/ostatus/spec/dummy/config/initializers/secret_token.rb +7 -0
  120. data/ostatus/spec/dummy/config/initializers/session_store.rb +8 -0
  121. data/ostatus/spec/dummy/config/locales/en.yml +5 -0
  122. data/ostatus/spec/dummy/config/routes.rb +58 -0
  123. data/ostatus/spec/dummy/config.ru +4 -0
  124. data/ostatus/spec/dummy/public/404.html +26 -0
  125. data/ostatus/spec/dummy/public/422.html +26 -0
  126. data/ostatus/spec/dummy/public/500.html +26 -0
  127. data/ostatus/spec/dummy/public/favicon.ico +0 -0
  128. data/ostatus/spec/dummy/public/javascripts/application.js +2 -0
  129. data/ostatus/spec/dummy/public/javascripts/controls.js +965 -0
  130. data/ostatus/spec/dummy/public/javascripts/dragdrop.js +974 -0
  131. data/ostatus/spec/dummy/public/javascripts/effects.js +1123 -0
  132. data/ostatus/spec/dummy/public/javascripts/prototype.js +6001 -0
  133. data/ostatus/spec/dummy/public/javascripts/rails.js +191 -0
  134. data/ostatus/spec/dummy/public/stylesheets/.gitkeep +0 -0
  135. data/ostatus/spec/dummy/script/rails +6 -0
  136. data/ostatus/spec/factories/remote_subject.rb +39 -0
  137. data/ostatus/spec/integration/navigation_spec.rb +9 -0
  138. data/ostatus/spec/models/actor_key_spec.rb +9 -0
  139. data/ostatus/spec/models/post_spec.rb +25 -0
  140. data/ostatus/spec/models/remote_subject_spec.rb +24 -0
  141. data/ostatus/spec/social_stream_ostatus.spec.rb +9 -0
  142. data/ostatus/spec/social_stream_ostatus_activity_streams.spec.rb +31 -0
  143. data/ostatus/spec/spec_helper.rb +33 -0
  144. data/presence/app/decorators/social_stream/base/models/group_decorator.rb +3 -0
  145. data/presence/app/decorators/social_stream/base/models/tie_decorator.rb +3 -0
  146. data/presence/lib/generators/social_stream/presence/install_generator.rb +1 -1
  147. data/presence/lib/social_stream/presence/engine.rb +0 -12
  148. data/presence/lib/social_stream/presence/version.rb +1 -1
  149. data/presence/social_stream-presence.gemspec +1 -1
  150. data/social_stream.gemspec +6 -5
  151. data/spec/support/db.rb +1 -1
  152. metadata +125 -18
  153. data/base/app/assets/images/logos/actor/remote_user.png +0 -0
  154. data/base/app/controllers/subjects_controller.rb +0 -7
  155. data/base/app/views/api/activity_atom_feed.atom.builder +0 -40
  156. data/base/app/views/frontpage/host_meta.xml.builder +0 -11
  157. data/base/spec/models/activity_authorization_spec.rb +0 -354
@@ -11,11 +11,12 @@ 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.22.4')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.16.1')
16
- s.add_runtime_dependency('social_stream-events', '~> 0.14.2')
17
- s.add_runtime_dependency('social_stream-linkser', '~> 0.13.0')
18
- s.add_runtime_dependency('social_stream-presence', '~> 0.15.0')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.23.0')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.17.0')
16
+ s.add_runtime_dependency('social_stream-events', '~> 0.15.0')
17
+ s.add_runtime_dependency('social_stream-linkser', '~> 0.14.0')
18
+ s.add_runtime_dependency('social_stream-presence', '~> 0.16.0')
19
+ s.add_runtime_dependency('social_stream-ostatus', '~> 0.1.0')
19
20
 
20
21
  # Development Gem dependencies
21
22
  #
data/spec/support/db.rb CHANGED
@@ -2,7 +2,7 @@ ActiveRecord::Base.connection.tables.each do |t|
2
2
  ActiveRecord::Base.connection.drop_table t
3
3
  end
4
4
 
5
- gems = %w{ documents events linkser presence }
5
+ gems = %w{ documents events linkser presence ostatus }
6
6
 
7
7
  gems.each do |g|
8
8
  require "social_stream/migrations/#{ g }"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.4
4
+ version: 0.29.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-18 00:00:00.000000000 Z
13
+ date: 2012-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.22.4
22
+ version: 0.23.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 0.22.4
30
+ version: 0.23.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: social_stream-documents
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: 0.16.1
38
+ version: 0.17.0
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 0.16.1
46
+ version: 0.17.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: social_stream-events
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.14.2
54
+ version: 0.15.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  requirements:
60
60
  - - ~>
61
61
  - !ruby/object:Gem::Version
62
- version: 0.14.2
62
+ version: 0.15.0
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: social_stream-linkser
65
65
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  requirements:
68
68
  - - ~>
69
69
  - !ruby/object:Gem::Version
70
- version: 0.13.0
70
+ version: 0.14.0
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  requirements:
76
76
  - - ~>
77
77
  - !ruby/object:Gem::Version
78
- version: 0.13.0
78
+ version: 0.14.0
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: social_stream-presence
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  requirements:
84
84
  - - ~>
85
85
  - !ruby/object:Gem::Version
86
- version: 0.15.0
86
+ version: 0.16.0
87
87
  type: :runtime
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
@@ -91,7 +91,23 @@ dependencies:
91
91
  requirements:
92
92
  - - ~>
93
93
  - !ruby/object:Gem::Version
94
- version: 0.15.0
94
+ version: 0.16.0
95
+ - !ruby/object:Gem::Dependency
96
+ name: social_stream-ostatus
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ version: 0.1.0
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 0.1.0
95
111
  - !ruby/object:Gem::Dependency
96
112
  name: capybara
97
113
  requirement: !ruby/object:Gem::Requirement
@@ -369,8 +385,6 @@ files:
369
385
  - base/app/assets/images/loading.gif
370
386
  - base/app/assets/images/logo.png
371
387
  - base/app/assets/images/logos/actor/group.png
372
- - base/app/assets/images/logos/actor/remote_subject.png
373
- - base/app/assets/images/logos/actor/remote_user.png
374
388
  - base/app/assets/images/logos/actor/user.png
375
389
  - base/app/assets/images/logos/contact/group.png
376
390
  - base/app/assets/images/logos/contact/user.png
@@ -476,7 +490,6 @@ files:
476
490
  - base/app/controllers/relation/customs_controller.rb
477
491
  - base/app/controllers/search_controller.rb
478
492
  - base/app/controllers/settings_controller.rb
479
- - base/app/controllers/subjects_controller.rb
480
493
  - base/app/controllers/tags_controller.rb
481
494
  - base/app/controllers/ties_controller.rb
482
495
  - base/app/controllers/users_controller.rb
@@ -532,6 +545,7 @@ files:
532
545
  - base/app/views/activities/_options.html.erb
533
546
  - base/app/views/activities/_root.html.erb
534
547
  - base/app/views/activities/_wall.html.erb
548
+ - base/app/views/activities/index.atom.builder
535
549
  - base/app/views/activities/index.html.erb
536
550
  - base/app/views/activities/index.js.erb
537
551
  - base/app/views/activity_actions/_follow_form.html.erb
@@ -539,10 +553,10 @@ files:
539
553
  - base/app/views/activity_actions/_update.js.erb
540
554
  - base/app/views/activity_actions/create.js.erb
541
555
  - base/app/views/activity_actions/update.js.erb
556
+ - base/app/views/activity_objects/_activity_object.atom.erb
542
557
  - base/app/views/activity_objects/_activity_object.html.erb
543
558
  - base/app/views/actors/_actor.html.erb
544
559
  - base/app/views/actors/_actor_cheesecake.html.erb
545
- - base/app/views/api/activity_atom_feed.atom.builder
546
560
  - base/app/views/audience/_list.html.erb
547
561
  - base/app/views/audience/index.js.erb
548
562
  - base/app/views/avatars/index.html.erb
@@ -599,7 +613,6 @@ files:
599
613
  - base/app/views/frontpage/_caracteristics.html.erb
600
614
  - base/app/views/frontpage/_social_networks.html.erb
601
615
  - base/app/views/frontpage/_sponsor.html.erb
602
- - base/app/views/frontpage/host_meta.xml.builder
603
616
  - base/app/views/frontpage/index.html.erb
604
617
  - base/app/views/groups/_group.html.erb
605
618
  - base/app/views/groups/_group_focus_search.html.erb
@@ -786,6 +799,9 @@ files:
786
799
  - base/lib/social_stream-base.rb
787
800
  - base/lib/social_stream/ability.rb
788
801
  - base/lib/social_stream/ability/base.rb
802
+ - base/lib/social_stream/activity_streams.rb
803
+ - base/lib/social_stream/activity_streams/subtype.rb
804
+ - base/lib/social_stream/activity_streams/supertype.rb
789
805
  - base/lib/social_stream/base/dependencies.rb
790
806
  - base/lib/social_stream/base/engine.rb
791
807
  - base/lib/social_stream/base/thinking-sphinx.rb
@@ -821,6 +837,7 @@ files:
821
837
  - base/lib/tasks/workers.rake
822
838
  - base/lib/thinking-sphinx/social_stream.rb
823
839
  - base/social_stream-base.gemspec
840
+ - base/spec/controllers/activities_controller_spec.rb
824
841
  - base/spec/controllers/audience_controller_spec.rb
825
842
  - base/spec/controllers/comments_controller_spec.rb
826
843
  - base/spec/controllers/contacts_controller_spec.rb
@@ -885,18 +902,20 @@ files:
885
902
  - base/spec/integration/navigation_spec.rb
886
903
  - base/spec/integration/resque_access_spec.rb
887
904
  - base/spec/models/activity_action_spec.rb
888
- - base/spec/models/activity_authorization_spec.rb
889
905
  - base/spec/models/activity_spec.rb
906
+ - base/spec/models/activity_wall_spec.rb
890
907
  - base/spec/models/actor_spec.rb
891
908
  - base/spec/models/contact_spec.rb
892
909
  - base/spec/models/group_spec.rb
893
910
  - base/spec/models/like_spec.rb
911
+ - base/spec/models/post_authorization_spec.rb
894
912
  - base/spec/models/post_spec.rb
895
913
  - base/spec/models/profile_spec.rb
896
914
  - base/spec/models/relation_follow_spec.rb
897
915
  - base/spec/models/relation_spec.rb
898
916
  - base/spec/models/tie_spec.rb
899
917
  - base/spec/models/user_spec.rb
918
+ - base/spec/social_stream_activity_streams_spec.rb
900
919
  - base/spec/social_stream_spec.rb
901
920
  - base/spec/spec_helper.rb
902
921
  - base/spec/support/cancan.rb
@@ -1152,6 +1171,8 @@ files:
1152
1171
  - events/app/assets/stylesheets/social_stream-events.css
1153
1172
  - events/app/controllers/events_controller.rb
1154
1173
  - events/app/controllers/rooms_controller.rb
1174
+ - events/app/decorators/social_stream/base/actor_decorator.rb
1175
+ - events/app/decorators/social_stream/base/document_decorator.rb
1155
1176
  - events/app/helpers/events_helper.rb
1156
1177
  - events/app/models/activity_object_property/poster.rb
1157
1178
  - events/app/models/event.rb
@@ -1337,6 +1358,90 @@ files:
1337
1358
  - linkser/vendor/assets/stylesheets/jplayer.blue.monday.video.play.png
1338
1359
  - linkser/vendor/assets/stylesheets/jquery.lightbox.css
1339
1360
  - linkser/vendor/assets/stylesheets/pbar-ani.gif
1361
+ - ostatus/Gemfile
1362
+ - ostatus/MIT-LICENSE
1363
+ - ostatus/README.rdoc
1364
+ - ostatus/Rakefile
1365
+ - ostatus/app/assets/images/logos/actor/remote_subject.png
1366
+ - ostatus/app/assets/images/logos/contact/remote_subject.png
1367
+ - ostatus/app/assets/images/logos/original/remote_subject.png
1368
+ - ostatus/app/assets/images/logos/profile/remote_subject.png
1369
+ - ostatus/app/controllers/host_meta_controller.rb
1370
+ - ostatus/app/controllers/pshb_controller.rb
1371
+ - ostatus/app/controllers/remote_subjects_controller.rb
1372
+ - ostatus/app/controllers/salmon_controller.rb
1373
+ - ostatus/app/controllers/subjects_controller.rb
1374
+ - ostatus/app/controllers/webfinger_controller.rb
1375
+ - ostatus/app/decorators/social_stream/base/activity_decorator.rb
1376
+ - ostatus/app/decorators/social_stream/base/actor_decorator.rb
1377
+ - ostatus/app/decorators/social_stream/base/audience_decorator.rb
1378
+ - ostatus/app/decorators/social_stream/base/relation/custom_decorator.rb
1379
+ - ostatus/app/decorators/social_stream/base/tie_decorator.rb
1380
+ - ostatus/app/models/actor_key.rb
1381
+ - ostatus/app/models/remote_subject.rb
1382
+ - ostatus/app/views/remote_subjects/_show.html.erb
1383
+ - ostatus/app/views/remote_subjects/show.html.erb
1384
+ - ostatus/config/locales/en.yml
1385
+ - ostatus/config/routes.rb
1386
+ - ostatus/db/migrate/20120905145030_create_social_stream_ostatus.rb
1387
+ - ostatus/db/migrate/20120918194708_create_actor_keys.rb
1388
+ - ostatus/lib/generators/social_stream/ostatus/install_generator.rb
1389
+ - ostatus/lib/generators/social_stream/ostatus/templates/initializer.rb
1390
+ - ostatus/lib/social_stream-ostatus.rb
1391
+ - ostatus/lib/social_stream/migrations/ostatus.rb
1392
+ - ostatus/lib/social_stream/ostatus/activity_streams.rb
1393
+ - ostatus/lib/social_stream/ostatus/controllers/debug_requests.rb
1394
+ - ostatus/lib/social_stream/ostatus/engine.rb
1395
+ - ostatus/lib/social_stream/ostatus/models/activity.rb
1396
+ - ostatus/lib/social_stream/ostatus/models/actor.rb
1397
+ - ostatus/lib/social_stream/ostatus/models/audience.rb
1398
+ - ostatus/lib/social_stream/ostatus/models/object.rb
1399
+ - ostatus/lib/social_stream/ostatus/models/relation/custom.rb
1400
+ - ostatus/lib/social_stream/ostatus/models/tie.rb
1401
+ - ostatus/lib/social_stream/ostatus/version.rb
1402
+ - ostatus/social_stream-ostatus.gemspec
1403
+ - ostatus/spec/controllers/host_meta_controller_spec.rb
1404
+ - ostatus/spec/controllers/remote_subjects_controller_spec.rb
1405
+ - ostatus/spec/controllers/webfinger_controller_spec.rb
1406
+ - ostatus/spec/dummy/Rakefile
1407
+ - ostatus/spec/dummy/app/controllers/application_controller.rb
1408
+ - ostatus/spec/dummy/app/helpers/application_helper.rb
1409
+ - ostatus/spec/dummy/app/views/layouts/application.html.erb
1410
+ - ostatus/spec/dummy/config.ru
1411
+ - ostatus/spec/dummy/config/application.rb
1412
+ - ostatus/spec/dummy/config/boot.rb
1413
+ - ostatus/spec/dummy/config/database.yml
1414
+ - ostatus/spec/dummy/config/environment.rb
1415
+ - ostatus/spec/dummy/config/environments/development.rb
1416
+ - ostatus/spec/dummy/config/environments/production.rb
1417
+ - ostatus/spec/dummy/config/environments/test.rb
1418
+ - ostatus/spec/dummy/config/initializers/backtrace_silencers.rb
1419
+ - ostatus/spec/dummy/config/initializers/inflections.rb
1420
+ - ostatus/spec/dummy/config/initializers/mime_types.rb
1421
+ - ostatus/spec/dummy/config/initializers/secret_token.rb
1422
+ - ostatus/spec/dummy/config/initializers/session_store.rb
1423
+ - ostatus/spec/dummy/config/locales/en.yml
1424
+ - ostatus/spec/dummy/config/routes.rb
1425
+ - ostatus/spec/dummy/public/404.html
1426
+ - ostatus/spec/dummy/public/422.html
1427
+ - ostatus/spec/dummy/public/500.html
1428
+ - ostatus/spec/dummy/public/favicon.ico
1429
+ - ostatus/spec/dummy/public/javascripts/application.js
1430
+ - ostatus/spec/dummy/public/javascripts/controls.js
1431
+ - ostatus/spec/dummy/public/javascripts/dragdrop.js
1432
+ - ostatus/spec/dummy/public/javascripts/effects.js
1433
+ - ostatus/spec/dummy/public/javascripts/prototype.js
1434
+ - ostatus/spec/dummy/public/javascripts/rails.js
1435
+ - ostatus/spec/dummy/public/stylesheets/.gitkeep
1436
+ - ostatus/spec/dummy/script/rails
1437
+ - ostatus/spec/factories/remote_subject.rb
1438
+ - ostatus/spec/integration/navigation_spec.rb
1439
+ - ostatus/spec/models/actor_key_spec.rb
1440
+ - ostatus/spec/models/post_spec.rb
1441
+ - ostatus/spec/models/remote_subject_spec.rb
1442
+ - ostatus/spec/social_stream_ostatus.spec.rb
1443
+ - ostatus/spec/social_stream_ostatus_activity_streams.spec.rb
1444
+ - ostatus/spec/spec_helper.rb
1340
1445
  - presence/.gitignore
1341
1446
  - presence/Gemfile
1342
1447
  - presence/Rakefile
@@ -1417,6 +1522,8 @@ files:
1417
1522
  - presence/app/assets/stylesheets/chat.css.scss
1418
1523
  - presence/app/assets/stylesheets/social_stream-presence.css
1419
1524
  - presence/app/controllers/xmpp_controller.rb
1525
+ - presence/app/decorators/social_stream/base/models/group_decorator.rb
1526
+ - presence/app/decorators/social_stream/base/models/tie_decorator.rb
1420
1527
  - presence/app/helpers/xmpp_helper.rb
1421
1528
  - presence/app/views/chat/_contacts.html.erb
1422
1529
  - presence/app/views/chat/_index.html.erb
@@ -1,7 +0,0 @@
1
- class SubjectsController < ApplicationController
2
- def lrdd
3
- actor = Actor.find_by_webfinger!(params[:id])
4
-
5
- redirect_to polymorphic_path(actor.subject, :format => :xrd)
6
- end
7
- end
@@ -1,40 +0,0 @@
1
- atom_feed({'xmlns:activity' => 'http://activitystrea.ms/spec/1.0/'}) do |feed|
2
- feed.title(@subject.name + ' public stream')
3
- feed.updated(@activities.first.updated_at)
4
- feed.author do
5
- feed.name(@subject.name)
6
- end
7
-
8
- for activity in @activities
9
- feed.entry(activity) do |entry|
10
- if activity.class.name != "Tie" and activity.activity_verb.name == "post"
11
- #Atom compliant for not ActivityStream readers
12
- entry.title('Activity')
13
- entry.summary(activity.direct_object.text)
14
-
15
- #ActivityStream compliant
16
-
17
- entry.author do |a|
18
- a.name(activity.sender_subject.name)
19
- a.tag!('activity:object-type','person')
20
- end
21
-
22
- entry.tag!('activity:verb',activity.activity_verb.name)
23
-
24
- entry.tag!('activity:object') do |act_ob|
25
- act_ob.title('Activity')
26
- act_ob.tag!('activity:object-type','status')
27
- act_ob.publised(activity.created_at)
28
- end
29
-
30
- entry.content(activity.direct_object.text,:type=>'text/html')
31
- end
32
- end
33
- end
34
-
35
- feed.link :rel => 'self', :href=>request.url
36
- feed.link :rel => 'next', :href=>api_my_home_url+'?page='+(params[:page].to_i+1).to_s
37
- if params[:page].to_i != 1
38
- feed.link :rel => 'previous', :href=>api_my_home_url+'?page='+(params[:page].to_i-1).to_s
39
- end
40
- end
@@ -1,11 +0,0 @@
1
- xml.instruct!
2
- xml.XRD :xmlns => 'http://docs.oasis-open.org/ns/xri/xrd-1.0',
3
- "xmlns:hm" => 'http://host-meta.net/ns/1.0' do
4
-
5
- xml.tag! "hm:Host", request.host_with_port
6
-
7
- xml.Link :rel => "lrdd",
8
- :template => "#{ root_url }subjects/lrdd/{uri}",
9
- :type => "application/xrd+xml"
10
-
11
- end
@@ -1,354 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module ActivityTestHelper
4
- def create_activity(contact, relations)
5
- @activity = Factory(:post,
6
- :author_id => contact.sender.id,
7
- :owner_id => contact.receiver.id,
8
- :user_author_id => contact.sender.id,
9
- :relation_ids => Array(Relation.normalize_id(relations))).post_activity
10
- end
11
-
12
- def create_ability_accessed_by(subject)
13
- @ability = Ability.new(subject)
14
- end
15
-
16
- def create_ability_accessed_by_related(tie_type)
17
- @tie = create_related_tie(tie_type)
18
- @related = @tie.receiver_subject
19
- @ability = Ability.new(@related)
20
- end
21
-
22
- def create_ability_accessed_publicly
23
- u = Factory(:user)
24
- @ability = Ability.new(u)
25
- end
26
-
27
- def create_related_tie(tie_type)
28
- Factory(tie_type, :contact => Factory(:contact, :sender => Actor.normalize(@subject)))
29
- end
30
-
31
- shared_examples_for "Allows Creating" do
32
- it "should allow create" do
33
- @ability.should be_able_to(:create, @activity)
34
- end
35
- end
36
-
37
- shared_examples_for "Allows Reading" do
38
- it "should allow read" do
39
- @ability.should be_able_to(:read, @activity)
40
- end
41
- end
42
-
43
- shared_examples_for "Allows Updating" do
44
- it "should allow update" do
45
- @ability.should be_able_to(:update, @activity)
46
- end
47
- end
48
-
49
- shared_examples_for "Allows Destroying" do
50
- it "should allow destroy" do
51
- @ability.should be_able_to(:destroy, @activity)
52
- end
53
- end
54
-
55
- shared_examples_for "Denies Creating" do
56
- it "should deny create" do
57
- @ability.should_not be_able_to(:create, @activity)
58
- end
59
- end
60
-
61
- shared_examples_for "Denies Reading" do
62
- it "should deny read" do
63
- @ability.should_not be_able_to(:read, @activity)
64
- end
65
- end
66
-
67
- shared_examples_for "Denies Updating" do
68
- it "should deny update" do
69
- @ability.should_not be_able_to(:update, @activity)
70
- end
71
- end
72
-
73
- shared_examples_for "Denies Destroying" do
74
- it "should deny destroy" do
75
- @ability.should_not be_able_to(:destroy, @activity)
76
- end
77
- end
78
-
79
- end
80
-
81
- describe Activity do
82
- include ActivityTestHelper
83
-
84
- context "user" do
85
- before(:all) do
86
- @subject = @user = Factory(:user)
87
- end
88
-
89
- context "with public activity" do
90
- before do
91
- contact = @user.contact_to!(@user)
92
- create_activity(contact, Relation::Public.instance)
93
- end
94
-
95
- describe "sender home" do
96
- it "should include activity" do
97
- @activity.sender.wall(:home).should include(@activity)
98
- end
99
- end
100
-
101
- describe "sender profile" do
102
- context "accessed by alien" do
103
- it "should include activity" do
104
- @activity.sender.wall(:profile,
105
- :for => Factory(:user)).should include(@activity)
106
- end
107
- end
108
-
109
- context "accessed by anonymous" do
110
- it "should include activity" do
111
- @activity.sender.wall(:profile,
112
- :for => nil).should include(@activity)
113
- end
114
- end
115
- end
116
- end
117
-
118
- describe "belonging to friend" do
119
- before do
120
- @tie = create_related_tie(:friend)
121
- create_activity(@tie.contact.inverse!, @tie.relation)
122
- end
123
-
124
- describe "accessed by sender" do
125
- before do
126
- create_ability_accessed_by(@tie.receiver_subject)
127
- end
128
-
129
- it_should_behave_like "Allows Creating"
130
- it_should_behave_like "Allows Reading"
131
- it_should_behave_like "Allows Updating"
132
- it_should_behave_like "Allows Destroying"
133
- end
134
-
135
- describe "accessed by different friend" do
136
- before do
137
- create_ability_accessed_by_related :friend
138
- end
139
-
140
- it_should_behave_like "Denies Creating"
141
- it_should_behave_like "Allows Reading"
142
- it_should_behave_like "Denies Updating"
143
- it_should_behave_like "Denies Destroying"
144
- end
145
-
146
- describe "accessed by acquaintance" do
147
- before do
148
- create_ability_accessed_by_related :acquaintance
149
- end
150
-
151
- it_should_behave_like "Denies Creating"
152
- it_should_behave_like "Denies Reading"
153
- it_should_behave_like "Denies Updating"
154
- it_should_behave_like "Denies Destroying"
155
- end
156
-
157
- describe "accessed publicly" do
158
- before do
159
- create_ability_accessed_publicly
160
- end
161
-
162
- it_should_behave_like "Denies Creating"
163
- it_should_behave_like "Denies Reading"
164
- it_should_behave_like "Denies Updating"
165
- it_should_behave_like "Denies Destroying"
166
- end
167
- end
168
-
169
- describe "belonging to user's friend relation" do
170
- before do
171
- create_activity(@user.contact_to!(@user), @user.relation_custom('friend'))
172
- end
173
-
174
- describe "accessed by the sender" do
175
- before do
176
- create_ability_accessed_by(@user)
177
- end
178
-
179
- it_should_behave_like "Allows Creating"
180
- it_should_behave_like "Allows Reading"
181
- it_should_behave_like "Allows Updating"
182
- it_should_behave_like "Allows Destroying"
183
- end
184
-
185
- describe "accessed by a friend" do
186
- before do
187
- create_ability_accessed_by_related :friend
188
- end
189
-
190
- it_should_behave_like "Denies Creating"
191
- it_should_behave_like "Allows Reading"
192
- it_should_behave_like "Denies Updating"
193
- it_should_behave_like "Denies Destroying"
194
- end
195
-
196
- describe "accessed by acquaintance" do
197
- before do
198
- create_ability_accessed_by_related :acquaintance
199
- end
200
-
201
- it_should_behave_like "Denies Creating"
202
- it_should_behave_like "Denies Reading"
203
- it_should_behave_like "Denies Updating"
204
- it_should_behave_like "Denies Destroying"
205
- end
206
-
207
- describe "accessed publicly" do
208
- before do
209
- create_ability_accessed_publicly
210
- end
211
-
212
- it_should_behave_like "Denies Creating"
213
- it_should_behave_like "Denies Reading"
214
- it_should_behave_like "Denies Updating"
215
- it_should_behave_like "Denies Destroying"
216
- end
217
- end
218
-
219
- describe "belonging to user's public relation" do
220
-
221
- before do
222
- create_activity(@user.contact_to!(@user), Relation::Public.instance)
223
- end
224
-
225
- describe "accessed by the sender" do
226
- before do
227
- create_ability_accessed_by(@user)
228
- end
229
-
230
- it_should_behave_like "Allows Creating"
231
- it_should_behave_like "Allows Reading"
232
- it_should_behave_like "Allows Updating"
233
- it_should_behave_like "Allows Destroying"
234
- end
235
-
236
- describe "accessed by a friend" do
237
- before do
238
- create_ability_accessed_by_related :friend
239
- end
240
-
241
- it_should_behave_like "Denies Creating"
242
- it_should_behave_like "Allows Reading"
243
- it_should_behave_like "Denies Updating"
244
- it_should_behave_like "Denies Destroying"
245
- end
246
-
247
- describe "accessed by acquaintance" do
248
- before do
249
- create_ability_accessed_by_related :acquaintance
250
- end
251
-
252
- it_should_behave_like "Denies Creating"
253
- it_should_behave_like "Allows Reading"
254
- it_should_behave_like "Denies Updating"
255
- it_should_behave_like "Denies Destroying"
256
- end
257
-
258
- describe "accessed publicly" do
259
- before do
260
- create_ability_accessed_publicly
261
- end
262
-
263
- it_should_behave_like "Denies Creating"
264
- it_should_behave_like "Allows Reading"
265
- it_should_behave_like "Denies Updating"
266
- it_should_behave_like "Denies Destroying"
267
- end
268
- end
269
-
270
- describe "belonging to other user's public relation" do
271
-
272
- before do
273
- @tie = Factory(:public)
274
- create_activity @tie.contact, Relation::Public.instance
275
- create_ability_accessed_by @tie.receiver_subject
276
- end
277
-
278
- it_should_behave_like "Denies Creating"
279
- end
280
-
281
- describe "build to non replied contact" do
282
- before do
283
- @tie = Factory(:friend, :contact => Factory(:contact, :sender => @user.actor))
284
- partner = @tie.receiver
285
- @activity = Activity.new :author => @user.actor,
286
- :user_author => @user.author,
287
- :owner => partner
288
-
289
- create_ability_accessed_by @tie.sender_subject
290
- end
291
-
292
- it_should_behave_like "Denies Creating"
293
- end
294
- end
295
-
296
- context "group" do
297
- before(:all) do
298
- @subject = @group = Factory(:group)
299
- end
300
-
301
- describe "belonging to member tie" do
302
- before do
303
- @tie = create_related_tie(:member)
304
- create_activity @tie.contact.inverse!, @tie.relation
305
- end
306
-
307
- describe "accessed by same member" do
308
- before do
309
- create_ability_accessed_by @tie.receiver_subject
310
- end
311
-
312
- it_should_behave_like "Allows Creating"
313
- it_should_behave_like "Allows Reading"
314
- it_should_behave_like "Allows Updating"
315
- it_should_behave_like "Allows Destroying"
316
- end
317
-
318
- describe "accessed by different member" do
319
- before do
320
- create_ability_accessed_by_related :member
321
- end
322
-
323
- it_should_behave_like "Denies Creating"
324
- it_should_behave_like "Allows Reading"
325
- it_should_behave_like "Denies Updating"
326
- it_should_behave_like "Denies Destroying"
327
- end
328
-
329
- describe "accessed by partner" do
330
- before do
331
- create_ability_accessed_by_related :partner
332
- end
333
-
334
- it_should_behave_like "Denies Creating"
335
- it_should_behave_like "Denies Reading"
336
- it_should_behave_like "Denies Updating"
337
- it_should_behave_like "Denies Destroying"
338
- end
339
-
340
- describe "accessed publicly" do
341
- before do
342
- create_ability_accessed_publicly
343
- end
344
-
345
- it_should_behave_like "Denies Creating"
346
- it_should_behave_like "Denies Reading"
347
- it_should_behave_like "Denies Updating"
348
- it_should_behave_like "Denies Destroying"
349
- end
350
- end
351
- end
352
- end
353
-
354
-