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
@@ -1,22 +0,0 @@
|
|
1
|
-
module SocialStream
|
2
|
-
module Ostatus
|
3
|
-
module Models
|
4
|
-
module Relation
|
5
|
-
module Custom
|
6
|
-
extend ActiveSupport::Concern
|
7
|
-
|
8
|
-
included do
|
9
|
-
const_get("DEFAULT")['remote_subject'] = {
|
10
|
-
'default' => {
|
11
|
-
'name' => 'default',
|
12
|
-
'permissions' => [
|
13
|
-
[ 'read', 'activity' ]
|
14
|
-
]
|
15
|
-
}
|
16
|
-
}
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
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 ]
|