social_stream 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.rdoc +2 -1
  4. data/base/README.rdoc +2 -0
  5. data/base/app/assets/javascripts/social_stream/relation_customs.js +8 -3
  6. data/base/app/assets/javascripts/social_stream/timeline.js +1 -2
  7. data/base/app/assets/javascripts/social_stream/wall.js +11 -0
  8. data/base/app/assets/stylesheets/social_stream/base/contacts/_contacts.css.sass +1 -0
  9. data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +1 -42
  10. data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +3 -2
  11. data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +4 -1
  12. data/base/app/assets/stylesheets/social_stream/base/mixins/_layout.css.sass +48 -0
  13. data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +21 -25
  14. data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +1 -27
  15. data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +1 -24
  16. data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +2 -11
  17. data/base/app/assets/stylesheets/social_stream/base/toolbar/layout/_toolbar.css.sass +18 -5
  18. data/base/app/controllers/contacts_controller.rb +17 -22
  19. data/base/app/controllers/permissions_controller.rb +3 -1
  20. data/base/app/helpers/contacts_helper.rb +9 -14
  21. data/base/app/models/actor.rb +28 -2
  22. data/base/app/models/contact.rb +18 -1
  23. data/base/app/models/permission.rb +21 -1
  24. data/base/app/models/relation.rb +14 -15
  25. data/base/app/models/relation/custom.rb +27 -24
  26. data/base/app/views/activities/_new.html.erb +1 -1
  27. data/base/app/views/contacts/{_link_custom.html.erb → _button.html.erb} +0 -0
  28. data/base/app/views/contacts/_contact.html.erb +1 -1
  29. data/base/app/views/contacts/index.html.erb +1 -1
  30. data/base/app/views/devise/passwords/new.html.erb +6 -8
  31. data/base/app/views/devise/registrations/new.html.erb +5 -7
  32. data/base/app/views/layouts/application.html.erb +7 -8
  33. data/base/app/views/permissions/_index.html.erb +12 -12
  34. data/base/app/views/permissions/_list.html.erb +10 -0
  35. data/base/app/views/permissions/index.js.erb +1 -15
  36. data/base/app/views/posts/create.js.erb +5 -4
  37. data/base/app/views/profiles/_personal.html.erb +2 -2
  38. data/base/app/views/relation/customs/_custom.html.erb +2 -27
  39. data/base/app/views/relation/customs/_form.html.erb +1 -1
  40. data/base/app/views/relation/customs/_index.html.erb +1 -1
  41. data/base/app/views/relation/customs/_list.html.erb +5 -4
  42. data/base/app/views/relation/customs/index.html.erb +1 -1
  43. data/base/app/views/relations/_relation.html.erb +33 -0
  44. data/base/config/locales/en.yml +10 -5
  45. data/base/config/locales/es.yml +20 -40
  46. data/base/config/locales/pt.yml +5 -1
  47. data/base/config/locales/zh.yml +17 -9
  48. data/base/lib/generators/social_stream/base/install_generator.rb +0 -4
  49. data/base/lib/generators/social_stream/base/templates/initializer.rb +24 -0
  50. data/base/lib/social_stream/base.rb +70 -0
  51. data/base/lib/social_stream/base/ability.rb +13 -1
  52. data/base/lib/social_stream/base/version.rb +1 -1
  53. data/base/lib/social_stream/test_helpers/controllers.rb +12 -6
  54. data/base/social_stream-base.gemspec +1 -1
  55. data/base/spec/controllers/permissions_controller_spec.rb +2 -6
  56. data/documents/app/assets/stylesheets/social_stream-documents.css.sass +2 -0
  57. data/documents/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass +1 -2
  58. data/documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +2 -13
  59. data/documents/app/assets/stylesheets/social_stream/documents/mixins/_mixins.css.sass +19 -0
  60. data/documents/lib/social_stream-documents.rb +0 -2
  61. data/documents/lib/social_stream/documents/version.rb +1 -1
  62. data/documents/social_stream-documents.gemspec +1 -1
  63. data/events/lib/social_stream/events/version.rb +1 -1
  64. data/events/social_stream-events.gemspec +1 -1
  65. data/lib/social_stream/version.rb +1 -1
  66. data/linkser/app/assets/javascripts/social_stream/linkser.wall.js +11 -14
  67. data/linkser/app/views/links/create.js.erb +3 -4
  68. data/linkser/lib/social_stream/linkser/version.rb +1 -1
  69. data/linkser/social_stream-linkser.gemspec +1 -1
  70. data/oauth2_server/app/assets/stylesheets/social_stream-oauth2_server.css.sass +1 -1
  71. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/_applications-oauth2server.css.sass +1 -1
  72. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/layout/_applications-oauth2server.css.sass +4 -0
  73. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/_create-oauth2server.css.sass +3 -7
  74. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixin.css.sass +10 -0
  75. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/layout/_show-oauth2server.css.sass +15 -6
  76. data/oauth2_server/app/controllers/site/clients_controller.rb +14 -11
  77. data/oauth2_server/app/models/relation/manager.rb +19 -0
  78. data/oauth2_server/app/models/site/client.rb +10 -6
  79. data/oauth2_server/app/views/site/clients/_avatar.html.erb +15 -0
  80. data/oauth2_server/app/views/site/clients/_edit.html.erb +6 -0
  81. data/oauth2_server/app/views/site/clients/_edit_step_2.html.erb +11 -0
  82. data/oauth2_server/app/views/site/clients/_edit_step_3.html.erb +10 -0
  83. data/oauth2_server/app/views/site/clients/_list.html.erb +20 -17
  84. data/oauth2_server/app/views/site/clients/edit.html.erb +5 -6
  85. data/oauth2_server/app/views/site/clients/index.html.erb +1 -1
  86. data/oauth2_server/app/views/site/clients/new.html.erb +4 -2
  87. data/oauth2_server/app/views/site/clients/show.html.erb +49 -42
  88. data/oauth2_server/config/locales/en.yml +21 -3
  89. data/oauth2_server/config/locales/es.yml +26 -11
  90. data/oauth2_server/config/locales/zh.yml +25 -0
  91. data/oauth2_server/db/migrate/20130619134332_site_client_admin_to_manager.rb +24 -0
  92. data/oauth2_server/lib/social_stream-oauth2_server.rb +1 -19
  93. data/oauth2_server/lib/social_stream/oauth2_server.rb +33 -5
  94. data/oauth2_server/lib/social_stream/oauth2_server/ability.rb +23 -0
  95. data/oauth2_server/lib/social_stream/oauth2_server/engine.rb +6 -0
  96. data/oauth2_server/lib/social_stream/oauth2_server/models/actor.rb +2 -2
  97. data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
  98. data/oauth2_server/social_stream-oauth2_server.gemspec +1 -1
  99. data/oauth2_server/spec/controllers/site_clients_controller_authorization_spec.rb +112 -0
  100. data/oauth2_server/spec/factories/site_client.rb +2 -2
  101. data/oauth2_server/spec/models/site/client_authorization_spec.rb +20 -0
  102. data/ostatus/lib/social_stream-ostatus.rb +0 -4
  103. data/ostatus/lib/social_stream/ostatus/engine.rb +11 -0
  104. data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
  105. data/ostatus/social_stream-ostatus.gemspec +1 -1
  106. data/places/config/locales/en.yml +0 -1
  107. data/places/config/locales/es.yml +1 -2
  108. data/presence/lib/social_stream/presence/version.rb +1 -1
  109. data/presence/social_stream-presence.gemspec +1 -1
  110. data/social_stream.gemspec +7 -7
  111. metadata +30 -26
  112. data/base/app/helpers/permissions_helper.rb +0 -21
  113. data/base/lib/generators/social_stream/base/templates/relations.yml +0 -39
  114. data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixins.css.sass +0 -5
  115. data/oauth2_server/app/models/relation/admin.rb +0 -9
  116. data/oauth2_server/app/views/site/clients/_form_step1.html.erb +0 -7
  117. data/oauth2_server/app/views/site/clients/_form_step2.html.erb +0 -20
  118. data/ostatus/app/decorators/social_stream/base/relation/custom_decorator.rb +0 -3
  119. data/ostatus/lib/social_stream/ostatus/models/relation/custom.rb +0 -22
  120. data/spec/dummy/config/relations.yml +0 -39
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Ostatus
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.1.0".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 2.0.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.1.0')
16
16
  s.add_runtime_dependency('proudhon','>= 0.3.6')
