diff --git a/Gemfile b/Gemfile index 02254df..78495ee 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,9 @@ -source 'http://rubygems.org' +source 'https://rubygems.org' + +ruby '2.7.2' gem 'pdfkit' gem 'rake' gem 'redcarpet', '~> 2.0' gem 'sinatra' +gem 'wkhtmltopdf-binary', :require => false diff --git a/Gemfile.lock b/Gemfile.lock index 2e7f742..8fbb811 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,5 +1,5 @@ GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: pdfkit (0.5.2) rack (1.4.1) @@ -12,6 +12,7 @@ GEM rack-protection (~> 1.2) tilt (~> 1.3, >= 1.3.3) tilt (1.3.3) + wkhtmltopdf-binary (0.9.9.1) PLATFORMS ruby @@ -21,3 +22,10 @@ DEPENDENCIES rake redcarpet (~> 2.0) sinatra + wkhtmltopdf-binary + +RUBY VERSION + ruby 2.7.2p137 + +BUNDLED WITH + 2.2.9 diff --git a/README.md b/README.md index e98ff03..bcdf126 100755 --- a/README.md +++ b/README.md @@ -45,7 +45,31 @@ Join us on IRC (#sinatra at irc.freenode.org) if you need help with anything. [sinatra-book]: http://github.com/sinatra/sinatra-book [sinatra-recipes]: http://recipes.sinatrarb.com/ [issues]: http://github.com/sinatra/sinatra-book/issues -[styling-guidelines]: http://github.com/sinatra/sinatra-book-contrib/wiki/Style-Guidelines +[styling-guidelines]: https://github.com/sinatra/sinatra-book/wiki/How-to-contribute [forking]: http://help.github.com/forking/ [pull-requests]: http://help.github.com/pull-requests/ +License +----------------- + +The MIT License (MIT) + +Copyright (c) 2015 Sinatra + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/app.rb b/app.rb index 58f7dc5..a12c275 100644 --- a/app.rb +++ b/app.rb @@ -10,8 +10,8 @@ get('/book.css') { send_file "#{ASSETS_DIR}/book.css", :type => 'text/css' } get('/print.css') { send_file "#{ASSETS_DIR}/print.css", :type => 'text/css' } -get('/download.png') { send_file "#{ASSETS_DIR}/images/download.png", :type => :png } - +get('/images/download.png') { send_file "#{ASSETS_DIR}/images/download.png", :type => :png } +get('/images/book-logo.png') { send_file "#{ASSETS_DIR}/images/book-logo.png", :type => :png } __END__ @@layout @@ -22,14 +22,19 @@
+ +
+