diff --git a/Capfile b/Capfile index 306a9d64b..2fa68b66d 100644 --- a/Capfile +++ b/Capfile @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. load 'deploy' if respond_to?(:namespace) # cap2 differentiator diff --git a/README.md b/README.md index bac9cd40f..fc4b5aedf 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ We are continuing to build features and improve the code base. When we think it is ready for general use, we will post more final instructions. -## Commit Guidlines +## Commit Guidelines You are welcome to contribute, add to and extend Diaspora however you see fit. We will do our best to incorporate everything that meets our guidelines. diff --git a/Rakefile b/Rakefile index fa9be254a..c5f223293 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Add your own tasks in files placed in lib/tasks ending in .rake, diff --git a/app/controllers/albums_controller.rb b/app/controllers/albums_controller.rb index 9e4859830..5cfbe4c85 100644 --- a/app/controllers/albums_controller.rb +++ b/app/controllers/albums_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class AlbumsController < ApplicationController diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 52975730b..09f82d38e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class ApplicationController < ActionController::Base diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 81056ef10..34b722aee 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class AspectsController < ApplicationController diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index d1efc3e10..8d5ce80fc 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class CommentsController < ApplicationController diff --git a/app/controllers/dev_utilities_controller.rb b/app/controllers/dev_utilities_controller.rb index bd9a849ab..a556547b0 100644 --- a/app/controllers/dev_utilities_controller.rb +++ b/app/controllers/dev_utilities_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class DevUtilitiesController < ApplicationController diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index be1f89991..6ada5bfe1 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class PeopleController < ApplicationController diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index dca510374..a1ef260b1 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class PhotosController < ApplicationController diff --git a/app/controllers/publics_controller.rb b/app/controllers/publics_controller.rb index f57b94540..d2348a0d9 100644 --- a/app/controllers/publics_controller.rb +++ b/app/controllers/publics_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class PublicsController < ApplicationController diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index b630c6617..b29887112 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class RegistrationsController < Devise::RegistrationsController diff --git a/app/controllers/requests_controller.rb b/app/controllers/requests_controller.rb index 31c6e6efd..79a29461e 100644 --- a/app/controllers/requests_controller.rb +++ b/app/controllers/requests_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class RequestsController < ApplicationController diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index 82a58c508..97f52cef2 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/app/controllers/sockets_controller.rb b/app/controllers/sockets_controller.rb index 88d8e6b40..95f327fed 100644 --- a/app/controllers/sockets_controller.rb +++ b/app/controllers/sockets_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class SocketsController < ApplicationController diff --git a/app/controllers/status_messages_controller.rb b/app/controllers/status_messages_controller.rb index 137dd8a7e..f447e96b5 100644 --- a/app/controllers/status_messages_controller.rb +++ b/app/controllers/status_messages_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class StatusMessagesController < ApplicationController diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 1efd61830..df4519f65 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class UsersController < ApplicationController diff --git a/app/helpers/albums_helper.rb b/app/helpers/albums_helper.rb index 6d85c747c..a5e47b440 100644 --- a/app/helpers/albums_helper.rb +++ b/app/helpers/albums_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module AlbumsHelper diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7745ace96..54a4555d2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module ApplicationHelper diff --git a/app/helpers/aspects_helper.rb b/app/helpers/aspects_helper.rb index 66baffca2..265b052a8 100644 --- a/app/helpers/aspects_helper.rb +++ b/app/helpers/aspects_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module AspectsHelper diff --git a/app/helpers/dashboards_helper.rb b/app/helpers/dashboards_helper.rb index e8a9d8f71..57d64397c 100644 --- a/app/helpers/dashboards_helper.rb +++ b/app/helpers/dashboards_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module DashboardsHelper diff --git a/app/helpers/error_messages_helper.rb b/app/helpers/error_messages_helper.rb index 9a64dca36..6c1e46209 100644 --- a/app/helpers/error_messages_helper.rb +++ b/app/helpers/error_messages_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module ErrorMessagesHelper diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index e33556c35..166e6b254 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # These helper methods can be called in your template to set variables to be used in the layout diff --git a/app/helpers/people_helper.rb b/app/helpers/people_helper.rb index f1fa6487f..05f53def3 100644 --- a/app/helpers/people_helper.rb +++ b/app/helpers/people_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module PeopleHelper diff --git a/app/helpers/photos_helper.rb b/app/helpers/photos_helper.rb index 1f52daa0c..ede57d43e 100644 --- a/app/helpers/photos_helper.rb +++ b/app/helpers/photos_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module PhotosHelper diff --git a/app/helpers/publics_helper.rb b/app/helpers/publics_helper.rb index f14fad7a6..7b6a8763b 100644 --- a/app/helpers/publics_helper.rb +++ b/app/helpers/publics_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module PublicsHelper diff --git a/app/helpers/requests_helper.rb b/app/helpers/requests_helper.rb index 98ccc8f75..00cf61e5d 100644 --- a/app/helpers/requests_helper.rb +++ b/app/helpers/requests_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module RequestsHelper diff --git a/app/helpers/sockets_helper.rb b/app/helpers/sockets_helper.rb index 892e15f59..86bef13fa 100644 --- a/app/helpers/sockets_helper.rb +++ b/app/helpers/sockets_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module SocketsHelper diff --git a/app/helpers/status_messages_helper.rb b/app/helpers/status_messages_helper.rb index 08461b635..2dfbd31cc 100644 --- a/app/helpers/status_messages_helper.rb +++ b/app/helpers/status_messages_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module StatusMessagesHelper diff --git a/app/models/album.rb b/app/models/album.rb index f62cbdb79..4f7294ff9 100644 --- a/app/models/album.rb +++ b/app/models/album.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Album < Post diff --git a/app/models/aspect.rb b/app/models/aspect.rb index 10f7aba14..2e6dca694 100644 --- a/app/models/aspect.rb +++ b/app/models/aspect.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Aspect diff --git a/app/models/comment.rb b/app/models/comment.rb index 4bf0dbd5e..540b44f2e 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Comment diff --git a/app/models/fb_status.rb b/app/models/fb_status.rb index 40d9cb16e..0e7d2692e 100644 --- a/app/models/fb_status.rb +++ b/app/models/fb_status.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/app/models/person.rb b/app/models/person.rb index 8d1fee5d5..76bcd2aa3 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.expand_path('../../../lib/hcard', __FILE__) diff --git a/app/models/photo.rb b/app/models/photo.rb index 15d105739..a6e20ba33 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class PhotoAlbumValidator < ActiveModel::Validator diff --git a/app/models/post.rb b/app/models/post.rb index aba822160..ca4a5a2c9 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Post diff --git a/app/models/profile.rb b/app/models/profile.rb index 2b8303bd1..3bc9a18ac 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Profile diff --git a/app/models/request.rb b/app/models/request.rb index 5ba4769a2..6cf3d77ae 100644 --- a/app/models/request.rb +++ b/app/models/request.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Request diff --git a/app/models/retraction.rb b/app/models/retraction.rb index 20f74bf29..10b055a38 100644 --- a/app/models/retraction.rb +++ b/app/models/retraction.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class Retraction diff --git a/app/models/status_message.rb b/app/models/status_message.rb index b509bfe5a..1c167706e 100644 --- a/app/models/status_message.rb +++ b/app/models/status_message.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class StatusMessage < Post diff --git a/app/models/user.rb b/app/models/user.rb index 238397bdc..01094d219 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.expand_path('../../../lib/diaspora/user/friending', __FILE__) diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb index 247f5f997..9beba3ef6 100644 --- a/app/uploaders/image_uploader.rb +++ b/app/uploaders/image_uploader.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class ImageUploader < CarrierWave::Uploader::Base diff --git a/app/views/albums/_album.html.haml b/app/views/albums/_album.html.haml index 4f41e5cfb..f9f7d43e2 100644 --- a/app/views/albums/_album.html.haml +++ b/app/views/albums/_album.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. .album{:id => post.id, :class => ("mine" if current_user.owns?(post))} diff --git a/app/views/albums/_new_album.haml b/app/views/albums/_new_album.haml index e0212a6b4..07431d20c 100644 --- a/app/views/albums/_new_album.haml +++ b/app/views/albums/_new_album.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1=t('.add_a_new_album') diff --git a/app/views/albums/edit.html.haml b/app/views/albums/edit.html.haml index 67cc3071d..0f96bc1cd 100644 --- a/app/views/albums/edit.html.haml +++ b/app/views/albums/edit.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. .back= link_to "⇧ #{@album.name}", @album diff --git a/app/views/albums/index.html.haml b/app/views/albums/index.html.haml index 2e680c110..0d68bb1c1 100644 --- a/app/views/albums/index.html.haml +++ b/app/views/albums/index.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :head do diff --git a/app/views/albums/show.html.haml b/app/views/albums/show.html.haml index 4c9ba19b8..6ba593d62 100644 --- a/app/views/albums/show.html.haml +++ b/app/views/albums/show.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. :javascript diff --git a/app/views/aspects/_new_aspect.haml b/app/views/aspects/_new_aspect.haml index 548abd0d1..8c3c45f4d 100644 --- a/app/views/aspects/_new_aspect.haml +++ b/app/views/aspects/_new_aspect.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1=t('.add_a_new_aspect') diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index ae24e8e3b..772a71971 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :page_title do diff --git a/app/views/aspects/manage.html.haml b/app/views/aspects/manage.html.haml index e08f6dabd..e818657e8 100644 --- a/app/views/aspects/manage.html.haml +++ b/app/views/aspects/manage.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :head do diff --git a/app/views/aspects/public.html.haml b/app/views/aspects/public.html.haml index e85cae276..381676cf2 100644 --- a/app/views/aspects/public.html.haml +++ b/app/views/aspects/public.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. diff --git a/app/views/aspects/show.html.haml b/app/views/aspects/show.html.haml index ae24e8e3b..772a71971 100644 --- a/app/views/aspects/show.html.haml +++ b/app/views/aspects/show.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :page_title do diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml index 03a2fcf61..3e927f723 100644 --- a/app/views/comments/_comment.html.haml +++ b/app/views/comments/_comment.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.comment{:id => post.id} diff --git a/app/views/comments/_comments.html.haml b/app/views/comments/_comments.html.haml index aecfb4bf1..7378fc97e 100644 --- a/app/views/comments/_comments.html.haml +++ b/app/views/comments/_comments.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %div.comments diff --git a/app/views/comments/_new_comment.html.haml b/app/views/comments/_new_comment.html.haml index 99c03f898..2c95d4385 100644 --- a/app/views/comments/_new_comment.html.haml +++ b/app/views/comments/_new_comment.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. = form_for Comment.new, :remote => true do |f| diff --git a/app/views/js/_websocket_js.haml b/app/views/js/_websocket_js.haml index 4677f6ce6..a0663edfc 100644 --- a/app/views/js/_websocket_js.haml +++ b/app/views/js/_websocket_js.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. = javascript_include_tag 'FABridge', 'swfobject', 'web_socket' diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index fc063e0b6..99dec9e35 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. !!! diff --git a/app/views/layouts/session_wall.html.haml b/app/views/layouts/session_wall.html.haml index 29b863b32..bc15063d6 100644 --- a/app/views/layouts/session_wall.html.haml +++ b/app/views/layouts/session_wall.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. !!! diff --git a/app/views/people/_person.html.haml b/app/views/people/_person.html.haml index 7e22a5570..3e20a658a 100644 --- a/app/views/people/_person.html.haml +++ b/app/views/people/_person.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.message{:id => person.id} diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index 5981569b8..4ad7a93af 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :publish do diff --git a/app/views/people/new.html.haml b/app/views/people/new.html.haml index 0584732bc..7685a8933 100644 --- a/app/views/people/new.html.haml +++ b/app/views/people/new.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - title=t('.new_person') diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 9b5128160..3e1fc31e6 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :page_title do diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index d1a4fc73f..6ba1327e8 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. :javascript diff --git a/app/views/photos/_photo.haml b/app/views/photos/_photo.haml index 5e86e32a6..71049ac72 100644 --- a/app/views/photos/_photo.haml +++ b/app/views/photos/_photo.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.message{:id => post.id} diff --git a/app/views/photos/edit.html.haml b/app/views/photos/edit.html.haml index e70030562..78186d248 100644 --- a/app/views/photos/edit.html.haml +++ b/app/views/photos/edit.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1.big_text diff --git a/app/views/photos/new.html.haml b/app/views/photos/new.html.haml index d8701c265..bca1d0884 100644 --- a/app/views/photos/new.html.haml +++ b/app/views/photos/new.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - title t('.new_photo') diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index 53cda49ba..58c363240 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. :javascript diff --git a/app/views/posts/_debug.haml b/app/views/posts/_debug.haml index ef1984d7d..39bc2a5d5 100644 --- a/app/views/posts/_debug.haml +++ b/app/views/posts/_debug.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. #debug_info diff --git a/app/views/posts/_post.html.haml b/app/views/posts/_post.html.haml index acad2e12b..5c306fa36 100644 --- a/app/views/posts/_post.html.haml +++ b/app/views/posts/_post.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %ul diff --git a/app/views/requests/_new_request.haml b/app/views/requests/_new_request.haml index 0dbf5b0a1..ced50fd54 100644 --- a/app/views/requests/_new_request.haml +++ b/app/views/requests/_new_request.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1 diff --git a/app/views/shared/_aspect_friends.haml b/app/views/shared/_aspect_friends.haml index 8c22700aa..03da4ee9b 100644 --- a/app/views/shared/_aspect_friends.haml +++ b/app/views/shared/_aspect_friends.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. #friend_pictures diff --git a/app/views/shared/_aspect_nav.haml b/app/views/shared/_aspect_nav.haml index dc01afd20..8d1fa844d 100644 --- a/app/views/shared/_aspect_nav.haml +++ b/app/views/shared/_aspect_nav.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. #aspect_nav diff --git a/app/views/shared/_post_wrapper.haml b/app/views/shared/_post_wrapper.haml index 956706b68..538d90348 100644 --- a/app/views/shared/_post_wrapper.haml +++ b/app/views/shared/_post_wrapper.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.message{:id => post.id, :class => ("mine" if current_user.owns?(post))} diff --git a/app/views/shared/_publisher.haml b/app/views/shared/_publisher.haml index d1ad995df..410670c85 100644 --- a/app/views/shared/_publisher.haml +++ b/app/views/shared/_publisher.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. #publisher diff --git a/app/views/shared/_reshare.haml b/app/views/shared/_reshare.haml index 9df1c9ce1..bf785e4fa 100644 --- a/app/views/shared/_reshare.haml +++ b/app/views/shared/_reshare.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. :javascript diff --git a/app/views/shared/log.haml b/app/views/shared/log.haml index bf957bf7c..707507ff8 100644 --- a/app/views/shared/log.haml +++ b/app/views/shared/log.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. = @log.to_s diff --git a/app/views/status_messages/_new_status_message.haml b/app/views/status_messages/_new_status_message.haml index c27585f0a..00db8eefe 100644 --- a/app/views/status_messages/_new_status_message.haml +++ b/app/views/status_messages/_new_status_message.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. = form_for StatusMessage.new, :remote => true do |f| diff --git a/app/views/status_messages/_status_message.html.haml b/app/views/status_messages/_status_message.html.haml index d1568c7bb..d8c56ff2f 100644 --- a/app/views/status_messages/_status_message.html.haml +++ b/app/views/status_messages/_status_message.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.message{:id => post.id, :class => ("mine" if current_user.owns?(post))} diff --git a/app/views/status_messages/index.html.haml b/app/views/status_messages/index.html.haml index 43c065380..9bbd93abf 100644 --- a/app/views/status_messages/index.html.haml +++ b/app/views/status_messages/index.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1.big_text status messages diff --git a/app/views/status_messages/show.html.haml b/app/views/status_messages/show.html.haml index 3d78dd29e..4521bae5a 100644 --- a/app/views/status_messages/show.html.haml +++ b/app/views/status_messages/show.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %h1 diff --git a/app/views/users/_profile.haml b/app/views/users/_profile.haml index cef161127..7f935972b 100644 --- a/app/views/users/_profile.haml +++ b/app/views/users/_profile.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. diff --git a/app/views/users/_services.haml b/app/views/users/_services.haml index 648fbe161..07173ecd8 100644 --- a/app/views/users/_services.haml +++ b/app/views/users/_services.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 0c2f5b3e4..78076e789 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -1,5 +1,5 @@ -# Copyright (c) 2010, Diaspora Inc. This file is --# licensed under the Affero General Public License version 3. See +-# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. :javascript diff --git a/autotest/discover.rb b/autotest/discover.rb index 76b9d2044..a0d0bc50a 100644 --- a/autotest/discover.rb +++ b/autotest/discover.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Autotest.add_discovery { "rails" } diff --git a/config.ru b/config.ru index 0c65f5908..70f6cd2c4 100644 --- a/config.ru +++ b/config.ru @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # This file is used by Rack-based servers to start the application. diff --git a/config/app_config.yml.example b/config/app_config.yml.example index deb69220e..0bd3771f7 100644 --- a/config/app_config.yml.example +++ b/config/app_config.yml.example @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. default: diff --git a/config/application.rb b/config/application.rb index 59b82e216..6c813a82a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.expand_path('../boot', __FILE__) diff --git a/config/boot.rb b/config/boot.rb index 0d0c42268..02c15be66 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'rubygems' diff --git a/config/deploy.rb b/config/deploy.rb index a4f139b9c..b4893ec93 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. config = YAML.load_file(File.dirname(__FILE__) + '/deploy_config.yml') diff --git a/config/deploy_config.yml b/config/deploy_config.yml index 55aa00f6e..06a6747e1 100644 --- a/config/deploy_config.yml +++ b/config/deploy_config.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. cross_server: diff --git a/config/environment.rb b/config/environment.rb index ddfc9c247..bf2896fc6 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Load the rails application diff --git a/config/environments/development.rb b/config/environments/development.rb index 063adbd1b..80022947e 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.expand_path('../../../lib/mongo_mapper/clear_dev_memory', __FILE__) diff --git a/config/environments/production.rb b/config/environments/production.rb index bdeeea249..eebcc420b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Diaspora::Application.configure do @@ -48,4 +48,15 @@ Diaspora::Application.configure do config.i18n.fallbacks = true config.threadsafe! + config.action_mailer.delivery_method = :smtp + config.action_mailer.default_url_options = {:host => 'pivots.joindiaspora.com'} + config.action_mailer.smtp_settings = { + :address => 'smtp.gmail.com', + :port => 587, + :domain => 'mail.joindiaspora.com', + :authentication => 'plain', + :user_name => 'diaspora-pivots@joindiaspora.com', + :password => "xy289|]G+R*-kA", + :enable_starttls_auto => true + } end diff --git a/config/environments/test.rb b/config/environments/test.rb index 46b44db55..0c5f85bdf 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Diaspora::Application.configure do diff --git a/config/initializers/_load_app_config.rb b/config/initializers/_load_app_config.rb index 22bf14ead..723e38525 100644 --- a/config/initializers/_load_app_config.rb +++ b/config/initializers/_load_app_config.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. def load_config_yaml filename diff --git a/config/initializers/_mongo.rb b/config/initializers/_mongo.rb index 7d14315a7..41a2098c0 100644 --- a/config/initializers/_mongo.rb +++ b/config/initializers/_mongo.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ENV['MONGODB_URL'] = ENV['MONGOHQ_URL'] || URI::Generic.build(:scheme => 'mongodb', :host => APP_CONFIG['mongo_host'], :port => APP_CONFIG['mongo_port'], :path => "/diaspora-#{Rails.env}").to_s diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index 1efed86e9..211f52bde 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index ed1d07f91..0451db212 100644 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. CarrierWave.configure do |config| diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index a02045546..620547cd5 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Use this hook to configure devise mailer, warden hooks and so forth. The first diff --git a/config/initializers/git_info.rb b/config/initializers/git_info.rb index 82fc99143..e7aaffdda 100644 --- a/config/initializers/git_info.rb +++ b/config/initializers/git_info.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. GIT_INFO = `git show --name-only` diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 0e4097c04..a4331f61a 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb index 823179842..08d3923b0 100644 --- a/config/initializers/locale.rb +++ b/config/initializers/locale.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. diff --git a/config/initializers/logging.rb b/config/initializers/logging.rb index 48cc2fa30..08b639bf5 100644 --- a/config/initializers/logging.rb +++ b/config/initializers/logging.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Rails.logger = Logger.new( diff --git a/config/initializers/mailer_config.rb b/config/initializers/mailer_config.rb index 13aee7b5a..46535ef84 100644 --- a/config/initializers/mailer_config.rb +++ b/config/initializers/mailer_config.rb @@ -1,17 +1,17 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Diaspora::Application.configure do config.action_mailer.delivery_method = :smtp - config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]} + config.action_mailer.default_url_options = {:host => 'pivots.joindiaspora.com'} config.action_mailer.smtp_settings = { - :address => APP_CONFIG[:smtp_address], - :port => APP_CONFIG[:smtp_port].to_i, - :domain => APP_CONFIG[:smtp_domain], - :authentication => APP_CONFIG[:smtp_authentication], - :user_name => APP_CONFIG[:smtp_username], - :password => APP_CONFIG[:smtp_password], + :address => 'smtp.gmail.com', + :port => 587, + :domain => 'mail.joindiaspora.com', + :authentication => 'plain', + :user_name => 'diaspora-pivots@joindiaspora.com', + :password => "xy289|]G+R*-kA", :enable_starttls_auto => true } end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 77424db27..1c9cd8425 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/config/initializers/rspec_generator.rb b/config/initializers/rspec_generator.rb index bdec44a03..0aa078ab9 100644 --- a/config/initializers/rspec_generator.rb +++ b/config/initializers/rspec_generator.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Diaspora::Application.configure do diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 66c59261a..f7864e187 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index f4e36ea89..29a6621f3 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/config/locales/devise/devise.ar.yml b/config/locales/devise/devise.ar.yml index 2b555cb5f..922333521 100644 --- a/config/locales/devise/devise.ar.yml +++ b/config/locales/devise/devise.ar.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ar: diff --git a/config/locales/devise/devise.cs.yml b/config/locales/devise/devise.cs.yml index 26ff8044d..ec0e298b4 100644 --- a/config/locales/devise/devise.cs.yml +++ b/config/locales/devise/devise.cs.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. cs: diff --git a/config/locales/devise/devise.cy.yml b/config/locales/devise/devise.cy.yml index d8b6d94f4..54704978b 100644 --- a/config/locales/devise/devise.cy.yml +++ b/config/locales/devise/devise.cy.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. cy: diff --git a/config/locales/devise/devise.de.yml b/config/locales/devise/devise.de.yml index e6608c181..543ab1935 100644 --- a/config/locales/devise/devise.de.yml +++ b/config/locales/devise/devise.de.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. de: diff --git a/config/locales/devise/devise.en.yml b/config/locales/devise/devise.en.yml index 7ab686bd4..06308488b 100644 --- a/config/locales/devise/devise.en.yml +++ b/config/locales/devise/devise.en.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. en: diff --git a/config/locales/devise/devise.fi.yml b/config/locales/devise/devise.fi.yml index c77ead4b2..5f122172f 100644 --- a/config/locales/devise/devise.fi.yml +++ b/config/locales/devise/devise.fi.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Translator: jarkko moilanen, jm60697@gmail.com diff --git a/config/locales/devise/devise.fr-informal.yml b/config/locales/devise/devise.fr-informal.yml index 6fe14382e..298525ae9 100644 --- a/config/locales/devise/devise.fr-informal.yml +++ b/config/locales/devise/devise.fr-informal.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. fr-informal: diff --git a/config/locales/devise/devise.fr.yml b/config/locales/devise/devise.fr.yml index 240e9d967..69518e4a6 100644 --- a/config/locales/devise/devise.fr.yml +++ b/config/locales/devise/devise.fr.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. fr: diff --git a/config/locales/devise/devise.he.yml b/config/locales/devise/devise.he.yml index 997ab6df0..806ac3a32 100644 --- a/config/locales/devise/devise.he.yml +++ b/config/locales/devise/devise.he.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Translated to Hebrew by Yaron Shahrabani , 2010. diff --git a/config/locales/devise/devise.it.yml b/config/locales/devise/devise.it.yml index 96044d191..bd40e97a7 100644 --- a/config/locales/devise/devise.it.yml +++ b/config/locales/devise/devise.it.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. it: diff --git a/config/locales/devise/devise.lt.yml b/config/locales/devise/devise.lt.yml index 8ae8f027b..9544bfd37 100644 --- a/config/locales/devise/devise.lt.yml +++ b/config/locales/devise/devise.lt.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. lt: diff --git a/config/locales/devise/devise.nb.yml b/config/locales/devise/devise.nb.yml index c7aa1f27d..fdcff9a94 100644 --- a/config/locales/devise/devise.nb.yml +++ b/config/locales/devise/devise.nb.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. nb: diff --git a/config/locales/devise/devise.pl.yml b/config/locales/devise/devise.pl.yml index 503fb6d61..893653095 100644 --- a/config/locales/devise/devise.pl.yml +++ b/config/locales/devise/devise.pl.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. pl: diff --git a/config/locales/devise/devise.pt-BR.yml b/config/locales/devise/devise.pt-BR.yml index 5a39a4734..f7251fc6f 100644 --- a/config/locales/devise/devise.pt-BR.yml +++ b/config/locales/devise/devise.pt-BR.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. pt-BR: diff --git a/config/locales/devise/devise.pt-PT.yml b/config/locales/devise/devise.pt-PT.yml index c0c955517..6bb679bfd 100644 --- a/config/locales/devise/devise.pt-PT.yml +++ b/config/locales/devise/devise.pt-PT.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. pt-PT: diff --git a/config/locales/devise/devise.ro.yml b/config/locales/devise/devise.ro.yml index b4d12e6b6..a61b4e742 100644 --- a/config/locales/devise/devise.ro.yml +++ b/config/locales/devise/devise.ro.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ro: diff --git a/config/locales/devise/devise.ru.yml b/config/locales/devise/devise.ru.yml index 1ac626861..8283e97a1 100644 --- a/config/locales/devise/devise.ru.yml +++ b/config/locales/devise/devise.ru.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ru: diff --git a/config/locales/devise/devise.sv.yml b/config/locales/devise/devise.sv.yml index c83179bde..dab52d609 100644 --- a/config/locales/devise/devise.sv.yml +++ b/config/locales/devise/devise.sv.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. sv: diff --git a/config/locales/diaspora/ar.yml b/config/locales/diaspora/ar.yml index cddf87706..87522287a 100644 --- a/config/locales/diaspora/ar.yml +++ b/config/locales/diaspora/ar.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Arabic. diff --git a/config/locales/diaspora/cs.yml b/config/locales/diaspora/cs.yml index 7b454f813..9512645e3 100644 --- a/config/locales/diaspora/cs.yml +++ b/config/locales/diaspora/cs.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Lithuanian. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/cy.yml b/config/locales/diaspora/cy.yml index cd1c7dbd6..49343d246 100644 --- a/config/locales/diaspora/cy.yml +++ b/config/locales/diaspora/cy.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for English. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/de.yml b/config/locales/diaspora/de.yml index e277a5efd..1f7c028ae 100644 --- a/config/locales/diaspora/de.yml +++ b/config/locales/diaspora/de.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Localization file for German. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 5595c4caa..5a5cc7a43 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for English. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/es.yml b/config/locales/diaspora/es.yml index 5a73715b9..4e3ea63b4 100644 --- a/config/locales/diaspora/es.yml +++ b/config/locales/diaspora/es.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for English. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/fi.yml b/config/locales/diaspora/fi.yml index 5e1a6da32..88e06e580 100644 --- a/config/locales/diaspora/fi.yml +++ b/config/locales/diaspora/fi.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Translator jarkko moilanen, jm60697@gmail.com diff --git a/config/locales/diaspora/fr-informal.yml b/config/locales/diaspora/fr-informal.yml index 1c7950fe5..8a30d7ad9 100644 --- a/config/locales/diaspora/fr-informal.yml +++ b/config/locales/diaspora/fr-informal.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Localization file for French (Informal Honorifics). Add more files in this directory for other locales. diff --git a/config/locales/diaspora/fr.yml b/config/locales/diaspora/fr.yml index bab6f3852..92abcbcfb 100644 --- a/config/locales/diaspora/fr.yml +++ b/config/locales/diaspora/fr.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Localization file for French. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/he.yml b/config/locales/diaspora/he.yml index 221a7c5f7..5bf276163 100644 --- a/config/locales/diaspora/he.yml +++ b/config/locales/diaspora/he.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Translated to Hebrew by Yaron Shahrabani , 2010. diff --git a/config/locales/diaspora/it.yml b/config/locales/diaspora/it.yml index fe4b305cc..4c934420d 100644 --- a/config/locales/diaspora/it.yml +++ b/config/locales/diaspora/it.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Italian. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/lt.yml b/config/locales/diaspora/lt.yml index 01295e389..417ebb37e 100644 --- a/config/locales/diaspora/lt.yml +++ b/config/locales/diaspora/lt.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Lithuanian. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/nb.yml b/config/locales/diaspora/nb.yml index 82f927db1..79c603471 100644 --- a/config/locales/diaspora/nb.yml +++ b/config/locales/diaspora/nb.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for English. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/pl.yml b/config/locales/diaspora/pl.yml index c55b79691..378b93ced 100644 --- a/config/locales/diaspora/pl.yml +++ b/config/locales/diaspora/pl.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for English. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/pt-BR.yml b/config/locales/diaspora/pt-BR.yml index e8ffcc8e1..c04a60759 100644 --- a/config/locales/diaspora/pt-BR.yml +++ b/config/locales/diaspora/pt-BR.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Portuguese Brazilian. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/pt-PT.yml b/config/locales/diaspora/pt-PT.yml index 6df399150..95c56ca50 100644 --- a/config/locales/diaspora/pt-PT.yml +++ b/config/locales/diaspora/pt-PT.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Portuguese Portugal. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/ro.yml b/config/locales/diaspora/ro.yml index ed3234571..355f6c788 100644 --- a/config/locales/diaspora/ro.yml +++ b/config/locales/diaspora/ro.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ro: diff --git a/config/locales/diaspora/ru.yml b/config/locales/diaspora/ru.yml index f432c82d6..dd94acf08 100644 --- a/config/locales/diaspora/ru.yml +++ b/config/locales/diaspora/ru.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Sample localization file for Russian. Add more files in this directory for other locales. diff --git a/config/locales/diaspora/sv.yml b/config/locales/diaspora/sv.yml index 1aa9ac2dc..b7d89d019 100644 --- a/config/locales/diaspora/sv.yml +++ b/config/locales/diaspora/sv.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Swedish localization file. diff --git a/config/routes.rb b/config/routes.rb index 3c5dd0755..a51670449 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. Diaspora::Application.routes.draw do diff --git a/config/selenium.yml b/config/selenium.yml index 0d679b602..5e10d5a02 100644 --- a/config/selenium.yml +++ b/config/selenium.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. common: &common diff --git a/config/sprinkle/conf/nginx.conf b/config/sprinkle/conf/nginx.conf index 188daedcb..68eff1606 100644 --- a/config/sprinkle/conf/nginx.conf +++ b/config/sprinkle/conf/nginx.conf @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. worker_processes 1; diff --git a/config/sprinkle/packages/database.rb b/config/sprinkle/packages/database.rb index ef290b424..fa402b8ce 100644 --- a/config/sprinkle/packages/database.rb +++ b/config/sprinkle/packages/database.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. #package :mongo, :provides => :database do diff --git a/config/sprinkle/packages/essential.rb b/config/sprinkle/packages/essential.rb index 8b4349d06..f550f4f34 100644 --- a/config/sprinkle/packages/essential.rb +++ b/config/sprinkle/packages/essential.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ## Special package, anything that defines a 'source' package means build-essential should be installed for Ubuntu diff --git a/config/sprinkle/packages/ruby.rb b/config/sprinkle/packages/ruby.rb index c29af29cf..2c2f59145 100644 --- a/config/sprinkle/packages/ruby.rb +++ b/config/sprinkle/packages/ruby.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. ## Defines available packages diff --git a/config/sprinkle/packages/scm.rb b/config/sprinkle/packages/scm.rb index 981214a60..67aa2c849 100644 --- a/config/sprinkle/packages/scm.rb +++ b/config/sprinkle/packages/scm.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. package :git, :provides => :scm do diff --git a/config/sprinkle/packages/server.rb b/config/sprinkle/packages/server.rb index 004883dad..129e7b7f6 100644 --- a/config/sprinkle/packages/server.rb +++ b/config/sprinkle/packages/server.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. package :nginx, :provides=> :webserver do diff --git a/config/sprinkle/packages/unfortunately_essential.rb b/config/sprinkle/packages/unfortunately_essential.rb index 23975f870..f18f1ebb9 100644 --- a/config/sprinkle/packages/unfortunately_essential.rb +++ b/config/sprinkle/packages/unfortunately_essential.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. #Fix dreamhost diff --git a/config/sprinkle/provision.rb b/config/sprinkle/provision.rb index c3a7acae8..d57ff29c0 100644 --- a/config/sprinkle/provision.rb +++ b/config/sprinkle/provision.rb @@ -1,6 +1,6 @@ # # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require '#{File.dirname(__FILE__)}/packages/essential' diff --git a/config/thin.yml b/config/thin.yml index a49d85ce4..67f98104a 100644 --- a/config/thin.yml +++ b/config/thin.yml @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. rackup: /usr/local/app/diaspora/current/config.ru diff --git a/db/schema.rb b/db/schema.rb index 19e6df260..a05d3a11c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # This file is auto-generated from the current state of the database. Instead of editing this file, diff --git a/db/seeds.rb b/db/seeds.rb index 687d2622e..2307e70d8 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # This file should contain all the record creation needed to seed the database with its default values. diff --git a/db/seeds/backer.rb b/db/seeds/backer.rb index c4805eae8..2305dea93 100644 --- a/db/seeds/backer.rb +++ b/db/seeds/backer.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # This file should contain all the record creation needed to seed the database with its default values. diff --git a/db/seeds/dev.rb b/db/seeds/dev.rb index f10abec4f..873c58ec5 100644 --- a/db/seeds/dev.rb +++ b/db/seeds/dev.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.join(File.dirname(__FILE__), "..", "..", "config", "environment") diff --git a/db/seeds/tom.rb b/db/seeds/tom.rb index 5c418c8db..947ba0b21 100644 --- a/db/seeds/tom.rb +++ b/db/seeds/tom.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.join(File.dirname(__FILE__), "..", "..", "config", "environment") diff --git a/lib/chrome_frame.rb b/lib/chrome_frame.rb index 52a4eb459..87d9df65e 100644 --- a/lib/chrome_frame.rb +++ b/lib/chrome_frame.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Rack diff --git a/lib/diaspora.rb b/lib/diaspora.rb index e8508b38b..3d06e3e12 100644 --- a/lib/diaspora.rb +++ b/lib/diaspora.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/exporter.rb b/lib/diaspora/exporter.rb index f23ed7681..b560f729c 100644 --- a/lib/diaspora/exporter.rb +++ b/lib/diaspora/exporter.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/ostatus_builder.rb b/lib/diaspora/ostatus_builder.rb index 48db7fd86..60a106ac5 100644 --- a/lib/diaspora/ostatus_builder.rb +++ b/lib/diaspora/ostatus_builder.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/parser.rb b/lib/diaspora/parser.rb index e8e7e8a2b..2d002a2c9 100644 --- a/lib/diaspora/parser.rb +++ b/lib/diaspora/parser.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/user/friending.rb b/lib/diaspora/user/friending.rb index 61f86a19b..6b2c26cea 100644 --- a/lib/diaspora/user/friending.rb +++ b/lib/diaspora/user/friending.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/user/querying.rb b/lib/diaspora/user/querying.rb index 7d74df4ed..9b08bd9b8 100644 --- a/lib/diaspora/user/querying.rb +++ b/lib/diaspora/user/querying.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/webhooks.rb b/lib/diaspora/webhooks.rb index fc241a6d3..fa1b75e32 100644 --- a/lib/diaspora/webhooks.rb +++ b/lib/diaspora/webhooks.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/diaspora/websocket.rb b/lib/diaspora/websocket.rb index 10e8bc9c8..09c553e20 100644 --- a/lib/diaspora/websocket.rb +++ b/lib/diaspora/websocket.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Diaspora diff --git a/lib/encryptable.rb b/lib/encryptable.rb index 133c05156..c293c8257 100644 --- a/lib/encryptable.rb +++ b/lib/encryptable.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Encryptable diff --git a/lib/encryptor.rb b/lib/encryptor.rb index e9c4936e1..6927b9043 100644 --- a/lib/encryptor.rb +++ b/lib/encryptor.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module Encryptor diff --git a/lib/hcard.rb b/lib/hcard.rb index 041f4d384..9d318f05a 100644 --- a/lib/hcard.rb +++ b/lib/hcard.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module HCard diff --git a/lib/message_handler.rb b/lib/message_handler.rb index e3890d94f..0d201a994 100644 --- a/lib/message_handler.rb +++ b/lib/message_handler.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class MessageHandler diff --git a/lib/mongo_mapper/bson_id.rb b/lib/mongo_mapper/bson_id.rb index 328c69a03..f1e0e9985 100644 --- a/lib/mongo_mapper/bson_id.rb +++ b/lib/mongo_mapper/bson_id.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. class String diff --git a/lib/mongo_mapper/clear_dev_memory.rb b/lib/mongo_mapper/clear_dev_memory.rb index d63084765..574c32f7c 100644 --- a/lib/mongo_mapper/clear_dev_memory.rb +++ b/lib/mongo_mapper/clear_dev_memory.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module MongoMapper diff --git a/lib/salmon/salmon.rb b/lib/salmon/salmon.rb index e7690a578..728524b4d 100644 --- a/lib/salmon/salmon.rb +++ b/lib/salmon/salmon.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Add URL safe Base64 support diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 82fc6fa9f..0b82b26a3 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. namespace :db do diff --git a/lib/tasks/generate_session_secret.rake b/lib/tasks/generate_session_secret.rake index c9fc129de..e868d3eba 100644 --- a/lib/tasks/generate_session_secret.rake +++ b/lib/tasks/generate_session_secret.rake @@ -7,7 +7,7 @@ namespace :generate do File.open(path, 'w') do |f| f.write <<"EOF" # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # Be sure to restart your server when you modify this file. diff --git a/lib/tasks/rspec.rake b/lib/tasks/rspec.rake index 54442d71e..47d1a37ed 100644 --- a/lib/tasks/rspec.rake +++ b/lib/tasks/rspec.rake @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. begin diff --git a/script/bootstrap-fedora-diaspora.sh b/pkg/bootstrap-fedora-diaspora.sh similarity index 100% rename from script/bootstrap-fedora-diaspora.sh rename to pkg/bootstrap-fedora-diaspora.sh diff --git a/pkg/fedora/.bundle/config b/pkg/fedora/.bundle/config new file mode 100644 index 000000000..1c3e2cedf --- /dev/null +++ b/pkg/fedora/.bundle/config @@ -0,0 +1,5 @@ +--- +BUNDLE_FROZEN: "1" +BUNDLE_DISABLE_SHARED_GEMS: "1" +BUNDLE_WITHOUT: test:rdoc +BUNDLE_PATH: vendor/bundle diff --git a/pkg/fedora/Gemfile.lock.patch b/pkg/fedora/Gemfile.lock.patch new file mode 100644 index 000000000..7b96c043e --- /dev/null +++ b/pkg/fedora/Gemfile.lock.patch @@ -0,0 +1,13 @@ +diff --git a/Gemfile.lock b/Gemfile.lock +index 8534f58..44d386e 100644 +--- a/Gemfile.lock ++++ b/Gemfile.lock +@@ -258,7 +258,7 @@ DEPENDENCIES + autotest + bson (= 1.0.7) + bson_ext (= 1.0.7) +- bundler (= 1.0.0) ++ bundler (>= 1.0.0) + capybara (~> 0.3.9) + carrierwave! + cucumber-rails (= 0.3.2) diff --git a/pkg/fedora/README.md b/pkg/fedora/README.md new file mode 100644 index 000000000..d5bd23fe9 --- /dev/null +++ b/pkg/fedora/README.md @@ -0,0 +1,87 @@ +## Diaspora RPM tools + +Creates RPM packages from diaspora git repository. + +An alternative to the capistrano system, providing classic, binary RPM +packages for deployment on Fedora 13. + +#### Synopsis: + +*Prerequisites*: ruby-1.8, rubygem and other packages as described in +http://github.com/diaspora/diaspora/wiki/Rpm-installation-on-fedora + +Create source tarballs like dist/diaspora-0.0-1010041233_fade4231.tar.gz +and dist/diaspora-bundle-0.0-1010041233_fade4231.tar.gz + % ./make-dist.sh source + % ./make-dist.sh bundle + +Setup links to tarballs from RPM source directory: + % ./make-dist.sh links + +Build rpms: + rpmbuild -ba dist/diaspora.spec + rpmbuild -ba dist/diaspora-bundle.spec + +Install + rpm -U ~/rmpbuild/rpms/i686/diaspora-bundle-0.0-1.1010042345_4343fade43.fc13.i686 + rpm -U ~/rmpbuild/rpms/noarch/diaspora-0.0-1.1010042345_4343fade43.fc13.noarch + +Initiate (as root). + /usr/share/diaspora/diaspora-setup + +Start development server: + sudo + su - diaspora + cd master + ./script/server + +See http://github.com/diaspora/diaspora/wiki/Using-apache for +apache/passenger setup. After configuration, start with: + /sbin/service diaspora-ws start + /sbin/service httpd restart + + +#### Notes + +Routines uses last available version from master branch at github. The +version contains a time stamp and an abbreviated git commit id. If listed +in filename order, like ls does, latest version will be the last one. + +*make-dist links* creates links also for all files listed in SOURCES. +Typically, this is patches and secondary sources. + +The spec-files in dist/ are patched by ./make_dist.sh source to reference +correct versions of diaspora and diaspora-bundle. The diaspora-bundle +is only updated if Gemfile is updated, upgrading diaspora doesn't +always require a new diaspora-bundle. Editing spec files should be done +in this directory, changes in dist/ are lost when doing ./make_dist source. + +rpmlint shows many errors, most of which related to that the server +won't start if the .git directories are not included. Needs investigation. + +This has been confirmed to start up and provide basic functionality both using +the thin webserver and apache passenger. + +#### Implementation + + +'make_dist.sh source' script checks out latest version of diaspora into the + dist/diaspora directory. This content is, after some patches, the diaspora package. + +'make-dir.sh bundle' makes a 'bundle install --deployment' in the diaspora dir. +The resulting bundle is stored in vendor/bundle. This is, after some more +patches, the content of diaspora-bundle. + +Here is also support for running the diaspora websocket service as a system +service through /sbin/service and some install scripts. + +Diaspora files are stored in /usr/share/diaspora, and owned by diaspora. The +bundle, containing some C extensions, is architecture-dependent and lives +in /usr/lib[64]/diaspora. Log files are in /var/log/diaspora. Symlinks in +/usr/share diaspora makes log and bundle available as expected by diaspora app. +This is more or less as mandated by LSB and Fedora packaging rules. + + find /usr/share/diaspora/ -type l -exec ls -l {} \; | awk '{print $9, $10, $11}' + /usr/share/diaspora/master/public/uploads -> /var/lib/diaspora/uploads + /usr/share/diaspora/master/log -> /var/log/diaspora + /usr/share/diaspora/master/vendor/bundle -> /usr/lib/diaspora-bundle/master/vendor/bundle diff --git a/pkg/fedora/SOURCES b/pkg/fedora/SOURCES new file mode 100644 index 000000000..4b487fdf5 --- /dev/null +++ b/pkg/fedora/SOURCES @@ -0,0 +1,7 @@ +# These files will be linked to %_sourcedir by 'make-dist links' +.bundle +diaspora-setup +diaspora-ws +Gemfile.patch +perm-fix.patch +source-fix.patch diff --git a/pkg/fedora/diaspora-bundle.spec b/pkg/fedora/diaspora-bundle.spec new file mode 100644 index 000000000..87656f110 --- /dev/null +++ b/pkg/fedora/diaspora-bundle.spec @@ -0,0 +1,209 @@ +%define git_release 1010040945_a09a6d8 +# Turn off the brp-python-bytecompile script +%global __os_install_post %(echo '%{__os_install_post}' | + sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') + +Summary: Rubygem bundle for diaspora +Name: diaspora-bundle +Version: 0.0 +Release: 1.%{git_release}%{?dist} +License: AGPLv3 +Group: Applications/Communications +URL: http://www.joindiaspora.com/ +Vendor: joindiaspora.com +Source: %{name}-%{version}-%{git_release}.tar.gz +Prefix: %{_prefix} +BuildRequires: git +Requires: ruby(abi) = 1.8 + +%description +The ruby apps bundled with diaspora, as provided by +bundle install --deployment and patched for Fedora use. + +%package devel +Summary: Development files (i. e., sources) for diaspora-bundle +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Source file usede to compile native libraries in diaspora-bundle. + + + +%prep +%setup -q -n %{name}-%{version}-%{git_release} + +pushd bundle/ruby/1.8/ + find . -name \*.css -exec chmod 644 {} \; + find . -name \*.js -exec chmod 644 {} \; + find . -name \*.treetop -exec chmod 644 {} \; + find . -name \*.rdoc -exec chmod 644 {} \; + chmod 644 gems/term-ansicolor-1.0.5/CHANGES || : + chmod 755 gems/cucumber-rails-0.3.2/templates/install/script/cucumber || : + chmod 755 gems/ruby-debug-base-0.10.3/Rakefile || : + chmod 644 gems/cucumber-rails-0.3.2/History.txt || : + chmod 644 gems/cucumber-rails-0.3.2/templates/install/step_definitions/capybara_steps.rb.erb || : + chmod 644 gems/rack-1.2.1/test/cgi/lighttpd.conf || : + chmod 644 gems/term-ansicolor-1.0.5/VERSION || : + chmod 644 gems/mini_magick-2.1/Rakefile || : + chmod 755 gems/linecache-0.43/Rakefile || : + chmod 644 gems/ffi-0.6.3/ext/ffi_c/libffi/ltmain.sh || : + chmod 644 gems/term-ansicolor-1.0.5/README || : + chmod 755 gems/mini_magick-2.1/test/not_an_image.php || : + chmod 755 gems/rake-0.8.7/test/data/statusreturn/Rakefile || : + chmod 755 gems/ruby-debug-0.10.3/Rakefile || : + chmod 644 gems/gherkin-2.2.4/tasks/compile.rake || : + chmod 755 gems/rake-0.8.7/test/data/file_creation_task/Rakefile || : + chmod 644 gems/term-ansicolor-1.0.5/Rakefile || : + chmod 755 gems/mime-types-1.16/Rakefile || : + for f in $(find . -name \*.rb); do + sed -i -e '/^#!/d' $f + chmod 0644 $f + done > /dev/null 2>&1 + find . -type f -print0 | + xargs --null sed -i 's|^#!/usr/local/bin/ruby|#!/usr/bin/ruby|' + + chmod 755 gems/thin-1.2.7/example/async_chat.ru + chmod 755 gems/thin-1.2.7/example/async_tailer.ru + chmod 644 gems/i18n-0.4.1/MIT-LICENSE + chmod 755 gems/abstract-1.0.0/abstract.gemspec + chmod 644 gems/mini_magick-2.1/MIT-LICENSE + chmod 755 gems/thin-1.2.7/lib/thin/controllers/service.sh.erb + chmod 644 gems/treetop-1.4.8/spec/compiler/test_grammar.tt + +popd + + +%build + +pushd bundle/ruby/1.8/ + test -d gems/gherkin-*/ext && { + pushd gems/gherkin-*/ext + # Recompile all shared libraries using -O2 optimalization flagcd + for lexer_dir in */ ; do + pushd $lexer_dir + sed -i 's/ -O0 / -O2 /' extconf.rb + # Remove #line lines from C sources + sed -i '/^#line/d' *.c + CONFIGURE_ARGS="--with-cflags='%{optflags}'" ruby extconf.rb + make clean && make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + make install RUBYARCHDIR="../../lib" + mv ../../lib/${lexer_dir%/}.so . + pushd ../../lib + ln -sf ../ext/${lexer_dir%/}/${lexer_dir%/}.so . + popd + popd + done + popd + } + + test -d gems/ffi-0.6.3/lib && { + pushd gems/ffi-0.6.3/lib + rm ffi_c.so + ln -s ../ext/ffi_c/ffi_c.so . + popd + } + + pushd gems/thin-1.2.7/lib + rm thin_parser.so + ln -s ../ext/thin_parser/thin_parser.so . + popd + + pushd gems/bson_ext-1.0.7/ext/bson_ext + rm cbson.so + ln -s ../cbson/cbson.so . + popd + + pushd gems/ruby-debug-base-0.10.3/lib + rm ruby_debug.so + ln -s ../ext/ruby_debug.so . + popd + + #in repo + pushd gems/eventmachine-0.12.10/lib + rm rubyeventmachine.so + rm fastfilereaderext.so + ln -s ../ext/rubyeventmachine.so . + ln -s ../ext/fastfilereader/fastfilereaderext.so . + popd + + pushd gems/bcrypt-ruby-2.1.2/lib + rm bcrypt_ext.so + ln -s ../ext/mri/bcrypt_ext.so . + popd + + # in repo + pushd gems/nokogiri-1.4.3.1/lib/nokogiri + rm nokogiri.so + ln -sf ../../ext/nokogiri/nokogiri.so . + popd + + pushd gems/json-1.4.6/ext/json/ext/json/ext + rm generator.so + ln -s ../../generator/generator.so + rm parser.so + ln -s ../../parser/parser.so . + popd + + #in repo + pushd gems/linecache-0.43/lib/ + rm trace_nums.so + ln -s ../ext/trace_nums.so . + popd + + pushd bundler/gems/em-http-request-6f66010cda90/lib + rm em_buffer.so + ln -s ../ext/buffer/em_buffer.so . + rm http11_client.so + ln -s ../ext/http11_client/http11_client.so . + popd +popd + + +%install +find . -name .git | xargs rm -rf +find . -name .gitignore -delete +find . -name \*.o -delete || : + +test -d bundle/ruby/1.8/gems/selenium-webdriver-0.0.28 && { +pushd bundle/ruby/1.8/gems/selenium-webdriver-0.0.28/lib/selenium/webdriver/ +%ifarch %ix86 x86_64 +%ifarch %ix86 + rm -rf firefox/native/linux/amd64 +%else + rm -rf firefox/native/linux/i386 +%endif +%else + rm -rf firefox/native/linux/i386 + rm -rf firefox/native/linux/amd64 +%endif +popd +} + +[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_libdir}/diaspora-bundle/master/vendor + +cp -ar bundle $RPM_BUILD_ROOT/%{_libdir}/diaspora-bundle/master/vendor +find %{buildroot}/%{_libdir}/diaspora-bundle \ + -type d -fprintf dirs '%%%dir "%%p"\n' +find -L %{buildroot}/%{_libdir}/diaspora-bundle \ + -regextype posix-awk -type f -not -regex '.*[.]c$|.*[.]h$|.*[.]cpp$' -fprintf files '"%%p"\n' +find %{buildroot}/%{_libdir}/diaspora-bundle -regextype posix-awk \ + -type f -regex '.*[.]c$|.*[.]h$|.*[.]cpp$' -fprintf dev-files '"%%p"\n' +sed -i -e 's|%{buildroot}||' -e 's|//|/|' files dev-files dirs +cat files >> dirs && cp dirs files + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT + +%files -f files +%defattr(-, root, root, 0755) +%doc COPYRIGHT Gemfile AUTHORS GNU-AGPL-3.0 + +%files -f dev-files devel +%defattr(-, root, root, 0644) +%doc COPYRIGHT AUTHORS GNU-AGPL-3.0 + +%changelog +* Sat Oct 02 2010 Alec Leamas 1.1009271539_08b9aa8 + - Initial attempt to create a spec file diff --git a/pkg/fedora/diaspora-setup b/pkg/fedora/diaspora-setup new file mode 100755 index 000000000..0df7ceb2f --- /dev/null +++ b/pkg/fedora/diaspora-setup @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Do what's needed to initiate diaspora. +# +# See http://github.com/diaspora/diaspora/issues/issue/395 +# +# Note: This is really sort of prototyping. This should be done in ruby, +# on a web page. + +test $UID = "0" || { + echo "You need to be root to do this, giving up" + exit 2 +} + +cd /usr/share/diaspora/master + +if rake db:seed:dev; then + echo "Database config OK, new user tom/evankort in place" +else + cat <<- EOF + + Database config failed. You might want to remove all db files with + rm -rf /var/lib/mongodb/* and/or resetting the config file by + cp config/app_config.yml.example config/app_config.yml before + making a new try. + EOF + exit 1 +fi + +# %attr(0777, diaspora, diaspora) doesn't work in specfile due to umask 022. +chmod 777 /var/lib/diaspora/uploads + +hostname=$( awk '/pod_url:/ { print $2; exit }' >$logfile 2>&1 &" + RETVAL=$? + echo + if test $RETVAL = 0; then + touch $lockfile + pgrep -f "$ruby_cmd" > $pidfile || { + echo "Warning: cannot find running diaspora-webserver" + exit 7 + } + fi +} + +stop() { + [ $UID -eq 0 ] || exit 4 + echo -n $"Stopping $prog: " + killproc -p $pidfile $exec + RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f $lockfile + echo +} + +# +# See how we were called. +# +case "$1" in + start) + start + ;; + stop) + stop + ;; + force-reload|restart) + stop + sleep 1 + start + RETVAL=$? + ;; + condrestart|try-restart) + if [ -f $lockfile ]; then + stop + sleep 3 + start + fi + ;; + status) + status -p $pidfile $exec + RETVAL=$? + ;; + *) + echo $"Usage: $0 {condrestart|try-restart|start|stop|restart|force-reload|status}" + RETVAL=2 + [ "$1" = 'usage' ] && RETVAL=0 +esac + +exit $RETVAL + diff --git a/pkg/fedora/diaspora.logconf b/pkg/fedora/diaspora.logconf new file mode 100644 index 000000000..48eca3916 --- /dev/null +++ b/pkg/fedora/diaspora.logconf @@ -0,0 +1,13 @@ +/var/log/diaspora/*.log { + create 755 diaspora apache + weekly + rotate 10 + copytruncate + delaycompress + compress + notifempty + missingok + postrotate + ( /sbin/service diaspora-ws condrestart ) >/dev/null 2>&1 + endscript +} diff --git a/pkg/fedora/diaspora.spec b/pkg/fedora/diaspora.spec new file mode 100644 index 000000000..318ab9523 --- /dev/null +++ b/pkg/fedora/diaspora.spec @@ -0,0 +1,108 @@ +%global debug_package %{nil} +%define git_release HEAD + +Summary: A social network server +Name: diaspora +Version: 0.0.1 +Release: 1.%{git_release}%{?dist} +License: AGPLv3 +Group: Applications/Communications +URL: http://www.joindiaspora.com/ +Vendor: joindiaspora.com +Source: %{name}-%{version}-%{git_release}.tar.gz +Source1: diaspora-ws +Source2: diaspora-setup +BuildArch: noarch + +# See http://github.com/diaspora/diaspora/issues/issue/393 +Patch0: source-fix.patch + +BuildRequires: git + +Requires(pre): shadow-utils +Requires: mongodb-server +Requires: ruby(abi) = 1.8 +Requires: diaspora-bundle = %{version} + +%description +A privacy aware, personally controlled, do-it-all and +open source social network server. + +%prep +%setup -q -n %{name}-%{version}-%{git_release} +pushd master +%patch0 -p1 + +# See: http://github.com/diaspora/diaspora/issues/issue/392 +git apply %{_sourcedir}/perm-fix.patch +popd +find . -perm /u+x -type f -exec \ + sed -i 's|^#!/usr/local/bin/ruby|#!/usr/bin/ruby|' {} \; > /dev/null + +%build +rm -rf master/vendor/bundle +mkdir master/tmp || : +pushd master + tar cf public/source.tar --exclude='source.tar' -X .gitignore * +popd + +%pre +getent group diaspora >/dev/null || groupadd -r diaspora +getent passwd diaspora >/dev/null || \ + useradd -r -g apache \ + -md /usr/share/diaspora -s /sbin/nologin \ + -c "Diaspora daemon" diaspora +exit 0 + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/diaspora +cp master/README.md . +mv master/GNU-AGPL-3.0 . + +mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log/diaspora +mkdir -p $RPM_BUILD_ROOT/etc/init.d +sed -i '/^cd /s|.*|cd %{_datadir}/diaspora/master|' diaspora-ws +cp diaspora-ws $RPM_BUILD_ROOT/etc/init.d +mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d +cp diaspora.logconf $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/diaspora +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/diaspora +cp -ar master $RPM_BUILD_ROOT/%{_datadir}/diaspora +cp master/.gitignore $RPM_BUILD_ROOT/%{_datadir}/diaspora/master +cp diaspora-setup $RPM_BUILD_ROOT/%{_datadir}/diaspora +mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/diaspora/uploads + +%post +rm -f %{_datadir}/diaspora/master/vendor/bundle +rm -f %{_datadir}/diaspora/master/log +rm -f %{_datadir}/diaspora/master/public/uploads + +ln -s %{_localstatedir}/log/diaspora \ + %{_datadir}/diaspora/master/log || : +ln -s %{_libdir}/diaspora-bundle/master/vendor/bundle \ + %{_datadir}/diaspora/master/vendor || : +ln -s %{_localstatedir}/lib/diaspora/uploads \ + %{_datadir}/diaspora/master/public/uploads || : +/sbin/chkconfig --add diaspora-ws + +%preun +if [ $1 -eq 0 ] ; then + service diaspora-ws stop >/dev/null 2>&1 || : + /sbin/chkconfig --del diaspora-ws +fi + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT + +%files +%defattr(-, root, root, 0755) +%doc README.md GNU-AGPL-3.0 +%attr(0555, diaspora, diaspora) %{_datadir}/diaspora +%attr(-, diaspora, diaspora) %{_localstatedir}/log/diaspora +%attr(-, diaspora, diaspora) %{_localstatedir}/lib/diaspora/uploads +%config(noreplace) %{_sysconfdir}/logrotate.d/diaspora +%{_sysconfdir}/init.d/diaspora-ws + +%changelog +* Fri Sep 24 2010 Alec Leamas 1.1009280542_859ec2d + - Initial attempt to create a spec file diff --git a/pkg/fedora/make-dist.sh b/pkg/fedora/make-dist.sh new file mode 100755 index 000000000..6d0795618 --- /dev/null +++ b/pkg/fedora/make-dist.sh @@ -0,0 +1,275 @@ +#!/bin/bash + +#Usage: See function usage() at bottom. +# +# +# Create a diaspora distribution +# +# Builds a diaspora distribution containing the application and bundled +# libraries. Normally checks out latest version of the master branch. +# +GIT_REPO='http://github.com/diaspora/diaspora.git' +RELEASE='HEAD' +VERSION='0.0' + +function git_id +# +# Echo package-friendly source id. +# +# Usage: git_id [-n] [file or directory] +# +{ + nl="\n" + file_or_dir="$PWD" + test "$1" = '-n' && { nl=""; shift; } + test -n "$1" && file_or_dir="$1" + if [ -d $file_or_dir ]; then + file="" + dir=$file_or_dir + else + file=$(basename $file_or_dir) + dir=$(dirname $file_or_dir) + fi + + export LANG=C + ( + cd $dir + git log -1 --abbrev-commit --date=iso $file | + awk -v nl="$nl" \ + ' BEGIN { commit = "" } + /^commit/ { if ( commit == "") commit = $2 } + /^Date:/ { split( $2, d, "-") + split( $3, t, ":") + } + END { printf( "%s%s%s%s%s_%s%s", + substr( d[1],3), d[2], d[3], + t[1], t[2], + commit, nl) + }' + ) +} + + +function fix_alphatag() +# Patch version on top comment first id line: +# Uses %define git_release to get release. +#* Fri Sep 24 2010 name surname 1.20100925_faf234320 +{ + dist=$(rpm --eval %dist) + awk -v dist="$dist" -v version="$2" \ + ' BEGIN { done = 0 } + /%define/ { if ($2 = "git_release") release = $3 } + /^[*]/ { if (done) + print + else + { + gsub( "1[.].*", "") + printf( "%s%s-1.%s%s\n", + $0, version, release,dist) + done = 1 + } + next + } + { print }' \ + < $1 > $1.tmp && cp $1.tmp $1 && rm $1.tmp +} + +function fix_bundle_deps +# usage: fix_bundle_deps release +# Patches Requires: diaspora-bundle = 0.0-20101021-aefsf323148 +{ + awk -v vers="$2-$3" \ + ' /Requires:/ { if ($2 == "diaspora-bundle") + printf( "%s %s = %s\n", $1,$2,vers) + else + print + next + } + { print}' \ + < $1 > $1.tmp && cp $1.tmp $1 && rm $1.tmp +} + +function patch() +# Patch git_release, Requires: diaspora-bundle and top comment version. +# Usage: patch VERSION RELEASE +{ + sed -e "/^%define/s|HEAD|$2|" \ + -e '/^Version:/s|.*|Version: '$1'|' \ + dist/diaspora.spec + fix_alphatag dist/diaspora.spec $1 + #mkdir dist/diaspora/tmp || : + bundle_id=$(git_id dist/diaspora/Gemfile) + fix_bundle_deps dist/diaspora.spec $1 "1.$bundle_id.fc13" + sed -e "/^%define/s|HEAD|$bundle_deps|" \ + -e '/^Version:/s|.*|Version: '$1'|' \ + < diaspora-bundle.spec > dist/diaspora-bundle.spec + + cp dist/diaspora.spec dist/diaspora/diaspora.spec +} + +function checkout() +# Checkout last version of diaspora unless it's already there. +# Usage: checkout [commit id, defaults to HEAD] +# Returns: commit for current branch's HEAD. +{ + mkdir dist >/dev/null 2>&1 || : + ( + cd dist + test -d diaspora || { + git clone --quiet $GIT_REPO; + ( + cd diaspora; + git remote add upstream \ + git://github.com/diaspora/diaspora.git + ) + } + cd diaspora; + git fetch --quiet upstream + git merge --quiet upstream/master + git checkout --quiet ${1:-'HEAD'} + git_id -n + ) +} + + +function make_dist +# Create a distribution tarball +{ + commit=$(checkout ${1:-'HEAD'}) + echo "Creating source tarball for $commit" + patch $VERSION $commit + + RELEASE_DIR="diaspora-$VERSION-$commit" + rm -rf dist/${RELEASE_DIR} + mkdir dist/${RELEASE_DIR} + cp diaspora-ws diaspora-setup diaspora.logconf dist/${RELEASE_DIR} + cd dist + mkdir ${RELEASE_DIR}/master + cp -ar diaspora/* diaspora/.git* ${RELEASE_DIR}/master + cp -r ../.bundle ${RELEASE_DIR}/master + mv ${RELEASE_DIR}/master/diaspora.spec ${RELEASE_DIR} + tar czf ${RELEASE_DIR}.tar.gz ${RELEASE_DIR} && rm -rf ${RELEASE_DIR} + cd .. + bundle_id=$(git_id dist/diaspora/Gemfile) + echo "Source: dist/${RELEASE_DIR}.tar.gz" + echo "Required bundle: $bundle_id" + echo "Source specfile: dist/diaspora.spec" + echo "Bundle specfile: dist/diaspora-bundle.spec" +} + +function make_bundle() +{ + checkout ${1:-'HEAD'} >/dev/null + bundle_id=$(git_id dist/diaspora/Gemfile) + bundle_name="diaspora-bundle-$VERSION-$bundle_id" + test -e "dist/$bundle_name.tar.gz" || { + echo "Creating bundle $bundle_name" + cd dist + rm -rf $bundle_name + mkdir -p $bundle_name/bundle + pushd diaspora > /dev/null + test -e ../../Gemfile.lock.patch && + git apply ../../Gemfile.lock.patch > /dev/null 2>&1 + rm -rf devise.tmp + git clone http://github.com/BadMinus/devise.git devise.tmp + ( cd devise.tmp; gem build devise.gemspec) + gem install --install-dir "../$bundle_name/bundle/ruby/1.8" \ + --no-rdoc --no-ri \ + --ignore-dependencies \ + devise.tmp/devise-1.1.rc1.gem && + rm -rf devise.tmp + + bundle install --deployment \ + --path="../$bundle_name/bundle" \ + --without=test rdoc + + cp AUTHORS Gemfile GNU-AGPL-3.0 COPYRIGHT "../$bundle_name" + popd + tar czf $bundle_name.tar.gz $bundle_name + } + echo + echo "Bundle: dist/$bundle_name.tar.gz" +} + +function make_links() +# Usage: make_links [source commit] +{ + dest=$(rpm --eval %_sourcedir) + test -z "$dest" && { + echo "Can't find RPM source directory, giving up." + exit 2 + } + echo "Linking sources to $dest" + + src_commit="$1" + test -z "$src_commit" && { + src_commit=$(checkout) + } + src="dist/diaspora-$VERSION-$src_commit.tar.gz" + ln -sf $PWD/$src $dest + + bundle_commit=$(git_id dist/diaspora/Gemfile) + bundle="dist/diaspora-bundle-$VERSION-$bundle_commit.tar.gz" + ln -sf $PWD/$bundle $dest + + for file in $( egrep -v '^#' SOURCES); do + ln -sf $PWD/$file $dest/$file + done + + cd $dest + find . -type l -not -readable -exec rm {} \; +} + +function usage() +{ + cat <<- EOF + + Usage: make_dist [-c commit] + + -c Use a given commit, defaults to last checked in. + dist Build a diaspora application tarball. + bundle Build a bundler(1) bundle for diaspora. + links Symlink bundle and source tarballs to rpm source dir. + + All results are stored in dist/ + EOF +} + + +test "$1" = "-h" -o $# = 0 && { + usage; + exit 0 +} + +test "$1" = "-c" && { + test -z "$2" && { + usage; + exit 1 + } + commit="$2" + shift; shift +} + + + case $1 in + + "bundle") make_bundle $commit + ;; + + 'source') make_dist $commit + ;; + + 'links') make_links $commit + ;; + + "fix_gemfile") + fix_gemfile + ;; + + *) usage + exit 1 + ;; + esac + + + diff --git a/pkg/fedora/perm-fix.patch b/pkg/fedora/perm-fix.patch new file mode 100644 index 000000000..b6fabed52 --- /dev/null +++ b/pkg/fedora/perm-fix.patch @@ -0,0 +1,120 @@ +diff --git a/public/javascripts/fancybox/blank.gif b/public/javascripts/fancybox/blank.gif +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_close.png b/public/javascripts/fancybox/fancy_close.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_loading.png b/public/javascripts/fancybox/fancy_loading.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_nav_left.png b/public/javascripts/fancybox/fancy_nav_left.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_nav_right.png b/public/javascripts/fancybox/fancy_nav_right.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_e.png b/public/javascripts/fancybox/fancy_shadow_e.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_n.png b/public/javascripts/fancybox/fancy_shadow_n.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_ne.png b/public/javascripts/fancybox/fancy_shadow_ne.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_nw.png b/public/javascripts/fancybox/fancy_shadow_nw.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_s.png b/public/javascripts/fancybox/fancy_shadow_s.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_se.png b/public/javascripts/fancybox/fancy_shadow_se.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_sw.png b/public/javascripts/fancybox/fancy_shadow_sw.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_shadow_w.png b/public/javascripts/fancybox/fancy_shadow_w.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_title_left.png b/public/javascripts/fancybox/fancy_title_left.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_title_main.png b/public/javascripts/fancybox/fancy_title_main.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_title_over.png b/public/javascripts/fancybox/fancy_title_over.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancy_title_right.png b/public/javascripts/fancybox/fancy_title_right.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancybox-x.png b/public/javascripts/fancybox/fancybox-x.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancybox-y.png b/public/javascripts/fancybox/fancybox-y.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/fancybox.png b/public/javascripts/fancybox/fancybox.png +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/jquery.easing-1.3.pack.js b/public/javascripts/fancybox/jquery.easing-1.3.pack.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/jquery.fancybox-1.3.1.css b/public/javascripts/fancybox/jquery.fancybox-1.3.1.css +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/jquery.fancybox-1.3.1.js b/public/javascripts/fancybox/jquery.fancybox-1.3.1.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/jquery.fancybox-1.3.1.pack.js b/public/javascripts/fancybox/jquery.fancybox-1.3.1.pack.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fancybox/jquery.mousewheel-3.0.2.pack.js b/public/javascripts/fancybox/jquery.mousewheel-3.0.2.pack.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/fileuploader.js b/public/javascripts/fileuploader.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/jquery.cycle/jquery.cycle.lite.min.js b/public/javascripts/jquery.cycle/jquery.cycle.lite.min.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/jquery.infieldlabel.js b/public/javascripts/jquery.infieldlabel.js +old mode 100755 +new mode 100644 +diff --git a/public/javascripts/web_socket.js b/public/javascripts/web_socket.js +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/blueprint/src/grid.css b/public/stylesheets/blueprint/src/grid.css +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/blueprint/src/print.css b/public/stylesheets/blueprint/src/print.css +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/blueprint/src/reset.css b/public/stylesheets/blueprint/src/reset.css +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.eot b/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.eot +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.svg b/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.svg +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.ttf b/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.ttf +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.woff b/public/stylesheets/brandongrotesque_light/Brandon_light-webfont.woff +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/demo.html b/public/stylesheets/brandongrotesque_light/demo.html +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/brandongrotesque_light/stylesheet.css b/public/stylesheets/brandongrotesque_light/stylesheet.css +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/fileuploader.css b/public/stylesheets/fileuploader.css +old mode 100755 +new mode 100644 +diff --git a/public/stylesheets/loading.gif b/public/stylesheets/loading.gif +old mode 100755 +new mode 100644 diff --git a/pkg/fedora/source-fix.patch b/pkg/fedora/source-fix.patch new file mode 100644 index 000000000..55dffae43 --- /dev/null +++ b/pkg/fedora/source-fix.patch @@ -0,0 +1,21 @@ +diff --git a/script/server b/script/server +index da43895..c5357a3 100755 +--- a/script/server ++++ b/script/server +@@ -7,9 +7,13 @@ then + echo "Mongod not started" + else + mkdir -p -v log/thin/ +- #force AGPL +- tar cf ../_source.tar -X .gitignore * +- mv ../_source.tar public/source.tar ++ #force AGPL ++ test -w public -a ! -e public/source.tar && ++ tar cf public/source.tar --exclude='source.tar' -X .gitignore * ++ test -e public/source.tar || { ++ echo "Can't find, or even create, public/source.tar. Giving up" ++ exit 2 ++ } + bundle exec ruby ./script/websocket_server.rb& + bundle exec thin start $@ + fi diff --git a/script/ubuntu-setup.bash b/pkg/ubuntu-setup.bash similarity index 96% rename from script/ubuntu-setup.bash rename to pkg/ubuntu-setup.bash index 666eac818..cbf42c60a 100755 --- a/script/ubuntu-setup.bash +++ b/pkg/ubuntu-setup.bash @@ -5,7 +5,7 @@ # This script helps to setup diaspora. # # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # USAGE: ./script/ubuntu-setup.bash @@ -23,10 +23,11 @@ We need to do some actions as an ordinary user. We use sudo where necessary." && # Check if the user has sudo privileges. sudo -v >/dev/null 2>&1 || { echo $(whoami) has no sudo privileges ; exit 1; } -# Check if universal repository is enabled -grep -i universe /etc/apt/sources.list > /dev/null || \ +# Check if universal repository is enabled +grep -ie '^deb .*universe' /etc/apt/sources.list > /dev/null || \ { echo "Please enable universe repository" ; exit 1 ; } + # Make sure that we only install the latest version of packages sudo apt-get update diff --git a/public/javascripts/aspect-edit.js b/public/javascripts/aspect-edit.js index cb36d394e..59ba6e331 100644 --- a/public/javascripts/aspect-edit.js +++ b/public/javascripts/aspect-edit.js @@ -1,5 +1,5 @@ /* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3. See +* licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ diff --git a/public/javascripts/image_picker.js b/public/javascripts/image_picker.js index 1342102ee..2692ffee9 100644 --- a/public/javascripts/image_picker.js +++ b/public/javascripts/image_picker.js @@ -1,5 +1,5 @@ /* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3. See +* licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index 7811fb1a3..d4f72bcbc 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -1,5 +1,5 @@ /* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3. See +* licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ diff --git a/public/javascripts/view.js b/public/javascripts/view.js index 1509145da..58264470f 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -1,5 +1,5 @@ /* Copyright (c) 2010, Diaspora Inc. This file is -* licensed under the Affero General Public License version 3. See +* licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 225c5ca84..83465d57e 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -1,5 +1,5 @@ // Copyright (c) 2010, Diaspora Inc. This file is -// licensed under the Affero General Public License version 3. See +// licensed under the Affero General Public License version 3 or later. See // the COPYRIGHT file. diff --git a/public/stylesheets/sass/sessions.sass b/public/stylesheets/sass/sessions.sass index d7cf4644e..c785b8396 100644 --- a/public/stylesheets/sass/sessions.sass +++ b/public/stylesheets/sass/sessions.sass @@ -1,5 +1,5 @@ // Copyright (c) 2010, Diaspora Inc. This file is -// licensed under the Affero General Public License version 3. See +// licensed under the Affero General Public License version 3 or later. See // the COPYRIGHT file. diff --git a/public/stylesheets/sass/ui.sass b/public/stylesheets/sass/ui.sass index d3ea77e0e..e064b3fcf 100644 --- a/public/stylesheets/sass/ui.sass +++ b/public/stylesheets/sass/ui.sass @@ -1,5 +1,5 @@ // Copyright (c) 2010, Diaspora Inc. This file is -// licensed under the Affero General Public License version 3. See +// licensed under the Affero General Public License version 3 or later. See // the COPYRIGHT file. diff --git a/script/websocket_server.rb b/script/websocket_server.rb index dae054f15..65199175e 100644 --- a/script/websocket_server.rb +++ b/script/websocket_server.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.dirname(__FILE__) + '/../config/environment' diff --git a/spec/controllers/albums_controller_spec.rb b/spec/controllers/albums_controller_spec.rb index a8f5f8506..5c53f1909 100644 --- a/spec/controllers/albums_controller_spec.rb +++ b/spec/controllers/albums_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/controllers/aspects_controller_spec.rb b/spec/controllers/aspects_controller_spec.rb index 2e05b850c..19bb7bf5d 100644 --- a/spec/controllers/aspects_controller_spec.rb +++ b/spec/controllers/aspects_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/controllers/dev_utilities_controller_spec.rb b/spec/controllers/dev_utilities_controller_spec.rb index c4439c790..128c754be 100644 --- a/spec/controllers/dev_utilities_controller_spec.rb +++ b/spec/controllers/dev_utilities_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require File.join(File.dirname(__FILE__), "..", "spec_helper") diff --git a/spec/controllers/people_controller_spec.rb b/spec/controllers/people_controller_spec.rb index 4ce6e3e69..c2af4cc93 100644 --- a/spec/controllers/people_controller_spec.rb +++ b/spec/controllers/people_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/controllers/publics_controller_spec.rb b/spec/controllers/publics_controller_spec.rb index 22e71befb..19c95a705 100644 --- a/spec/controllers/publics_controller_spec.rb +++ b/spec/controllers/publics_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/controllers/sockets_controller_spec.rb b/spec/controllers/sockets_controller_spec.rb index 905b1611e..37f59a831 100644 --- a/spec/controllers/sockets_controller_spec.rb +++ b/spec/controllers/sockets_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 69c4b6df3..502353f6a 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/factories.rb b/spec/factories.rb index 3444cf9e1..5e5c32b10 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. #For Guidance diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 459563cff..f64ca0b97 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/helpers/publics_helper_spec.rb b/spec/helpers/publics_helper_spec.rb index bc6a5021b..9b52c30a4 100644 --- a/spec/helpers/publics_helper_spec.rb +++ b/spec/helpers/publics_helper_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/helpers/requests_helper_spec.rb b/spec/helpers/requests_helper_spec.rb index bf99f89d1..b21ebabfa 100644 --- a/spec/helpers/requests_helper_spec.rb +++ b/spec/helpers/requests_helper_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/diaspora_parser_spec.rb b/spec/lib/diaspora_parser_spec.rb index d5722fd65..fede700ad 100644 --- a/spec/lib/diaspora_parser_spec.rb +++ b/spec/lib/diaspora_parser_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/exporter_spec.rb b/spec/lib/exporter_spec.rb index 2831b8ef7..aafb4b13c 100644 --- a/spec/lib/exporter_spec.rb +++ b/spec/lib/exporter_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/hcard_spec.rb b/spec/lib/hcard_spec.rb index 45d7157b9..fc7bb8af5 100644 --- a/spec/lib/hcard_spec.rb +++ b/spec/lib/hcard_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/message_handler_spec.rb b/spec/lib/message_handler_spec.rb index ddc822334..3a62bc538 100644 --- a/spec/lib/message_handler_spec.rb +++ b/spec/lib/message_handler_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/ostatus_builder_spec.rb b/spec/lib/ostatus_builder_spec.rb index 042bf202b..8e838a643 100644 --- a/spec/lib/ostatus_builder_spec.rb +++ b/spec/lib/ostatus_builder_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/salmon_salmon_spec.rb b/spec/lib/salmon_salmon_spec.rb index 40f928c18..873d060c6 100644 --- a/spec/lib/salmon_salmon_spec.rb +++ b/spec/lib/salmon_salmon_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/web_hooks_spec.rb b/spec/lib/web_hooks_spec.rb index e316817d4..3a51ed1ed 100644 --- a/spec/lib/web_hooks_spec.rb +++ b/spec/lib/web_hooks_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/lib/websocket_spec.rb b/spec/lib/websocket_spec.rb index 0b76e0f52..84001fc9f 100644 --- a/spec/lib/websocket_spec.rb +++ b/spec/lib/websocket_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/misc_spec.rb b/spec/misc_spec.rb index c4b2cc67c..1db3f3f82 100644 --- a/spec/misc_spec.rb +++ b/spec/misc_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/album_spec.rb b/spec/models/album_spec.rb index ed13ba102..a47c6026d 100644 --- a/spec/models/album_spec.rb +++ b/spec/models/album_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/aspect_spec.rb b/spec/models/aspect_spec.rb index 23453eee9..6c8a4aef6 100644 --- a/spec/models/aspect_spec.rb +++ b/spec/models/aspect_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/comments_spec.rb b/spec/models/comments_spec.rb index 732c4349b..c46fed5ba 100644 --- a/spec/models/comments_spec.rb +++ b/spec/models/comments_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/fb_status_spec.rb b/spec/models/fb_status_spec.rb index 2ab232fce..a575a1873 100644 --- a/spec/models/fb_status_spec.rb +++ b/spec/models/fb_status_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index 6df3ddc1c..67fd1409c 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/photo_spec.rb b/spec/models/photo_spec.rb index f3f77f3db..2a4ac4991 100644 --- a/spec/models/photo_spec.rb +++ b/spec/models/photo_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index b0ed59b7d..bc445af99 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/profile_spec.rb b/spec/models/profile_spec.rb index 2e38c20ae..7bba8311c 100644 --- a/spec/models/profile_spec.rb +++ b/spec/models/profile_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/request_spec.rb b/spec/models/request_spec.rb index c8fb8af05..5364ef5f3 100644 --- a/spec/models/request_spec.rb +++ b/spec/models/request_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/retraction_spec.rb b/spec/models/retraction_spec.rb index 777855234..fd8e3d28a 100644 --- a/spec/models/retraction_spec.rb +++ b/spec/models/retraction_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/status_message_spec.rb b/spec/models/status_message_spec.rb index d7dbf19e4..2d8d0c5bf 100644 --- a/spec/models/status_message_spec.rb +++ b/spec/models/status_message_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/user/posting_spec.rb b/spec/models/user/posting_spec.rb index 518c03d2d..563e1473b 100644 --- a/spec/models/user/posting_spec.rb +++ b/spec/models/user/posting_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/user/receive_spec.rb b/spec/models/user/receive_spec.rb index fce699cf6..c9ec4e207 100644 --- a/spec/models/user/receive_spec.rb +++ b/spec/models/user/receive_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/user/user_friending_spec.rb b/spec/models/user/user_friending_spec.rb index 4ea51ad19..fa4dd53b6 100644 --- a/spec/models/user/user_friending_spec.rb +++ b/spec/models/user/user_friending_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/user/visible_posts_spec.rb b/spec/models/user/visible_posts_spec.rb index 040fcd1bc..c4cf40797 100644 --- a/spec/models/user/visible_posts_spec.rb +++ b/spec/models/user/visible_posts_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index d21b1d57c..100b9ff39 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4149200d8..7dede4436 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. # This file is copied to ~/spec when you run 'ruby script/generate rspec' diff --git a/spec/user_encryption_spec.rb b/spec/user_encryption_spec.rb index a7fd8c548..f222a7674 100644 --- a/spec/user_encryption_spec.rb +++ b/spec/user_encryption_spec.rb @@ -1,5 +1,5 @@ # Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3. See +# licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. require 'spec_helper'