diff --git a/Gemfile b/Gemfile index e076bda..4da5b31 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ source 'https://rubygems.org' - -gem 'rubocop' +ruby '2.1.1' +gem 'sinatra' diff --git a/Gemfile.lock b/Gemfile.lock index 0b86102..cf00d73 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,25 +1,18 @@ GEM remote: https://rubygems.org/ specs: - ast (2.0.0) - astrolabe (1.3.0) - parser (>= 2.2.0.pre.3, < 3.0) - parser (2.2.0.pre.4) - ast (>= 1.1, < 3.0) - slop (~> 3.4, >= 3.4.5) - powerpack (0.0.9) - rainbow (2.0.0) - rubocop (0.26.1) - astrolabe (~> 1.3) - parser (>= 2.2.0.pre.4, < 3.0) - powerpack (~> 0.0.6) - rainbow (>= 1.99.1, < 3.0) - ruby-progressbar (~> 1.4) - ruby-progressbar (1.6.0) - slop (3.6.0) + mini_portile (0.6.0) + rack (1.5.2) + rack-protection (1.5.3) + rack + sinatra (1.4.5) + rack (~> 1.4) + rack-protection (~> 1.4) + tilt (~> 1.3, >= 1.3.4) + tilt (1.4.1) PLATFORMS ruby DEPENDENCIES - rubocop + sinatra diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..77aaee8 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: bundle exec ruby isthe2018worldcuphappening.rb -p $PORT \ No newline at end of file diff --git a/README.md b/README.md index abb0c80..12743d9 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,6 @@ -# Single-Purpose Site +# Single-Purpose Site -Create a single-purpose website using [Sinatra](http://www.sinatrarb.com/) that tells the user one thing, a la [isitchristmas.com](https://isitchristmas.com/). Surprise and delight us – creativity is encouraged. Example inputs: +This app lets you know if it is time for the 2018 World Cup yet. -* The current date -* The time -* The weather -* Whether Kanye West's most recent tweets mention Kanye West -* *etc* +[](http://www.fifa.com/worldcup/russia2018/) -**Deploy the application to Heroku**, and **submit a pull request** to this repository. Include: - -* All the necessary files -* In the README: - * Setup instructions - * A link to the live app on Heroku diff --git a/cup.jpeg b/cup.jpeg new file mode 100644 index 0000000..3d56aeb Binary files /dev/null and b/cup.jpeg differ diff --git a/isthe2018worldcuphappening.rb b/isthe2018worldcuphappening.rb new file mode 100644 index 0000000..71f5f2b --- /dev/null +++ b/isthe2018worldcuphappening.rb @@ -0,0 +1,12 @@ +require 'rubygems' +require 'sinatra' + +get '/' do + + if Date.parse('2018-6-8') > Date.today + #if Date.parse('2014-10-14') > Date.today + erb :nyet + else + erb :da + end +end diff --git a/views/da.erb b/views/da.erb new file mode 100644 index 0000000..970b12f --- /dev/null +++ b/views/da.erb @@ -0,0 +1,7 @@ +



+ +

Is it now time for the 2018 World Cup in Russia?

+
+ +

DA

+ diff --git a/views/nyet.erb b/views/nyet.erb new file mode 100644 index 0000000..4aca267 --- /dev/null +++ b/views/nyet.erb @@ -0,0 +1,7 @@ +



+ +

Is it now time for the 2018 World Cup in Russia?

+
+ +

NYET

+