Permalink
Browse files

Put GitHaven under the GNU Affero General Public License

  • Loading branch information...
1 parent 1e8433e commit 6ee14f9b0937eee220a28edf9a050f51482f9d03 @icefox committed Jun 20, 2010
Showing with 1,991 additions and 5 deletions.
  1. +661 −0 LICENSE
  2. +659 −5 web/LICENSE
  3. +17 −0 web/app/controllers/application.rb
  4. +17 −0 web/app/controllers/links_controller.rb
  5. +17 −0 web/app/controllers/permissions_controller.rb
  6. +17 −0 web/app/controllers/repositories_controller.rb
  7. +17 −0 web/app/controllers/sshkeys_controller.rb
  8. +17 −0 web/app/controllers/tags_controller.rb
  9. +17 −0 web/app/controllers/users_controller.rb
  10. +17 −0 web/app/helpers/application_helper.rb
  11. +17 −0 web/app/helpers/links_helper.rb
  12. +17 −0 web/app/helpers/permissions_helper.rb
  13. +17 −0 web/app/helpers/repositories_helper.rb
  14. +17 −0 web/app/helpers/sshkeys_helper.rb
  15. +17 −0 web/app/helpers/tags_helper.rb
  16. +17 −0 web/app/helpers/users_helper.rb
  17. +17 −0 web/app/models/link.rb
  18. +17 −0 web/app/models/permission.rb
  19. +17 −0 web/app/models/repository.rb
  20. +17 −0 web/app/models/sshkey.rb
  21. +17 −0 web/app/models/tag.rb
  22. +17 −0 web/app/models/user.rb
  23. +18 −0 web/app/views/application/index.html.erb
  24. +18 −0 web/app/views/layouts/site.erb
  25. +18 −0 web/app/views/links/edit.html.erb
  26. +18 −0 web/app/views/links/new.html.erb
  27. +18 −0 web/app/views/permissions/edit.html.erb
  28. +18 −0 web/app/views/permissions/new.html.erb
  29. +18 −0 web/app/views/repositories/edit.html.erb
  30. +18 −0 web/app/views/repositories/new.html.erb
  31. +18 −0 web/app/views/sshkeys/_show.html.erb
  32. +18 −0 web/app/views/sshkeys/edit.html.erb
  33. +18 −0 web/app/views/sshkeys/new.html.erb
  34. +18 −0 web/app/views/tags/new.html.erb
  35. +18 −0 web/app/views/tags/show.html.erb
  36. +18 −0 web/app/views/users/edit.html.erb
  37. +18 −0 web/app/views/users/index.html.erb
  38. +18 −0 web/app/views/users/login.html.erb
  39. +18 −0 web/app/views/users/new.html.erb
  40. +18 −0 web/app/views/users/show.html.erb
  41. +7 −0 web/images.LICENSE
View
661 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class LinksController < ApplicationController
before_filter :require_login
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class PermissionsController < ApplicationController
before_filter :require_login
before_filter :require_authorization, :except => [:new, :create]
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class RepositoriesController < ApplicationController
before_filter :require_login, :only => [:new, :create, :edit, :update, :destroy, :fork]
before_filter :requires_authorization, :only => [:edit, :update, :destroy]
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class SshkeysController < ApplicationController
before_filter :require_login
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class TagsController < ApplicationController
before_filter :require_login, :except => [:show]
before_filter :require_authorization, :except => [:show, :new, :create, :destroy]
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class UsersController < ApplicationController
before_filter :require_login, :except => [:login, :show, :new, :create ]
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module LinksHelper
end
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module PermissionsHelper
end
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module RepositoriesHelper
def link_to_path(path, name)
link = "<a href=\"\/";
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module SshkeysHelper
end
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module TagsHelper
end
@@ -1,2 +1,19 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
module UsersHelper
end
View
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class Link < ActiveRecord::Base
belongs_to :repository
validates_uniqueness_of :name, :scope => :repository_id
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class Permission < ActiveRecord::Base
belongs_to :repository
belongs_to :user
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
require 'grit'
require 'fileutils'
View
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class Sshkey < ActiveRecord::Base
after_save :update_authorizedkeys
after_destroy :update_authorizedkeys
View
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2010 Benjamin C. Meyer <ben@meyerhome.net>
+#
+# This program 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.
+#
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
class Tag < ActiveRecord::Base
belongs_to :repository
validates_presence_of :tag
Oops, something went wrong.

0 comments on commit 6ee14f9

Please sign in to comment.