17
17
  s.add_runtime_dependency('nokogiri','> 1.4.4')
18
18
 
@@ -42,7 +42,6 @@ en:
42
42
  postalcode: Postalcode
43
43
  country: Country
44
44
  not_mine: Places
45
- one: a place
46
45
  simple_all: All
47
46
  title: Places
48
47
  like:
@@ -26,7 +26,7 @@ es:
26
26
  mine: Mis lugares
27
27
  name: lugar
28
28
  name_title: Nombre del lugar
29
- one:
29
+ one: un lugar
30
30
  phone_title: Teléfono
31
31
  photo:
32
32
  button: Subir
@@ -39,7 +39,6 @@ es:
39
39
  postalcode: Código postal
40
40
  country: País
41
41
  not_mine: Lugares
42
- one: un lugar
43
42
  other: lugares
44
43
  simple_all: Todos
45
44
  title: Lugares
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Presence
3
- VERSION = "2.0.2"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  # Gem dependencies
22
- s.add_runtime_dependency('social_stream-base', '~> 2.0.4')
22
+ s.add_runtime_dependency('social_stream-base', '~> 2.1.0')
23
23
 
24
24
  s.add_runtime_dependency "xmpp4r"
25
25
 
@@ -10,13 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.files = `git ls-files`.split("\n")
11
11
 
