Skip to content
This repository
Browse code

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
Kashyap authored
2  Gemfile
... ...
@@ -1,4 +1,4 @@
1  
-source 'http://rubygems.org'
  1
+source 'https://rubygems.org'
2 2
 
3 3
 gem 'pdfkit'
4 4
 gem 'rake'
2  Gemfile.lock
... ...
@@ -1,5 +1,5 @@
1 1
 GEM
2  
-  remote: http://rubygems.org/
  2
+  remote: https://rubygems.org/
3 3
   specs:
4 4
     pdfkit (0.5.2)
5 5
     rack (1.4.1)
4  app.rb
@@ -22,12 +22,12 @@
22 22
     <title>Sinatra Book</title>
23 23
     <link rel="stylesheet" type="text/css" href="/book.css" media="screen, projection" />
24 24
     <link rel="stylesheet" type="text/css" href="/print.css" media="print" />
25  
-    <link rel="shortcut icon" href="https://github.com/sinatra/resources/raw/master/logo/favicon.ico">
  25
+    <link rel="shortcut icon" href="/images/favicon.ico">
26 26
   </head>
27 27
   <body>
28 28
     <div id="download">
29 29
       <a href="/download">
30  
-        <img src="/download.png" alt="Download the Sinatra Book" />
  30
+        <img src="/images/download.png" alt="Download the Sinatra Book" />
31 31
       </a>
32 32
     </div>
33 33
     <%= yield %>
BIN  assets/images/book-logo.png
BIN  assets/images/favicon.ico
Binary file not shown
2  book.rb
@@ -26,7 +26,7 @@ def header
26 26
     <<-header
27 27
       <div id="header">
28 28
         <p>
29  
-          <img src="https://raw.github.com/sinatra/resources/master/logo/book-logo.png" />
  29
+          <img src="#{ASSETS_DIR}/images/book-logo.png" />
30 30
         </p>
31 31
       </div>
32 32
     header

0 notes on commit 61f1464

Please sign in to comment.
Something went wrong with that request. Please try again.