Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
c31489b42b
9 changed files with 73 additions and 35 deletions
4
Gemfile
4
Gemfile
|
|
@ -38,6 +38,10 @@ gem 'magent', :git => 'http://github.com/dcu/magent.git'
|
||||||
gem 'carrierwave', :git => 'git://github.com/rsofaer/carrierwave.git' , :branch => 'master' #Untested mongomapper branch
|
gem 'carrierwave', :git => 'git://github.com/rsofaer/carrierwave.git' , :branch => 'master' #Untested mongomapper branch
|
||||||
gem 'mini_magick'
|
gem 'mini_magick'
|
||||||
|
|
||||||
|
#sinatra
|
||||||
|
gem 'sinatra', '1.0'
|
||||||
|
gem 'async_sinatra'
|
||||||
|
|
||||||
group :test, :development do
|
group :test, :development do
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,8 @@ 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)
|
||||||
|
async_sinatra (0.2.3)
|
||||||
|
sinatra (>= 1.0)
|
||||||
autotest (4.3.2)
|
autotest (4.3.2)
|
||||||
bcrypt-ruby (2.1.2)
|
bcrypt-ruby (2.1.2)
|
||||||
bson (1.0.7)
|
bson (1.0.7)
|
||||||
|
|
@ -212,6 +214,8 @@ GEM
|
||||||
selenium-client (1.2.18)
|
selenium-client (1.2.18)
|
||||||
selenium-rc (2.2.4)
|
selenium-rc (2.2.4)
|
||||||
selenium-client (>= 1.2.18)
|
selenium-client (>= 1.2.18)
|
||||||
|
sinatra (1.0)
|
||||||
|
rack (>= 1.0)
|
||||||
subexec (0.0.4)
|
subexec (0.0.4)
|
||||||
thin (1.2.7)
|
thin (1.2.7)
|
||||||
daemons (>= 1.0.9)
|
daemons (>= 1.0.9)
|
||||||
|
|
@ -238,6 +242,7 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
addressable
|
addressable
|
||||||
|
async_sinatra
|
||||||
autotest
|
autotest
|
||||||
bson (= 1.0.7)
|
bson (= 1.0.7)
|
||||||
bson_ext (= 1.0.7)
|
bson_ext (= 1.0.7)
|
||||||
|
|
@ -266,6 +271,7 @@ DEPENDENCIES
|
||||||
ruby-debug
|
ruby-debug
|
||||||
saucelabs-adapter (= 0.8.12)
|
saucelabs-adapter (= 0.8.12)
|
||||||
selenium-rc
|
selenium-rc
|
||||||
|
sinatra (= 1.0)
|
||||||
sprinkle!
|
sprinkle!
|
||||||
thin
|
thin
|
||||||
webmock
|
webmock
|
||||||
|
|
|
||||||
36
README.md
36
README.md
|
|
@ -115,14 +115,6 @@ If you're on **Mac OS X**, you already have Ruby on your system. Yay!
|
||||||
|
|
||||||
### MongoDB
|
### MongoDB
|
||||||
|
|
||||||
To install MongoDB on **Fedora**, use the official repositories
|
|
||||||
|
|
||||||
sudo yum install mongodb-server
|
|
||||||
|
|
||||||
Ensure that the server is started at system reboot:
|
|
||||||
|
|
||||||
sudo chkconfig mongod on
|
|
||||||
|
|
||||||
To install MongoDB on **Ubuntu**, add the official MongoDB repository
|
To install MongoDB on **Ubuntu**, add the official MongoDB repository
|
||||||
[here](http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages).
|
[here](http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages).
|
||||||
|
|
||||||
|
|
@ -155,6 +147,32 @@ Then run:
|
||||||
sudo chmod -Rv 777 /data/
|
sudo chmod -Rv 777 /data/
|
||||||
|
|
||||||
|
|
||||||
|
To install MongoDB on a x86_64 **Fedora** system, add the official MongoDB
|
||||||
|
repository from MongoDB
|
||||||
|
(http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages) into
|
||||||
|
/etc/yum.repos.d/10gen.repo:
|
||||||
|
|
||||||
|
[10gen]
|
||||||
|
name=10gen Repository
|
||||||
|
baseurl=http://downloads.mongodb.org/distros/fedora/13/os/x86_64/
|
||||||
|
gpgcheck=0
|
||||||
|
enabled=1
|
||||||
|
|
||||||
|
Then use yum to install the packages:
|
||||||
|
|
||||||
|
sudo yum install mongo-stable mongo-stable-server
|
||||||
|
|
||||||
|
If you're running a 32-bit system, run `wget
|
||||||
|
http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.6.2.tgz`. If you're
|
||||||
|
running a 64-bit system, run `wget
|
||||||
|
http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.6.2.tgz`.
|
||||||
|
|
||||||
|
# extract
|
||||||
|
tar xzf mongodb-linux-i686-1.4.0.tgz
|
||||||
|
# create the required data directory
|
||||||
|
sudo mkdir -p /data/db
|
||||||
|
sudo chmod -Rv 777 /data/
|
||||||
|
|
||||||
To install MongoDB on **Mac OS X**, run the following:
|
To install MongoDB on **Mac OS X**, run the following:
|
||||||
|
|
||||||
brew install mongo
|
brew install mongo
|
||||||
|
|
@ -248,7 +266,7 @@ run `service mongodb start`). If you installed the binary manually, run `sudo
|
||||||
mongod` from where mongo is installed to start mongo.
|
mongod` from where mongo is installed to start mongo.
|
||||||
|
|
||||||
If you installed the Fedora package, MongoDB will need to be started via
|
If you installed the Fedora package, MongoDB will need to be started via
|
||||||
`service mongod start`. If you installed the binary manually, run `sudo
|
`service mongodb start`. If you installed the binary manually, run `sudo
|
||||||
mongod` from where Mongo is installed to start Mongo.
|
mongod` from where Mongo is installed to start Mongo.
|
||||||
|
|
||||||
If you installed the OsX package through "brew", MongoDB will need to be
|
If you installed the OsX package through "brew", MongoDB will need to be
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class CommentsController < ApplicationController
|
||||||
respond_to :json, :only => :show
|
respond_to :json, :only => :show
|
||||||
|
|
||||||
def create
|
def create
|
||||||
target = Post.find_by_id params[:comment][:post_id]
|
target = current_user.find_visible_post_by_id params[:comment][:post_id]
|
||||||
text = params[:comment][:text]
|
text = params[:comment][:text]
|
||||||
|
|
||||||
@comment = current_user.comment text, :on => target
|
@comment = current_user.comment text, :on => target
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@ class RequestsController < ApplicationController
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# rel_hash = {:friend => params[:friend_handle]}
|
||||||
Rails.logger.debug("Sending request: #{rel_hash}")
|
Rails.logger.debug("Sending request: #{rel_hash}")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,11 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def person_image_link(person)
|
def person_image_link(person)
|
||||||
link_to person_image_tag(person), object_path(person)
|
if current_user.friends.include?(person) || current_user.person == person
|
||||||
|
link_to person_image_tag(person), object_path(person)
|
||||||
|
else
|
||||||
|
person_image_tag person
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_request(request_count)
|
def new_request(request_count)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
= f.label :username
|
= f.label :username
|
||||||
= f.text_field :username
|
= f.text_field :username
|
||||||
%p.user_network
|
%p.user_network
|
||||||
="@#{APP_CONFIG[:pod_url]}"
|
="@#{APP_CONFIG[:terse_pod_url]}"
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :password
|
= f.label :password
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,10 @@
|
||||||
|
|
||||||
.content
|
.content
|
||||||
%span.from
|
%span.from
|
||||||
= link_to person.real_name, person_path(person)
|
- if current_user.friends.include?(person) || person.id == current_user.person.id
|
||||||
|
= link_to person.real_name, person_path(person)
|
||||||
|
- else
|
||||||
|
= person.real_name
|
||||||
|
|
||||||
.info
|
.info
|
||||||
= person.diaspora_handle
|
= person.diaspora_handle
|
||||||
|
|
|
||||||
|
|
@ -12,31 +12,31 @@ cy:
|
||||||
|
|
||||||
devise:
|
devise:
|
||||||
failure:
|
failure:
|
||||||
unauthenticated: 'Mae angen i chi arwyddo i mewn neu ymuno cyn parhau.'
|
unauthenticated: "Mae angen i chi arwyddo i mewn neu ymuno cyn parhau."
|
||||||
unconfirmed: 'Rhaid i chi gadarnhau eich cyfrif cyn parhau.'
|
unconfirmed: "Rhaid i chi gadarnhau eich cyfrif cyn parhau."
|
||||||
locked: 'Mae eich cyfrif wedi'i gloi.'
|
locked: "Mae eich cyfrif wedi'i gloi."
|
||||||
invalid: 'E-bost neu gyfrinair annilys.'
|
invalid: "E-bost neu gyfrinair annilys."
|
||||||
invalid_token: 'Tocyn dilysu annilys.'
|
invalid_token: "Tocyn dilysu annilys."
|
||||||
timeout: 'Mae eich sesiwn wedi dod i ben, arwyddwch i mewn eto i barhau.'
|
timeout: "Mae eich sesiwn wedi dod i ben, arwyddwch i mewn eto i barhau."
|
||||||
inactive: 'Nid yw eich cyfrif wedi'i actifadu.'
|
inactive: "Nid yw eich cyfrif wedi'i actifadu."
|
||||||
sessions:
|
sessions:
|
||||||
signed_in: 'Arwyddwyd i fewn yn llwyddiannus.'
|
signed_in: "Arwyddwyd i fewn yn llwyddiannus."
|
||||||
signed_out: 'Arwyddwyd allan yn llwyddiannus.'
|
signed_out: "Arwyddwyd allan yn llwyddiannus."
|
||||||
passwords:
|
passwords:
|
||||||
send_instructions: 'Byddwch yn derbyn e-bost â chyfarwyddiadau ar sut i gadarnhau eich cyfrif mewn ychydig funudau.'
|
send_instructions: "Byddwch yn derbyn e-bost â chyfarwyddiadau ar sut i gadarnhau eich cyfrif mewn ychydig funudau."
|
||||||
updated: 'Newidiwyd eich cyfrinair yn llwyddiannus. Rydych chi wedi arwyddo i fewn.'
|
updated: "Newidiwyd eich cyfrinair yn llwyddiannus. Rydych chi wedi arwyddo i fewn."
|
||||||
confirmations:
|
confirmations:
|
||||||
send_instructions: 'Byddwch yn derbyn e-bost â chyfarwyddiadau ar sut i gadarnhau eich cyfrif mewn ychydig funudau.'
|
send_instructions: "Byddwch yn derbyn e-bost â chyfarwyddiadau ar sut i gadarnhau eich cyfrif mewn ychydig funudau."
|
||||||
confirmed: 'Cadarnhawyd eich cyfrif yn llwyddiannus. Rydych chi wedi arwyddo i fewn.'
|
confirmed: "Cadarnhawyd eich cyfrif yn llwyddiannus. Rydych chi wedi arwyddo i fewn."
|
||||||
registrations:
|
registrations:
|
||||||
signed_up: 'Rydych chi wedi arwyddo i fyny yn llwyddiannus. Anfonwyd cadarnhad at eich e-bost os yw wedi'i alluogi.'
|
signed_up: "Rydych chi wedi arwyddo i fyny yn llwyddiannus. Anfonwyd cadarnhad at eich e-bost os yw wedi'i alluogi."
|
||||||
updated: 'Diweddarwyd eich cyfrif yn llwyddiannus.'
|
updated: "Diweddarwyd eich cyfrif yn llwyddiannus."
|
||||||
destroyed: 'Hwyl fawr! Canslwyd eich cyfrif yn llwyddiannus. Rydym yn gobeithio gweld chi eto yn fuan.'
|
destroyed: "Hwyl fawr! Canslwyd eich cyfrif yn llwyddiannus. Rydym yn gobeithio gweld chi eto yn fuan."
|
||||||
unlocks:
|
unlocks:
|
||||||
send_instructions: 'Byddwch yn derbyn e-bost gyda cyfarwyddiadau ar sut i agor eich cyfrif mewn ychydig funudau.'
|
send_instructions: "Byddwch yn derbyn e-bost gyda cyfarwyddiadau ar sut i agor eich cyfrif mewn ychydig funudau."
|
||||||
unlocked: 'Datglowyd eich cyfrif yn llwyddiannus. Rydych chi wedi arwyddo i fewn.'
|
unlocked: "Datglowyd eich cyfrif yn llwyddiannus. Rydych chi wedi arwyddo i fewn."
|
||||||
mailer:
|
mailer:
|
||||||
confirmation_instructions: 'Cyfarwyddiadau cadarnhad.'
|
confirmation_instructions: "Cyfarwyddiadau cadarnhad."
|
||||||
reset_password_instructions: 'Ailosod cyfarwyddiadau cyfrinair'
|
reset_password_instructions: "Ailosod cyfarwyddiadau cyfrinair"
|
||||||
unlock_instructions: 'Cyfarwyddiadau Datgloi'
|
unlock_instructions: "Cyfarwyddiadau Datgloi"
|
||||||
|
|
||||||
Loading…
Reference in a new issue