12
12
  # Gem dependencies
13
- s.add_runtime_dependency('social_stream-base', '~> 2.0.4')
14
- s.add_runtime_dependency('social_stream-documents', '~> 2.0.4')
15
- s.add_runtime_dependency('social_stream-events', '~> 2.0.2')
16
- s.add_runtime_dependency('social_stream-linkser', '~> 2.0.0')
17
- s.add_runtime_dependency('social_stream-presence', '~> 2.0.2')
18
- s.add_runtime_dependency('social_stream-ostatus', '~> 2.0.0')
19
- s.add_runtime_dependency('social_stream-oauth2_server', '~> 2.0.3')
13
+ s.add_runtime_dependency('social_stream-base', '~> 2.1.0')
14
+ s.add_runtime_dependency('social_stream-documents', '~> 2.1.0')
15
+ s.add_runtime_dependency('social_stream-events', '~> 2.1.0')
16
+ s.add_runtime_dependency('social_stream-linkser', '~> 2.1.0')
17
+ s.add_runtime_dependency('social_stream-presence', '~> 2.1.0')
18
+ s.add_runtime_dependency('social_stream-ostatus', '~> 2.1.0')
19
+ s.add_runtime_dependency('social_stream-oauth2_server', '~> 2.1.0')
20
20
 
21
21
  # Development Gem dependencies
22
22
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GING - DIT - UPM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-18 00:00:00.000000000 Z
11
+ date: 2013-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: social_stream-base
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.4
19
+ version: 2.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.4
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: social_stream-documents
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.4
33
+ version: 2.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.4
40
+ version: 2.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: social_stream-events
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.2
47
+ version: 2.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.2
54
+ version: 2.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: social_stream-linkser
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: 2.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: 2.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: social_stream-presence
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 2.0.2
75
+ version: 2.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 2.0.2
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: social_stream-ostatus
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: 2.0.0
89
+ version: 2.1.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: 2.0.0
96
+ version: 2.1.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: social_stream-oauth2_server
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 2.0.3
103
+ version: 2.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 2.0.3
110
+ version: 2.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: capybara
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -493,7 +493,6 @@ files:
493
493
  - base/app/helpers/layouts_helper.rb
494
494
  - base/app/helpers/location_helper.rb
495
495
  - base/app/helpers/notifications_helper.rb
496
- - base/app/helpers/permissions_helper.rb
497
496
  - base/app/helpers/posts_helper.rb
498
497
  - base/app/helpers/profiles_helper.rb
499
498
  - base/app/helpers/search_helper.rb
