diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..fd2a018 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.0 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4fda9e0 --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'sinatra' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..bcc5df5 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,24 @@ +GEM + remote: https://rubygems.org/ + specs: + mustermann (1.1.1) + ruby2_keywords (~> 0.0.1) + rack (2.2.3) + rack-protection (2.1.0) + rack + ruby2_keywords (0.0.5) + sinatra (2.1.0) + mustermann (~> 1.0) + rack (~> 2.2) + rack-protection (= 2.1.0) + tilt (~> 2.0) + tilt (2.0.10) + +PLATFORMS + arm64-darwin-21 + +DEPENDENCIES + sinatra + +BUNDLED WITH + 2.3.3 diff --git a/LICENSE b/LICENSE index 0c97efd..c08a3ac 100644 --- a/LICENSE +++ b/LICENSE @@ -219,8 +219,8 @@ If you develop a new program, and you want it to be of the greatest possible use To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - Copyright (C) + Source code for http://mywillpower.org + Copyright (C) 2022 Daniel Bowling 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. diff --git a/README.md b/README.md index b36c20c..2cb7021 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # mywillpower.org -Source code for http://mywillpower.org \ No newline at end of file +Source code for http://mywillpower.org + +## Install dependencies + + bundle install diff --git a/mywillpower.rb b/mywillpower.rb new file mode 100755 index 0000000..683079c --- /dev/null +++ b/mywillpower.rb @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby + +require 'sinatra' + +get '/' do + erb(:index) +end diff --git a/views/index.erb b/views/index.erb new file mode 100644 index 0000000..ccbaccb --- /dev/null +++ b/views/index.erb @@ -0,0 +1,2 @@ +

Ayy...

+

lmao

diff --git a/views/layout.erb b/views/layout.erb new file mode 100644 index 0000000..04abbcc --- /dev/null +++ b/views/layout.erb @@ -0,0 +1,18 @@ + + + + + + + + + + + + My Willpower + + + + <%= yield %> + +