summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-21 14:39:07 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-21 14:39:07 +0200
commit8e13e19461e7fae0037a17378a3e4732ed131e21 (patch)
tree5be8fd16cbe17535411a0b01885da54a895dd123
parentddff5b8afe18442ebea1e67bd6f77310b5bf9f0f (diff)
downloadnorsk-urskog-registrations-8e13e19461e7fae0037a17378a3e4732ed131e21.tar.gz
norsk-urskog-registrations-8e13e19461e7fae0037a17378a3e4732ed131e21.tar.bz2
norsk-urskog-registrations-8e13e19461e7fae0037a17378a3e4732ed131e21.zip
Add license header to source files.HEADmaster
-rw-r--r--Capfile16
-rw-r--r--Gemfile16
-rw-r--r--config.ru16
-rw-r--r--config/deploy.rb16
-rw-r--r--config/deploy/production.rb16
-rw-r--r--config/deploy/staging.rb16
-rw-r--r--config/puma.rb16
-rw-r--r--lib/band.rb16
-rw-r--r--lib/contact.rb16
-rw-r--r--lib/member.rb16
-rw-r--r--lib/pdf_form.rb16
-rw-r--r--lib/registration.rb16
-rw-r--r--lib/song.rb16
-rw-r--r--public/mobile-styles.css16
-rw-r--r--public/regform.js16
-rw-r--r--public/styles.css16
-rw-r--r--registration.rb16
-rw-r--r--spec/contact_spec.rb16
-rw-r--r--spec/email_spec.rb16
-rw-r--r--spec/features/register_band_spec.rb16
-rw-r--r--spec/pdf_form_spec.rb16
-rw-r--r--spec/registration_spec.rb16
-rw-r--r--spec/spec_helper.rb16
-rw-r--r--spec/support/band_factory.rb16
-rw-r--r--spec/support/contact_factory.rb16
-rw-r--r--spec/support/submit_form_helper.rb16
-rw-r--r--test_pdf.rb16
-rw-r--r--views/index.erb17
-rw-r--r--views/layout.erb17
-rw-r--r--views/member.erb17
-rw-r--r--views/registration_closed.erb17
-rw-r--r--views/registration_email.erb17
-rw-r--r--views/song.erb17
-rw-r--r--views/submitted.erb17
34 files changed, 551 insertions, 0 deletions
diff --git a/Capfile b/Capfile
index f694590..4a04f22 100644
--- a/Capfile
+++ b/Capfile
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
# Load DSL and set up stages
require 'capistrano/setup'
diff --git a/Gemfile b/Gemfile
index e1f873c..470f383 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
source "https://rubygems.org"
gem "sinatra"
diff --git a/config.ru b/config.ru
index a772481..2e2b0fa 100644
--- a/config.ru
+++ b/config.ru
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 './registration.rb'
base_path = ENV['NUREG_BASE'] || '/'
diff --git a/config/deploy.rb b/config/deploy.rb
index 8240df3..702960b 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
# config valid only for current version of Capistrano
lock '3.11.0'
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
index d9620a1..9e5b250 100644
--- a/config/deploy/production.rb
+++ b/config/deploy/production.rb
@@ -1 +1,17 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
server 'volse.anduin.net', user: 'norskurskog', roles: %w{app db web}
diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb
index 20732be..c8f4101 100644
--- a/config/deploy/staging.rb
+++ b/config/deploy/staging.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
server 'volse.local', user: 'norskurskog', roles: %w{app db web}
# Ask for which branch to deploy, default is current branch.
diff --git a/config/puma.rb b/config/puma.rb
index 04856d0..efe7b9b 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -1,5 +1,21 @@
#!/usr/bin/env puma
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
if @config.environment_str == "production"
root = File.expand_path('../', File.dirname(__FILE__))
socket = "unix://#{root}/tmp/sockets/puma.sock"
diff --git a/lib/band.rb b/lib/band.rb
index dc69642..4e1ca81 100644
--- a/lib/band.rb
+++ b/lib/band.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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_relative 'contact'
require_relative 'member'
require_relative 'song'
diff --git a/lib/contact.rb b/lib/contact.rb
index 4df29e8..5cf42e6 100644
--- a/lib/contact.rb
+++ b/lib/contact.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 Contact
attr_reader :name, :street, :postcode, :city, :phone, :email
diff --git a/lib/member.rb b/lib/member.rb
index 598b5f4..695ea75 100644
--- a/lib/member.rb
+++ b/lib/member.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 Member
attr_reader :name, :instrument, :age
diff --git a/lib/pdf_form.rb b/lib/pdf_form.rb
index b8b156c..6add3ef 100644
--- a/lib/pdf_form.rb
+++ b/lib/pdf_form.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 'prawn'
require 'prawn/measurement_extensions'
diff --git a/lib/registration.rb b/lib/registration.rb
index 7d1e704..9d5e57e 100644
--- a/lib/registration.rb
+++ b/lib/registration.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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_relative 'band'
require_relative 'pdf_form'
require 'date'
diff --git a/lib/song.rb b/lib/song.rb
index 482834e..a3968f4 100644
--- a/lib/song.rb
+++ b/lib/song.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 Song
attr_reader :title, :time, :isrc, :composers, :performers, :notes
diff --git a/public/mobile-styles.css b/public/mobile-styles.css
index 11cb3da..f22ae71 100644
--- a/public/mobile-styles.css
+++ b/public/mobile-styles.css
@@ -1,3 +1,19 @@
+/* Band registration form for Norsk Urskog Metal Sampler
+ * Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+ */
body {
color: #afafaf;
background-color: #131a1a;
diff --git a/public/regform.js b/public/regform.js
index 332557d..ac3934b 100644
--- a/public/regform.js
+++ b/public/regform.js
@@ -1,3 +1,19 @@
+/* Band registration form for Norsk Urskog Metal Sampler
+ * Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+ */
document.addEventListener("DOMContentLoaded", function() {
for (let details of document.getElementsByClassName('song-details')) {
details.classList.add('collapsed');
diff --git a/public/styles.css b/public/styles.css
index 3c41e64..6ebcef5 100644
--- a/public/styles.css
+++ b/public/styles.css
@@ -1,3 +1,19 @@
+/* Band registration form for Norsk Urskog Metal Sampler
+ * Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+ */
body {
color: #afafaf;
background-color: #131a1a;
diff --git a/registration.rb b/registration.rb
index 1a9efe1..ea7fdf3 100644
--- a/registration.rb
+++ b/registration.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 'mustermann'
require 'sinatra/base'
require 'sinatra/url_for'
diff --git a/spec/contact_spec.rb b/spec/contact_spec.rb
index 980626b..48844fc 100644
--- a/spec/contact_spec.rb
+++ b/spec/contact_spec.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 'spec_helper'
describe Contact do
diff --git a/spec/email_spec.rb b/spec/email_spec.rb
index e68d77f..7860307 100644
--- a/spec/email_spec.rb
+++ b/spec/email_spec.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 'spec_helper'
require 'net/smtp'
diff --git a/spec/features/register_band_spec.rb b/spec/features/register_band_spec.rb
index 5d812bc..fa5b675 100644
--- a/spec/features/register_band_spec.rb
+++ b/spec/features/register_band_spec.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 'spec_helper'
feature "Submit registration form" do
diff --git a/spec/pdf_form_spec.rb b/spec/pdf_form_spec.rb
index 334678a..69a1159 100644
--- a/spec/pdf_form_spec.rb
+++ b/spec/pdf_form_spec.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 "spec_helper"
describe "create_pdf_file_name" do
diff --git a/spec/registration_spec.rb b/spec/registration_spec.rb
index 3ccfbe7..7208d5a 100644
--- a/spec/registration_spec.rb
+++ b/spec/registration_spec.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 "prawn"
require 'rack/session/cookie'
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index aaf466a..c7ff485 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+
ENV['RACK_ENV'] = 'test'
require_relative '../registration'
diff --git a/spec/support/band_factory.rb b/spec/support/band_factory.rb
index b092653..9b1a693 100644
--- a/spec/support/band_factory.rb
+++ b/spec/support/band_factory.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 BandFactory
def create_band_params(options = {})
opts = {
diff --git a/spec/support/contact_factory.rb b/spec/support/contact_factory.rb
index f05e9a1..e04d84f 100644
--- a/spec/support/contact_factory.rb
+++ b/spec/support/contact_factory.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 ContactFactory
def create_contact_params(params = {})
par = {
diff --git a/spec/support/submit_form_helper.rb b/spec/support/submit_form_helper.rb
index b9a64aa..e06a480 100644
--- a/spec/support/submit_form_helper.rb
+++ b/spec/support/submit_form_helper.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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 SubmitFormHelper
def fill_in_form_with(params)
fill_in 'Bandnavn:', with: params['name']
diff --git a/test_pdf.rb b/test_pdf.rb
index 8328ee6..580b8b2 100644
--- a/test_pdf.rb
+++ b/test_pdf.rb
@@ -1,3 +1,19 @@
+# Band registration form for Norsk Urskog Metal Sampler
+# Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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_relative 'lib/registration'
require 'prawn'
diff --git a/views/index.erb b/views/index.erb
index 7d069a1..949bbb4 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<h1>Norsk Urskog Underground Metal Sampler</h1>
<%=asciidoc :_form_heading, attributes: { "contact_email" => settings.contact_email } %>
diff --git a/views/layout.erb b/views/layout.erb
index 84d3437..f1e84c0 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<!DOCTYPE html>
<html>
<head>
diff --git a/views/member.erb b/views/member.erb
index dcdfb85..93332aa 100644
--- a/views/member.erb
+++ b/views/member.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<div class="member-info" id="member-<%= member_number %>">
<label><%= member_number %>:</label>
<span class="field text required">
diff --git a/views/registration_closed.erb b/views/registration_closed.erb
index 2005d2b..fc27b04 100644
--- a/views/registration_closed.erb
+++ b/views/registration_closed.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<section lang="nb_NO">
<h1>Registreringen er stengt</h1>
<p>Registrering til Norsk Urskog 2016 er nå stengt. Vi takker alle som har meldt seg på, og håper vi see på konsertene eller i løpet av Inferno! Dersom du har lyst å bli med på neste utgave av Norsk Urskog Metal Sampler, så følg med når vi åpner registrering for neste utgave igjen.</p>
diff --git a/views/registration_email.erb b/views/registration_email.erb
index cfb965a..12e90e0 100644
--- a/views/registration_email.erb
+++ b/views/registration_email.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
Påmelding til Norsk Urskog 2019 for <%= @band.name %>
Takk for din påmelding til Norsk Urskog Metal Sampler 2019. Vennligst sjekk
diff --git a/views/song.erb b/views/song.erb
index f2495d3..94fc9a8 100644
--- a/views/song.erb
+++ b/views/song.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<div class="song-info" id="song-<%= song_number %>-info">
<label>
Låt nr. <%= song_number %>
diff --git a/views/submitted.erb b/views/submitted.erb
index cbe70f2..26b7757 100644
--- a/views/submitted.erb
+++ b/views/submitted.erb
@@ -1,3 +1,20 @@
+<%#
+ # Band registration form for Norsk Urskog Metal Sampler
+ # Copyright (C) 2015-2018 Harald Eilersen <haraldei@anduin.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/>.
+%>
<h1>Takk for at du vil være med på Norsk Urskog 2019!</h1>
<p>Vi har mottatt din registrering, og vil ta kontakt med deg så snart vi kan for å