@@ -566,9 +565,9 @@ files:
566
565
  - base/app/views/comments/_search_result.html.erb
567
566
  - base/app/views/comments/create.js.erb
568
567
  - base/app/views/comments/destroy.js.erb
568
+ - base/app/views/contacts/_button.html.erb
569
569
  - base/app/views/contacts/_contact.html.erb
570
570
  - base/app/views/contacts/_form.html.erb
571
- - base/app/views/contacts/_link_custom.html.erb
572
571
  - base/app/views/contacts/_link_follow.html.erb
573
572
  - base/app/views/contacts/_pendings.html.erb
574
573
  - base/app/views/contacts/_suggestions.html.erb
@@ -691,6 +690,7 @@ files:
691
690
  - base/app/views/objects/_show.html.erb
692
691
  - base/app/views/objects/_timeline_description.html.erb
693
692
  - base/app/views/permissions/_index.html.erb
693
+ - base/app/views/permissions/_list.html.erb
694
694
  - base/app/views/permissions/index.js.erb
695
695
  - base/app/views/posts/_post.html.erb
696
696
  - base/app/views/posts/_quick_search_result.html.erb
@@ -717,6 +717,7 @@ files:
717
717
  - base/app/views/relation/customs/destroy.js.erb
718
718
  - base/app/views/relation/customs/index.html.erb
719
719
  - base/app/views/relation/customs/update.js.erb
720
+ - base/app/views/relations/_relation.html.erb
720
721
  - base/app/views/repositories/_filter.html.erb
721
722
  - base/app/views/repositories/show.html.erb
722
723
  - base/app/views/search/_extended_search.html.erb
@@ -775,7 +776,6 @@ files:
775
776
  - base/lib/acts_as_taggable_on/social_stream.rb
776
777
  - base/lib/generators/social_stream/base/install_generator.rb
777
778
  - base/lib/generators/social_stream/base/templates/initializer.rb
778
- - base/lib/generators/social_stream/base/templates/relations.yml
779
779
  - base/lib/generators/social_stream/base/templates/social_stream.css.sass
780
780
  - base/lib/generators/social_stream/base/templates/sphinx.yml
781
781
  - base/lib/i18n-js/social_stream-base.rb
@@ -984,6 +984,7 @@ files:
984
984
  - documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass
985
985
  - documents/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass
986
986
  - documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass
987
+ - documents/app/assets/stylesheets/social_stream/documents/mixins/_mixins.css.sass
987
988
  - documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-1200px-min.css.sass
988
989
  - documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-767px-max.css.sass
989
990
  - documents/app/assets/stylesheets/social_stream/documents/responsive/_responsive-768px-979px.css.sass
@@ -1292,7 +1293,7 @@ files:
1292
1293
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-1200px-min.css.sass
1293
1294
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-767px-max.css.sass
1294
1295
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/responsive/_responsive-768px-979px.css.sass
1295
- - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixins.css.sass
1296
+ - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixin.css.sass
1296
1297
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/_show-oauth2server.css.sass
1297
1298
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/layout/_show-oauth2server.css.sass
1298
1299
  - oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/responsive/_responsive-1200px-min.css.sass
@@ -1308,16 +1309,18 @@ files:
1308
1309
  - oauth2_server/app/models/oauth2_token/access_token.rb
1309
1310
  - oauth2_server/app/models/oauth2_token/authorization_code.rb
1310
1311
  - oauth2_server/app/models/oauth2_token/refresh_token.rb
1311
- - oauth2_server/app/models/relation/admin.rb
1312
1312
  - oauth2_server/app/models/relation/auth.rb
1313
+ - oauth2_server/app/models/relation/manager.rb
1313
1314
  - oauth2_server/app/models/site/client.rb
1314
1315
  - oauth2_server/app/overrides/frontpage/_presentation/client_site_presentation.html.erb.deface
1315
1316
  - oauth2_server/app/overrides/layouts/_header_dropdown_menu/applications_entry.html.erb.deface
1316
1317
  - oauth2_server/app/views/authorizations/error.html.erb
1317
1318
  - oauth2_server/app/views/authorizations/new.html.erb
