social_stream-base 0.9.23 → 0.9.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@
39
39
  <div class="row">
40
40
  <div class="center">
41
41
  <% for g in Group.distinct_initials %>
42
- <%= link_to g.initial,{:letter => g.initial,:page => 1},:class => "user_letter_link" %>
42
+ <%= link_to g.initial.capitalize,{:letter => g.initial,:page => 1},:class => "user_letter_link" %>
43
43
  <% end %>
44
44
  </div>
45
45
  </div>
@@ -25,7 +25,7 @@
25
25
  <div class="center">
26
26
  <%= link_to t('user.all_n', :count => User.count), users_path %> -
27
27
  <% for u in User.distinct_initials %>
28
- <%= link_to u.initial,{:letter => u.initial,:page => 1},:class => "user_letter_link" %>
28
+ <%= link_to u.initial.capitalize,{:letter => u.initial,:page => 1},:class => "user_letter_link" %>
29
29
  <% end %>
30
30
  </div>
31
31
  </div>
@@ -1,28 +1,15 @@
1
1
  xml.instruct!
2
- xml.user do
3
- xml.uid @user.id
4
- xml.name @user.name
5
- xml.slug @user.slug
6
- xml.email @user.email
7
- xml.userSince @user.created_at
8
- xml.birthday @user.profile.birthday
9
- xml.organization @user.profile.organization
10
- xml.city @user.profile.city
11
- xml.country @user.profile.country
12
- xml.website @user.profile.website
13
- xml.ties do
14
- @user.actors(:subject_type => 'user', :direction => :senders).each do |u|
15
- xml.contact do
16
- xml.uid u.id
17
- xml.slug u.slug
18
- end
19
- end
20
-
21
- @user.actors(:subject_type => 'group', :direction => :senders).each do |g|
22
- xml.group do
23
- xml.gid g.id
24
- xml.slug g.slug
25
- end
26
- end
27
- end
2
+ xml.user do
3
+ xml.uid @user.id
4
+ xml.name @user.name
5
+ xml.slug @user.slug
6
+ if user_signed_in?
7
+ xml.email @user.email
8
+ end
9
+ xml.userSince @user.created_at
10
+ xml.birthday @user.profile.birthday
11
+ xml.organization @user.profile.organization
12
+ xml.city @user.profile.city
13
+ xml.country @user.profile.country
14
+ xml.website @user.profile.website
28
15
  end
data/config/routes.rb CHANGED
@@ -82,8 +82,9 @@ Rails.application.routes.draw do
82
82
  match 'api/user/:id' => 'api#users', :as => :api_user
83
83
  match 'api/me' => 'api#users', :as => :api_me
84
84
  match 'api/me/home/' => 'api#activity_atom_feed', :format => 'atom', :as => :api_my_home
85
+ match 'api/user/:id/public' => 'api#activity_atom_feed', :format => 'atom', :as => :api_user_activities
86
+
85
87
  match 'api/me/contacts' => 'contacts#index', :format => 'json', :as => :api_contacts
86
88
  match 'api/subjects/:s/contacts' => 'contacts#index', :format => 'json', :as => :api_subject_contacts
87
- match 'api/user/:id/public' => 'api#activity_atom_feed', :format => 'atom', :as => :api_user_activities
88
89
  ##/API##
89
90
  end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.9.23".freeze
3
+ VERSION = "0.9.24".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 23
10
- version: 0.9.23
9
+ - 24
10
+ version: 0.9.24
11
11
  platform: ruby
12
12
  authors:
13
13
  - GING - DIT - UPM
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-28 00:00:00 +02:00
19
+ date: 2011-10-31 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency