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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.rdoc +2 -1
- data/base/README.rdoc +2 -0
- data/base/app/assets/javascripts/social_stream/relation_customs.js +8 -3
- data/base/app/assets/javascripts/social_stream/timeline.js +1 -2
- data/base/app/assets/javascripts/social_stream/wall.js +11 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/_contacts.css.sass +1 -0
- data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +1 -42
- data/base/app/assets/stylesheets/social_stream/base/footer/layout/_footer.css.sass +3 -2
- data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +4 -1
- data/base/app/assets/stylesheets/social_stream/base/mixins/_layout.css.sass +48 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +21 -25
- data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +1 -27
- data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +1 -24
- data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +2 -11
- data/base/app/assets/stylesheets/social_stream/base/toolbar/layout/_toolbar.css.sass +18 -5
- data/base/app/controllers/contacts_controller.rb +17 -22
- data/base/app/controllers/permissions_controller.rb +3 -1
- data/base/app/helpers/contacts_helper.rb +9 -14
- data/base/app/models/actor.rb +28 -2
- data/base/app/models/contact.rb +18 -1
- data/base/app/models/permission.rb +21 -1
- data/base/app/models/relation.rb +14 -15
- data/base/app/models/relation/custom.rb +27 -24
- data/base/app/views/activities/_new.html.erb +1 -1
- data/base/app/views/contacts/{_link_custom.html.erb → _button.html.erb} +0 -0
- data/base/app/views/contacts/_contact.html.erb +1 -1
- data/base/app/views/contacts/index.html.erb +1 -1
- data/base/app/views/devise/passwords/new.html.erb +6 -8
- data/base/app/views/devise/registrations/new.html.erb +5 -7
- data/base/app/views/layouts/application.html.erb +7 -8
- data/base/app/views/permissions/_index.html.erb +12 -12
- data/base/app/views/permissions/_list.html.erb +10 -0
- data/base/app/views/permissions/index.js.erb +1 -15
- data/base/app/views/posts/create.js.erb +5 -4
- data/base/app/views/profiles/_personal.html.erb +2 -2
- data/base/app/views/relation/customs/_custom.html.erb +2 -27
- data/base/app/views/relation/customs/_form.html.erb +1 -1
- data/base/app/views/relation/customs/_index.html.erb +1 -1
- data/base/app/views/relation/customs/_list.html.erb +5 -4
- data/base/app/views/relation/customs/index.html.erb +1 -1
- data/base/app/views/relations/_relation.html.erb +33 -0
- data/base/config/locales/en.yml +10 -5
- data/base/config/locales/es.yml +20 -40
- data/base/config/locales/pt.yml +5 -1
- data/base/config/locales/zh.yml +17 -9
- data/base/lib/generators/social_stream/base/install_generator.rb +0 -4
- data/base/lib/generators/social_stream/base/templates/initializer.rb +24 -0
- data/base/lib/social_stream/base.rb +70 -0
- data/base/lib/social_stream/base/ability.rb +13 -1
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/social_stream/test_helpers/controllers.rb +12 -6
- data/base/social_stream-base.gemspec +1 -1
- data/base/spec/controllers/permissions_controller_spec.rb +2 -6
- data/documents/app/assets/stylesheets/social_stream-documents.css.sass +2 -0
- data/documents/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass +1 -2
- data/documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +2 -13
- data/documents/app/assets/stylesheets/social_stream/documents/mixins/_mixins.css.sass +19 -0
- data/documents/lib/social_stream-documents.rb +0 -2
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/linkser/app/assets/javascripts/social_stream/linkser.wall.js +11 -14
- data/linkser/app/views/links/create.js.erb +3 -4
- data/linkser/lib/social_stream/linkser/version.rb +1 -1
- data/linkser/social_stream-linkser.gemspec +1 -1
- data/oauth2_server/app/assets/stylesheets/social_stream-oauth2_server.css.sass +1 -1
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/_applications-oauth2server.css.sass +1 -1
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/applications/layout/_applications-oauth2server.css.sass +4 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/create/_create-oauth2server.css.sass +3 -7
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixin.css.sass +10 -0
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/show/layout/_show-oauth2server.css.sass +15 -6
- data/oauth2_server/app/controllers/site/clients_controller.rb +14 -11
- data/oauth2_server/app/models/relation/manager.rb +19 -0
- data/oauth2_server/app/models/site/client.rb +10 -6
- data/oauth2_server/app/views/site/clients/_avatar.html.erb +15 -0
- data/oauth2_server/app/views/site/clients/_edit.html.erb +6 -0
- data/oauth2_server/app/views/site/clients/_edit_step_2.html.erb +11 -0
- data/oauth2_server/app/views/site/clients/_edit_step_3.html.erb +10 -0
- data/oauth2_server/app/views/site/clients/_list.html.erb +20 -17
- data/oauth2_server/app/views/site/clients/edit.html.erb +5 -6
- data/oauth2_server/app/views/site/clients/index.html.erb +1 -1
- data/oauth2_server/app/views/site/clients/new.html.erb +4 -2
- data/oauth2_server/app/views/site/clients/show.html.erb +49 -42
- data/oauth2_server/config/locales/en.yml +21 -3
- data/oauth2_server/config/locales/es.yml +26 -11
- data/oauth2_server/config/locales/zh.yml +25 -0
- data/oauth2_server/db/migrate/20130619134332_site_client_admin_to_manager.rb +24 -0
- data/oauth2_server/lib/social_stream-oauth2_server.rb +1 -19
- data/oauth2_server/lib/social_stream/oauth2_server.rb +33 -5
- data/oauth2_server/lib/social_stream/oauth2_server/ability.rb +23 -0
- data/oauth2_server/lib/social_stream/oauth2_server/engine.rb +6 -0
- data/oauth2_server/lib/social_stream/oauth2_server/models/actor.rb +2 -2
- data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
- data/oauth2_server/social_stream-oauth2_server.gemspec +1 -1
- data/oauth2_server/spec/controllers/site_clients_controller_authorization_spec.rb +112 -0
- data/oauth2_server/spec/factories/site_client.rb +2 -2
- data/oauth2_server/spec/models/site/client_authorization_spec.rb +20 -0
- data/ostatus/lib/social_stream-ostatus.rb +0 -4
- data/ostatus/lib/social_stream/ostatus/engine.rb +11 -0
- data/ostatus/lib/social_stream/ostatus/version.rb +1 -1
- data/ostatus/social_stream-ostatus.gemspec +1 -1
- data/places/config/locales/en.yml +0 -1
- data/places/config/locales/es.yml +1 -2
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/social_stream-presence.gemspec +1 -1
- data/social_stream.gemspec +7 -7
- metadata +30 -26
- data/base/app/helpers/permissions_helper.rb +0 -21
- data/base/lib/generators/social_stream/base/templates/relations.yml +0 -39
- data/oauth2_server/app/assets/stylesheets/social_stream/oauth2_server/mixins/_mixins.css.sass +0 -5
- data/oauth2_server/app/models/relation/admin.rb +0 -9
- data/oauth2_server/app/views/site/clients/_form_step1.html.erb +0 -7
- data/oauth2_server/app/views/site/clients/_form_step2.html.erb +0 -20
- data/ostatus/app/decorators/social_stream/base/relation/custom_decorator.rb +0 -3
- data/ostatus/lib/social_stream/ostatus/models/relation/custom.rb +0 -22
- data/spec/dummy/config/relations.yml +0 -39
@@ -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.
|
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
|
|
@@ -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
|
data/social_stream.gemspec
CHANGED
@@ -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
|
14
|
-
s.add_runtime_dependency('social_stream-documents', '~> 2.0
|
15
|
-
s.add_runtime_dependency('social_stream-events', '~> 2.0
|
16
|
-
s.add_runtime_dependency('social_stream-linkser', '~> 2.
|
17
|
-
s.add_runtime_dependency('social_stream-presence', '~> 2.0
|
18
|
-
s.add_runtime_dependency('social_stream-ostatus', '~> 2.
|
19
|
-
s.add_runtime_dependency('social_stream-oauth2_server', '~> 2.0
|
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
|
+
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-
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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.
|
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
|
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
|
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.
|
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.
|
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
|
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
|
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/
|
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,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>
|