1319
+ - oauth2_server/app/views/site/clients/_avatar.html.erb
1320
+ - oauth2_server/app/views/site/clients/_edit.html.erb
1321
+ - oauth2_server/app/views/site/clients/_edit_step_2.html.erb
1322
+ - oauth2_server/app/views/site/clients/_edit_step_3.html.erb
1318
1323
  - oauth2_server/app/views/site/clients/_form.html.erb
1319
- - oauth2_server/app/views/site/clients/_form_step1.html.erb
1320
- - oauth2_server/app/views/site/clients/_form_step2.html.erb
1321
1324
  - oauth2_server/app/views/site/clients/_list.html.erb
1322
1325
  - oauth2_server/app/views/site/clients/_new.modal.html.erb
1323
1326
  - oauth2_server/app/views/site/clients/_presentation.html.erb
@@ -1330,10 +1333,12 @@ files:
1330
1333
  - oauth2_server/config/locales/zh.yml
1331
1334
  - oauth2_server/config/routes.rb
1332
1335
  - oauth2_server/db/migrate/20130115102300_create_social_stream_oauth2_server.rb
1336
+ - oauth2_server/db/migrate/20130619134332_site_client_admin_to_manager.rb
1333
1337
  - oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
1334
1338
  - oauth2_server/lib/social_stream-oauth2_server.rb
1335
1339
  - oauth2_server/lib/social_stream/migrations/oauth2_server.rb
1336
1340
  - oauth2_server/lib/social_stream/oauth2_server.rb
1341
+ - oauth2_server/lib/social_stream/oauth2_server/ability.rb
1337
1342
  - oauth2_server/lib/social_stream/oauth2_server/controllers/helpers.rb
1338
1343
  - oauth2_server/lib/social_stream/oauth2_server/engine.rb
1339
1344
  - oauth2_server/lib/social_stream/oauth2_server/models/actor.rb
@@ -1344,8 +1349,10 @@ files:
1344
1349
  - oauth2_server/social_stream-oauth2_server.gemspec
1345
1350
  - oauth2_server/spec/controllers/authorizations_controller_spec.rb
1346
1351
  - oauth2_server/spec/controllers/dummy_controller_spec.rb
1352
+ - oauth2_server/spec/controllers/site_clients_controller_authorization_spec.rb
1347
1353
  - oauth2_server/spec/factories/site_client.rb
1348
1354
  - oauth2_server/spec/models/relation/auth_spec.rb
1355
+ - oauth2_server/spec/models/site/client_authorization_spec.rb
1349
1356
  - oauth2_server/spec/models/site/client_spec.rb
1350
1357
  - ostatus/Gemfile
1351
1358
  - ostatus/MIT-LICENSE
@@ -1364,7 +1371,6 @@ files:
1364
1371
  - ostatus/app/decorators/social_stream/base/actor_decorator.rb
1365
1372
  - ostatus/app/decorators/social_stream/base/audience_decorator.rb
1366
1373
  - ostatus/app/decorators/social_stream/base/contact_decorator.rb
1367
- - ostatus/app/decorators/social_stream/base/relation/custom_decorator.rb
1368
1374
  - ostatus/app/decorators/social_stream/base/tie_decorator.rb
1369
1375
  - ostatus/app/models/actor_key.rb
1370
1376
  - ostatus/app/models/remote_subject.rb
@@ -1386,7 +1392,6 @@ files:
1386
1392
  - ostatus/lib/social_stream/ostatus/models/audience.rb
1387
1393
  - ostatus/lib/social_stream/ostatus/models/contact.rb
1388
1394
  - ostatus/lib/social_stream/ostatus/models/object.rb
1389
- - ostatus/lib/social_stream/ostatus/models/relation/custom.rb
1390
1395
  - ostatus/lib/social_stream/ostatus/models/tie.rb
1391
1396
  - ostatus/lib/social_stream/ostatus/version.rb
1392
1397
  - ostatus/social_stream-ostatus.gemspec
@@ -1642,7 +1647,6 @@ files:
1642
1647
  - spec/dummy/config/initializers/wrap_parameters.rb
1643
1648
  - spec/dummy/config/locales/en.yml
1644
1649
  - spec/dummy/config/navigation.rb
