Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Qt related SSL connection errors

* Presumably, this happens when compiling the book, the wkhtmltopdf
 library tries to download assets that are linked to GitHub's servers.
 By removing that dependency and using local assets, this can be
 mitigated.
  • Loading branch information...
commit 61f1464631c032878d510a466b0283eae164f0e0 1 parent 6e1dfef
@kgrz kgrz authored
View
2  Gemfile
@@ -1,4 +1,4 @@
-source 'http://rubygems.org'
+source 'https://rubygems.org'
gem 'pdfkit'
gem 'rake'
View
2  Gemfile.lock
@@ -1,5 +1,5 @@
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
pdfkit (0.5.2)
rack (1.4.1)
View
4 app.rb
@@ -22,12 +22,12 @@
<title>Sinatra Book</title>
<link rel="stylesheet" type="text/css" href="/book.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="/print.css" media="print" />
- <link rel="shortcut icon" href="https://github.com/sinatra/resources/raw/master/logo/favicon.ico">
+ <link rel="shortcut icon" href="/images/favicon.ico">
</head>
<body>
<div id="download">
<a href="/download">
- <img src="/download.png" alt="Download the Sinatra Book" />
+ <img src="/images/download.png" alt="Download the Sinatra Book" />
</a>
</div>
<%= yield %>
View
BIN  assets/images/book-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/images/favicon.ico
Binary file not shown
View
2  book.rb
@@ -26,7 +26,7 @@ def header
<<-header
<div id="header">
<p>
- <img src="https://raw.github.com/sinatra/resources/master/logo/book-logo.png" />
+ <img src="#{ASSETS_DIR}/images/book-logo.png" />
</p>
</div>
header
Please sign in to comment.
Something went wrong with that request. Please try again.