Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
4c15b1a0
Commit
4c15b1a0
authored
Sep 13, 2010
by
Daniel Vincent Grippi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added license to every single goddamn file. also, put one in the root dir.
parent
3be86c2b
Changes
204
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
204 changed files
with
4029 additions
and
15 deletions
+4029
-15
Capfile
Capfile
+20
-0
GNU-AGPL-3.0
GNU-AGPL-3.0
+662
-0
Rakefile
Rakefile
+20
-0
app/controllers/albums_controller.rb
app/controllers/albums_controller.rb
+19
-0
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+19
-0
app/controllers/aspects_controller.rb
app/controllers/aspects_controller.rb
+19
-0
app/controllers/comments_controller.rb
app/controllers/comments_controller.rb
+19
-0
app/controllers/dev_utilities_controller.rb
app/controllers/dev_utilities_controller.rb
+19
-0
app/controllers/people_controller.rb
app/controllers/people_controller.rb
+19
-0
app/controllers/photos_controller.rb
app/controllers/photos_controller.rb
+19
-0
app/controllers/publics_controller.rb
app/controllers/publics_controller.rb
+19
-0
app/controllers/requests_controller.rb
app/controllers/requests_controller.rb
+19
-0
app/controllers/sockets_controller.rb
app/controllers/sockets_controller.rb
+19
-0
app/controllers/status_messages_controller.rb
app/controllers/status_messages_controller.rb
+19
-0
app/controllers/users_controller.rb
app/controllers/users_controller.rb
+19
-0
app/helpers/albums_helper.rb
app/helpers/albums_helper.rb
+19
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+19
-0
app/helpers/aspects_helper.rb
app/helpers/aspects_helper.rb
+19
-0
app/helpers/blogs_helper.rb
app/helpers/blogs_helper.rb
+0
-2
app/helpers/bookmarks_helper.rb
app/helpers/bookmarks_helper.rb
+0
-2
app/helpers/comments_helper.rb
app/helpers/comments_helper.rb
+0
-3
app/helpers/dashboards_helper.rb
app/helpers/dashboards_helper.rb
+19
-0
app/helpers/error_messages_helper.rb
app/helpers/error_messages_helper.rb
+19
-0
app/helpers/friends_helper.rb
app/helpers/friends_helper.rb
+0
-2
app/helpers/layout_helper.rb
app/helpers/layout_helper.rb
+19
-0
app/helpers/people_helper.rb
app/helpers/people_helper.rb
+19
-0
app/helpers/photos_helper.rb
app/helpers/photos_helper.rb
+19
-0
app/helpers/publics_helper.rb
app/helpers/publics_helper.rb
+19
-0
app/helpers/requests_helper.rb
app/helpers/requests_helper.rb
+19
-0
app/helpers/sockets_helper.rb
app/helpers/sockets_helper.rb
+19
-0
app/helpers/status_messages_helper.rb
app/helpers/status_messages_helper.rb
+19
-0
app/helpers/users_helper.rb
app/helpers/users_helper.rb
+0
-2
app/models/album.rb
app/models/album.rb
+19
-0
app/models/aspect.rb
app/models/aspect.rb
+19
-0
app/models/comment.rb
app/models/comment.rb
+19
-0
app/models/person.rb
app/models/person.rb
+19
-0
app/models/photo.rb
app/models/photo.rb
+19
-0
app/models/post.rb
app/models/post.rb
+19
-0
app/models/profile.rb
app/models/profile.rb
+19
-0
app/models/request.rb
app/models/request.rb
+19
-0
app/models/retraction.rb
app/models/retraction.rb
+19
-0
app/models/status_message.rb
app/models/status_message.rb
+19
-0
app/models/user.rb
app/models/user.rb
+19
-0
app/uploaders/image_uploader.rb
app/uploaders/image_uploader.rb
+19
-0
app/views/albums/_album.html.haml
app/views/albums/_album.html.haml
+19
-0
app/views/albums/_new_album.haml
app/views/albums/_new_album.haml
+19
-0
app/views/albums/edit.html.haml
app/views/albums/edit.html.haml
+19
-0
app/views/albums/index.html.haml
app/views/albums/index.html.haml
+19
-0
app/views/albums/show.html.haml
app/views/albums/show.html.haml
+19
-0
app/views/aspects/_new_aspect.haml
app/views/aspects/_new_aspect.haml
+19
-0
app/views/aspects/edit.html.haml
app/views/aspects/edit.html.haml
+19
-0
app/views/aspects/index.html.haml
app/views/aspects/index.html.haml
+19
-0
app/views/aspects/new.html.haml
app/views/aspects/new.html.haml
+19
-0
app/views/aspects/show.html.haml
app/views/aspects/show.html.haml
+19
-0
app/views/comments/_comment.html.haml
app/views/comments/_comment.html.haml
+19
-0
app/views/comments/_comments.html.haml
app/views/comments/_comments.html.haml
+19
-0
app/views/comments/_new_comment.html.haml
app/views/comments/_new_comment.html.haml
+19
-0
app/views/js/_websocket_js.haml
app/views/js/_websocket_js.haml
+19
-0
app/views/layouts/session_wall.html.haml
app/views/layouts/session_wall.html.haml
+19
-0
app/views/people/index.html.haml
app/views/people/index.html.haml
+19
-0
app/views/people/new.html.haml
app/views/people/new.html.haml
+19
-0
app/views/people/show.html.haml
app/views/people/show.html.haml
+19
-0
app/views/photos/_new_photo.haml
app/views/photos/_new_photo.haml
+19
-0
app/views/photos/_photo.haml
app/views/photos/_photo.haml
+19
-0
app/views/photos/edit.html.haml
app/views/photos/edit.html.haml
+19
-0
app/views/photos/new.html.haml
app/views/photos/new.html.haml
+19
-0
app/views/photos/show.html.haml
app/views/photos/show.html.haml
+19
-0
app/views/posts/_debug.haml
app/views/posts/_debug.haml
+19
-0
app/views/posts/_post.html.haml
app/views/posts/_post.html.haml
+20
-1
app/views/requests/_new_request.haml
app/views/requests/_new_request.haml
+19
-0
app/views/requests/_request.html.haml
app/views/requests/_request.html.haml
+19
-0
app/views/requests/edit.html.haml
app/views/requests/edit.html.haml
+19
-0
app/views/requests/index.html.haml
app/views/requests/index.html.haml
+19
-0
app/views/requests/show.html.haml
app/views/requests/show.html.haml
+19
-0
app/views/shared/_aspect_friends.haml
app/views/shared/_aspect_friends.haml
+19
-0
app/views/shared/_aspect_nav.haml
app/views/shared/_aspect_nav.haml
+19
-0
app/views/shared/_post_wrapper.haml
app/views/shared/_post_wrapper.haml
+19
-0
app/views/shared/_publisher.haml
app/views/shared/_publisher.haml
+19
-0
app/views/shared/log.haml
app/views/shared/log.haml
+20
-1
app/views/status_messages/_new_status_message.haml
app/views/status_messages/_new_status_message.haml
+19
-0
app/views/status_messages/_status_message.html.haml
app/views/status_messages/_status_message.html.haml
+19
-0
app/views/status_messages/index.html.haml
app/views/status_messages/index.html.haml
+19
-0
app/views/status_messages/show.html.haml
app/views/status_messages/show.html.haml
+19
-0
app/views/users/edit.html.haml
app/views/users/edit.html.haml
+19
-0
autotest/discover.rb
autotest/discover.rb
+19
-0
config.ru
config.ru
+20
-0
config/app_config.yml
config/app_config.yml
+20
-0
config/application.rb
config/application.rb
+20
-0
config/boot.rb
config/boot.rb
+20
-0
config/environment.rb
config/environment.rb
+20
-0
config/environments/development.rb
config/environments/development.rb
+19
-0
config/environments/production.rb
config/environments/production.rb
+19
-0
config/environments/test.rb
config/environments/test.rb
+19
-0
config/initializers/_mongo.rb
config/initializers/_mongo.rb
+19
-0
config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
+19
-0
config/initializers/carrierwave.rb
config/initializers/carrierwave.rb
+19
-0
config/initializers/devise.rb
config/initializers/devise.rb
+19
-0
config/initializers/inflections.rb
config/initializers/inflections.rb
+19
-0
config/initializers/load_app_config.rb
config/initializers/load_app_config.rb
+19
-0
config/initializers/logging.rb
config/initializers/logging.rb
+19
-0
config/initializers/mime_types.rb
config/initializers/mime_types.rb
+19
-0
config/initializers/rspec_generator.rb
config/initializers/rspec_generator.rb
+19
-0
config/initializers/secret_token.rb
config/initializers/secret_token.rb
+19
-0
config/initializers/session_store.rb
config/initializers/session_store.rb
+19
-0
config/initializers/socket.rb
config/initializers/socket.rb
+19
-0
config/locales/devise.en.yml
config/locales/devise.en.yml
+19
-0
config/locales/en.yml
config/locales/en.yml
+19
-0
config/routes.rb
config/routes.rb
+20
-0
config/selenium.yml
config/selenium.yml
+20
-0
config/sprinkle/conf/nginx.conf
config/sprinkle/conf/nginx.conf
+19
-0
config/sprinkle/packages/database.rb
config/sprinkle/packages/database.rb
+20
-0
config/sprinkle/packages/essential.rb
config/sprinkle/packages/essential.rb
+20
-0
config/sprinkle/packages/ruby.rb
config/sprinkle/packages/ruby.rb
+20
-0
config/sprinkle/packages/scm.rb
config/sprinkle/packages/scm.rb
+20
-0
config/sprinkle/packages/server.rb
config/sprinkle/packages/server.rb
+20
-0
config/sprinkle/packages/unfortunately_essential.rb
config/sprinkle/packages/unfortunately_essential.rb
+20
-0
config/sprinkle/provision.rb
config/sprinkle/provision.rb
+20
-0
config/thin.yml
config/thin.yml
+20
-0
db/schema.rb
db/schema.rb
+20
-0
db/seeds.rb
db/seeds.rb
+20
-0
db/seeds/backer.rb
db/seeds/backer.rb
+20
-0
db/seeds/dev.rb
db/seeds/dev.rb
+20
-0
db/seeds/tom.rb
db/seeds/tom.rb
+20
-0
lib/chrome_frame.rb
lib/chrome_frame.rb
+21
-1
lib/diaspora.rb
lib/diaspora.rb
+20
-0
lib/diaspora/parser.rb
lib/diaspora/parser.rb
+20
-0
lib/diaspora/user/friending.rb
lib/diaspora/user/friending.rb
+20
-0
lib/diaspora/user/querying.rb
lib/diaspora/user/querying.rb
+20
-0
lib/diaspora/webhooks.rb
lib/diaspora/webhooks.rb
+20
-0
lib/diaspora/websocket.rb
lib/diaspora/websocket.rb
+20
-0
lib/encryptable.rb
lib/encryptable.rb
+20
-0
lib/encryptor.rb
lib/encryptor.rb
+20
-0
lib/hcard.rb
lib/hcard.rb
+20
-0
lib/message_handler.rb
lib/message_handler.rb
+20
-0
lib/mongo_mapper/bson_id.rb
lib/mongo_mapper/bson_id.rb
+20
-0
lib/mongo_mapper/clear_dev_memory.rb
lib/mongo_mapper/clear_dev_memory.rb
+20
-0
lib/salmon/salmon.rb
lib/salmon/salmon.rb
+20
-0
lib/tasks/db.rake
lib/tasks/db.rake
+20
-0
lib/tasks/rspec.rake
lib/tasks/rspec.rake
+20
-0
lib/tasks/saucelabs_adapter.rake
lib/tasks/saucelabs_adapter.rake
+20
-0
public/javascripts/fancybox/blank.gif
public/javascripts/fancybox/blank.gif
+0
-0
public/javascripts/fancybox/fancy_close.png
public/javascripts/fancybox/fancy_close.png
+0
-0
public/javascripts/fancybox/fancy_loading.png
public/javascripts/fancybox/fancy_loading.png
+0
-0
public/javascripts/fancybox/fancy_nav_left.png
public/javascripts/fancybox/fancy_nav_left.png
+0
-0
public/javascripts/fancybox/fancy_nav_right.png
public/javascripts/fancybox/fancy_nav_right.png
+0
-0
public/javascripts/fancybox/fancy_shadow_e.png
public/javascripts/fancybox/fancy_shadow_e.png
+0
-0
public/javascripts/fancybox/fancy_shadow_n.png
public/javascripts/fancybox/fancy_shadow_n.png
+0
-0
public/javascripts/fancybox/fancy_shadow_ne.png
public/javascripts/fancybox/fancy_shadow_ne.png
+0
-0
public/javascripts/fancybox/fancy_shadow_nw.png
public/javascripts/fancybox/fancy_shadow_nw.png
+0
-0
public/javascripts/fancybox/fancy_shadow_s.png
public/javascripts/fancybox/fancy_shadow_s.png
+0
-0
public/javascripts/fancybox/fancy_shadow_se.png
public/javascripts/fancybox/fancy_shadow_se.png
+0
-0
public/javascripts/fancybox/fancy_shadow_sw.png
public/javascripts/fancybox/fancy_shadow_sw.png
+0
-0
public/javascripts/fancybox/fancy_shadow_w.png
public/javascripts/fancybox/fancy_shadow_w.png
+0
-0
public/javascripts/fancybox/fancy_title_left.png
public/javascripts/fancybox/fancy_title_left.png
+0
-0
public/javascripts/fancybox/fancy_title_main.png
public/javascripts/fancybox/fancy_title_main.png
+0
-0
public/javascripts/fancybox/fancy_title_over.png
public/javascripts/fancybox/fancy_title_over.png
+0
-0
public/javascripts/fancybox/fancy_title_right.png
public/javascripts/fancybox/fancy_title_right.png
+0
-0
public/javascripts/fancybox/fancybox-x.png
public/javascripts/fancybox/fancybox-x.png
+0
-0
public/javascripts/fancybox/fancybox-y.png
public/javascripts/fancybox/fancybox-y.png
+0
-0
public/javascripts/fancybox/fancybox.png
public/javascripts/fancybox/fancybox.png
+0
-0
public/javascripts/fancybox/jquery.easing-1.3.pack.js
public/javascripts/fancybox/jquery.easing-1.3.pack.js
+0
-0
public/javascripts/fancybox/jquery.fancybox-1.3.1.css
public/javascripts/fancybox/jquery.fancybox-1.3.1.css
+0
-0
public/javascripts/fancybox/jquery.fancybox-1.3.1.js
public/javascripts/fancybox/jquery.fancybox-1.3.1.js
+1
-1
public/javascripts/fancybox/jquery.fancybox-1.3.1.pack.js
public/javascripts/fancybox/jquery.fancybox-1.3.1.pack.js
+0
-0
public/javascripts/fancybox/jquery.mousewheel-3.0.2.pack.js
public/javascripts/fancybox/jquery.mousewheel-3.0.2.pack.js
+0
-0
public/stylesheets/sass/application.sass
public/stylesheets/sass/application.sass
+19
-0
public/stylesheets/sass/sessions.sass
public/stylesheets/sass/sessions.sass
+20
-0
public/stylesheets/sass/ui.sass
public/stylesheets/sass/ui.sass
+19
-0
spec/controllers/aspects_controller_spec.rb
spec/controllers/aspects_controller_spec.rb
+20
-0
spec/controllers/people_controller_spec.rb
spec/controllers/people_controller_spec.rb
+20
-0
spec/controllers/publics_controller_spec.rb
spec/controllers/publics_controller_spec.rb
+20
-0
spec/controllers/requests_controller_spec.rb
spec/controllers/requests_controller_spec.rb
+20
-0
spec/controllers/sockets_controller_spec.rb
spec/controllers/sockets_controller_spec.rb
+20
-0
spec/factories.rb
spec/factories.rb
+20
-0
spec/helpers/application_helper_spec.rb
spec/helpers/application_helper_spec.rb
+20
-0
spec/helpers/publics_helper_spec.rb
spec/helpers/publics_helper_spec.rb
+20
-0
spec/helpers/requests_helper_spec.rb
spec/helpers/requests_helper_spec.rb
+20
-0
spec/lib/diaspora_parser_spec.rb
spec/lib/diaspora_parser_spec.rb
+20
-0
spec/lib/hcard_spec.rb
spec/lib/hcard_spec.rb
+20
-0
spec/lib/message_handler_spec.rb
spec/lib/message_handler_spec.rb
+20
-0
spec/lib/salmon_salmon_spec.rb
spec/lib/salmon_salmon_spec.rb
+20
-0
spec/lib/web_hooks_spec.rb
spec/lib/web_hooks_spec.rb
+20
-0
spec/misc_spec.rb
spec/misc_spec.rb
+20
-0
spec/models/album_spec.rb
spec/models/album_spec.rb
+20
-0
spec/models/aspect_spec.rb
spec/models/aspect_spec.rb
+20
-0
spec/models/comments_spec.rb
spec/models/comments_spec.rb
+20
-0
spec/models/person_spec.rb
spec/models/person_spec.rb
+20
-0
spec/models/photo_spec.rb
spec/models/photo_spec.rb
+20
-0
spec/models/post_spec.rb
spec/models/post_spec.rb
+20
-0
spec/models/profile_spec.rb
spec/models/profile_spec.rb
+20
-0
spec/models/request_spec.rb
spec/models/request_spec.rb
+20
-0
spec/models/retraction_spec.rb
spec/models/retraction_spec.rb
+20
-0
spec/models/status_message_spec.rb
spec/models/status_message_spec.rb
+20
-0
spec/models/user/posting_spec.rb
spec/models/user/posting_spec.rb
+20
-0
spec/models/user/receive_spec.rb
spec/models/user/receive_spec.rb
+20
-0
spec/models/user/user_friending_spec.rb
spec/models/user/user_friending_spec.rb
+20
-0
spec/models/user/visible_posts_spec.rb
spec/models/user/visible_posts_spec.rb
+20
-0
spec/models/user_spec.rb
spec/models/user_spec.rb
+20
-0
spec/spec_helper.rb
spec/spec_helper.rb
+20
-0
spec/user_encryption_spec.rb
spec/user_encryption_spec.rb
+20
-0
test/performance/browsing_test.rb
test/performance/browsing_test.rb
+20
-0
test/selenium/login_test.rb
test/selenium/login_test.rb
+20
-0
test/selenium/selenium_suite.rb
test/selenium/selenium_suite.rb
+20
-0
test/test_helper.rb
test/test_helper.rb
+20
-0
No files found.
Capfile
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
load
'deploy'
if
respond_to?
(
:namespace
)
# cap2 differentiator
Dir
[
'vendor/plugins/*/recipes/*.rb'
].
each
{
|
plugin
|
load
(
plugin
)
}
...
...
GNU-AGPL-3.0
0 → 100644
View file @
4c15b1a0
This diff is collapsed.
Click to expand it.
Rakefile
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
...
...
app/controllers/albums_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
AlbumsController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/application_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
ApplicationController
<
ActionController
::
Base
protect_from_forgery
:except
=>
:receive
...
...
app/controllers/aspects_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
AspectsController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/comments_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
CommentsController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/dev_utilities_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
DevUtilitiesController
<
ApplicationController
before_filter
:authenticate_user!
,
:except
=>
[
:set_backer_number
]
include
ApplicationHelper
...
...
app/controllers/people_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
PeopleController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/photos_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
PhotosController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/publics_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
PublicsController
<
ApplicationController
require
'lib/diaspora/parser'
include
Diaspora
::
Parser
...
...
app/controllers/requests_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
RequestsController
<
ApplicationController
before_filter
:authenticate_user!
include
RequestsHelper
...
...
app/controllers/sockets_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
SocketsController
<
ApplicationController
include
ApplicationHelper
include
SocketsHelper
...
...
app/controllers/status_messages_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
StatusMessagesController
<
ApplicationController
before_filter
:authenticate_user!
...
...
app/controllers/users_controller.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
class
UsersController
<
ApplicationController
before_filter
:authenticate_user!
,
:except
=>
[
:new
,
:create
]
...
...
app/helpers/albums_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
AlbumsHelper
def
friends_albums_link
if
params
[
:friends
]
...
...
app/helpers/application_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
ApplicationHelper
def
current_aspect?
(
aspect
)
...
...
app/helpers/aspects_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
AspectsHelper
def
link_for_aspect
(
aspect
)
link_to
aspect
.
name
,
aspect
...
...
app/helpers/blogs_helper.rb
deleted
100644 → 0
View file @
3be86c2b
module
BlogsHelper
end
app/helpers/bookmarks_helper.rb
deleted
100644 → 0
View file @
3be86c2b
module
BookmarksHelper
end
app/helpers/comments_helper.rb
deleted
100644 → 0
View file @
3be86c2b
module
CommentsHelper
end
app/helpers/dashboards_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
DashboardsHelper
def
title_for_page
...
...
app/helpers/error_messages_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
ErrorMessagesHelper
# Render error messages for the given objects. The :message and :header_message options are allowed.
def
error_messages_for
(
*
objects
)
...
...
app/helpers/friends_helper.rb
deleted
100644 → 0
View file @
3be86c2b
module
FriendsHelper
end
app/helpers/layout_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
# These helper methods can be called in your template to set variables to be used in the layout
# This module should be included in all views globally,
# to do so you may need to add this line to your ApplicationController
...
...
app/helpers/people_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
PeopleHelper
def
search_or_index
...
...
app/helpers/photos_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
PhotosHelper
def
linked_scaled_photo
(
photo
,
album
)
...
...
app/helpers/publics_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
#
module
PublicsHelper
def
subscribe
(
opts
=
{})
subscriber
=
Subscriber
.
first
(
:url
=>
opts
[
:callback
],
:topic
=>
opts
[
:topic
])
...
...
app/helpers/requests_helper.rb
View file @
4c15b1a0
# Copyright 2010 Diaspora Inc.
#
# This file is part of Diaspora.
#
# Diaspora is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Diaspora is distributed in the hope that it will be useful,