1645
- - spec/dummy/config/relations.yml
1646
1650
  - spec/dummy/config/routes.rb
1647
1651
  - spec/dummy/config/sphinx.yml
1648
1652
  - spec/dummy/db/migrate/.gitkeep
@@ -1,21 +0,0 @@
1
- module PermissionsHelper
2
- DEFAULT_PERMISSIONS =
3
- [
4
- [ "read", "activity" ],
5
- [ "create", "activity" ],
6
- [ "follow", nil ],
7
- [ "represent", nil ],
8
- [ "notify", nil ]
9
- ]
10
-
11
- def default_permissions
12
- @default_permissions ||=
13
- DEFAULT_PERMISSIONS.map{ |p|
14
- Permission.find_or_create_by_action_and_object *p
15
- }
16
- end
17
-
18
- def disable_permission_edit? perm
19
- (perm.action == 'represent') and (@relation.ties.size > 0) and perm.relations.include?(@relation) and (perm.relations.where(:actor_id => @relation.actor_id).find_all{|r| r.ties.size > 0}.size <= 1)
20
- end
21
- end
@@ -1,39 +0,0 @@
1
- # Default relations for Social Stream
2
- #
3
- # Define the default relations and permissions offered by your application
4
- # Though subjects (user, groups, etc.) can customize their own relations,
5
- # these are the defaults to start up with
6
- #
7
- # Detailed information on permissions is available at:
8
- # http://rdoc.info/gems/social_stream-base/Permission
9
- #
10
- user:
11
- friend:
12
- name: friend
13
- permissions:
14
- - [ follow ]
15
- - [ create, activity ]
16
- - [ read, activity ]
17
- acquaintance:
18
- name: acquaintance
19
- permissions:
20
- - [ read, activity ]
21
- colleague:
22
- name: colleague
23
- permissions:
24
- - [ follow ]
25
- - [ create, activity ]
26
- - [ read, activity ]
27
-
28
- group:
29
- member:
30
- name: member
31
- permissions:
32
- - [ represent ]
33
- - [ create, activity ]
34
- - [ read, activity ]
35
- - [ read, tie ]
36
- partner:
37
- name: partner
38
- permissions:
39
- - [ read, activity ]
@@ -1,5 +0,0 @@
1
- @mixin principal-box
2
- @include border-radius(5px)
3
- @include box-shadow (1px 1px 15px 0px rgba(50, 50, 50, 0.1))
4
- border: 1px solid
5
- border-color: rgba(0,0,0, 0.1)
@@ -1,9 +0,0 @@
1
- # Administer client sites
2
- class Relation::Admin < Relation::Single
3
- class << self
4
- def create_activity?
5
- false
6
- end
7
- end
8
- end
9
-
@@ -1,7 +0,0 @@
1
- <%= image_tag 'step_1.png' %>
2
-
3
- <article class="new_app">
4
- <%= render partial: 'form' %>
5
- </article>
6
-
7
-
@@ -1,20 +0,0 @@
1
- <img src="/assets/step_2.png">
2
- <article class="permissions">
3
- <h4>
4
- <%= raw t('permission.of_relation.choose', :name => h(@relation.name)) %>
5
- </h4>
6
-
7
- <%= form_for @relation, url: polymorphic_path(@relation, section: 'permissions'), remote: true do |f| %>
8
- <%= hidden_field_tag 'relation_custom[permission_ids][]', "" %>
9
-
10
- <ul>
11
- <% default_permissions.each do |p| %>
12
- <li>
13
- <%= check_box_tag 'relation_custom[permission_ids][]', p.id, @relation.permission_ids.include?(p.id), id: "checkbox_relation_#{ @relation.id }_permission_#{ p.id }" %>
14
- <%= label_tag "checkbox_relation_#{ @relation.id }_permission_#{ p.id }", p.description(:brief, subject: current_subject), title: p.description(:detailed, subject: current_subject, state: (@relation.permission_ids.include?(p.id) ? 'positive' : 'negative'), relation: @relation.name) %>
15
- </li>
16
- <% end %>
17
- </ul>
18
- <% end %>
19
- <%= f.submit :next %>
20
- </article>