Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
cda5efbee9
5 changed files with 13 additions and 13 deletions
6
Gemfile
6
Gemfile
|
|
@ -49,16 +49,10 @@ group :test do
|
||||||
gem 'rspec', '>= 2.0.0.beta.17'
|
gem 'rspec', '>= 2.0.0.beta.17'
|
||||||
gem 'rspec-rails', '2.0.0.beta.17'
|
gem 'rspec-rails', '2.0.0.beta.17'
|
||||||
gem 'mocha'
|
gem 'mocha'
|
||||||
gem 'redgreen' if RUBY_VERSION.include? "1.8"
|
|
||||||
gem 'autotest'
|
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'webmock'
|
gem 'webmock'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
|
||||||
gem 'nifty-generators'
|
|
||||||
end
|
|
||||||
|
|
||||||
group :deployment do
|
group :deployment do
|
||||||
gem 'sprinkle', :git => 'git://github.com/rsofaer/sprinkle.git'
|
gem 'sprinkle', :git => 'git://github.com/rsofaer/sprinkle.git'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,6 @@ GEM
|
||||||
addressable (2.2.1)
|
addressable (2.2.1)
|
||||||
arel (1.0.1)
|
arel (1.0.1)
|
||||||
activesupport (~> 3.0.0)
|
activesupport (~> 3.0.0)
|
||||||
autotest (4.3.2)
|
|
||||||
aws (2.3.21)
|
aws (2.3.21)
|
||||||
http_connection
|
http_connection
|
||||||
uuidtools
|
uuidtools
|
||||||
|
|
@ -179,7 +178,6 @@ GEM
|
||||||
net-ssh (2.0.23)
|
net-ssh (2.0.23)
|
||||||
net-ssh-gateway (1.0.1)
|
net-ssh-gateway (1.0.1)
|
||||||
net-ssh (>= 1.99.1)
|
net-ssh (>= 1.99.1)
|
||||||
nifty-generators (0.4.0)
|
|
||||||
nokogiri (1.4.3.1)
|
nokogiri (1.4.3.1)
|
||||||
plucky (0.3.5)
|
plucky (0.3.5)
|
||||||
mongo (~> 1.0.8)
|
mongo (~> 1.0.8)
|
||||||
|
|
@ -206,7 +204,6 @@ GEM
|
||||||
rake (>= 0.8.4)
|
rake (>= 0.8.4)
|
||||||
thor (~> 0.14.0)
|
thor (~> 0.14.0)
|
||||||
rake (0.8.7)
|
rake (0.8.7)
|
||||||
redgreen (1.2.2)
|
|
||||||
rest-client (1.6.1)
|
rest-client (1.6.1)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
rspec (2.0.0.beta.22)
|
rspec (2.0.0.beta.22)
|
||||||
|
|
@ -261,7 +258,6 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
addressable
|
addressable
|
||||||
autotest
|
|
||||||
aws
|
aws
|
||||||
bson (= 1.0.7)
|
bson (= 1.0.7)
|
||||||
bson_ext (= 1.0.7)
|
bson_ext (= 1.0.7)
|
||||||
|
|
@ -281,11 +277,9 @@ DEPENDENCIES
|
||||||
mini_magick
|
mini_magick
|
||||||
mocha
|
mocha
|
||||||
mongo_mapper!
|
mongo_mapper!
|
||||||
nifty-generators
|
|
||||||
pubsubhubbub
|
pubsubhubbub
|
||||||
rails (= 3.0.0)
|
rails (= 3.0.0)
|
||||||
redfinger!
|
redfinger!
|
||||||
redgreen
|
|
||||||
roxml!
|
roxml!
|
||||||
rspec (>= 2.0.0.beta.17)
|
rspec (>= 2.0.0.beta.17)
|
||||||
rspec-rails (= 2.0.0.beta.17)
|
rspec-rails (= 2.0.0.beta.17)
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
def export
|
def export
|
||||||
exporter = Diaspora::Exporter.new(Diaspora::Exporters::XML)
|
exporter = Diaspora::Exporter.new(Diaspora::Exporters::XML)
|
||||||
render :xml => exporter.execute(current_user)
|
send_data exporter.execute(current_user), :filename => "#{current_user.username}_diaspora_data.xml", :type => :xml
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,15 @@
|
||||||
- content_for :left_pane do
|
- content_for :left_pane do
|
||||||
%ul#settings_nav
|
%ul#settings_nav
|
||||||
%li=link_to 'Profile', '#', :class => 'profile'
|
%li=link_to 'Profile', '#', :class => 'profile'
|
||||||
|
%li=link_to 'Account', '#', :class => 'account'
|
||||||
%li=link_to 'Services', '#', :class => 'services'
|
%li=link_to 'Services', '#', :class => 'services'
|
||||||
|
|
||||||
#profile.settings_pane{:style=>"display:block;"}
|
#profile.settings_pane{:style=>"display:block;"}
|
||||||
= render 'users/profile'
|
= render 'users/profile'
|
||||||
|
|
||||||
|
#account.settings_pane
|
||||||
|
= link_to "download my stuff", users_export_path, :class => "button"
|
||||||
|
|
||||||
#services.settings_pane
|
#services.settings_pane
|
||||||
= render 'users/services'
|
= render 'users/services'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,14 @@ describe UsersController do
|
||||||
@user.aspect(:name => "lame-os")
|
@user.aspect(:name => "lame-os")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe '#export' do
|
||||||
|
it 'should return an xml file' do
|
||||||
|
get :export
|
||||||
|
response.header["Content-Type"].should include "application/xml"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
describe '#update' do
|
describe '#update' do
|
||||||
context 'with a profile photo set' do
|
context 'with a profile photo set' do
|
||||||
before do
|
before do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue