Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds generated locally and on CI are different #239

Closed
ashfurrow opened this issue Aug 9, 2016 · 1 comment · Fixed by #244
Closed

Builds generated locally and on CI are different #239

ashfurrow opened this issue Aug 9, 2016 · 1 comment · Fixed by #244
Labels

Comments

@ashfurrow
Copy link
Owner

Something around newlines and haml:

diff --git a/blog/your-first-ios-app/index.html b/blog/your-first-ios-app/index.html
index fa60612..fccf836 100644
--- a/blog/your-first-ios-app/index.html
+++ b/blog/your-first-ios-app/index.html
@@ -5,31 +5,38 @@
 <meta charset="utf-8">
 <meta content="IE=edge" http-equiv="X-UA-Compatible">
 <title>Your First iOS App - Ash Furrow</title>
-<!-- Feed Tags --><link rel="alternate" type="application/atom+xml" title="Atom Feed" href="//feed.ashfurrow.com/feed.xml">
+<!-- Feed Tags -->
+<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="//feed.ashfurrow.com/feed.xml">
 <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="//feed.ashfurrow.com/feed.rss.xml">
-<!-- Device specifier --><meta content="width=device-width, initial-scale=1" name="viewport">
-<!-- Meta stuff --><link href="https://ashfurrow.com/blog/your-first-ios-app/" rel="canonical">
+<!-- Device specifier -->
+<meta content="width=device-width, initial-scale=1" name="viewport">
+<!-- Meta stuff -->
+<link href="https://ashfurrow.com/blog/your-first-ios-app/" rel="canonical">
 <meta content="Ash Furrow" itemprop="name">
 <meta content="https://ashfurrow.com/blog/your-first-ios-app/" itemprop="url">
 <meta content="I finished writing my book. The first chapter is available online, for free. If you like it, you should go buy it. Better yet, buy it, and then tell all your friends about it." itemprop="about">
 <meta content="I finished writing my book. The first chapter is available online, for free. If you like it, you should go buy it. Better yet, buy it, and then tell all your friends about it." itemprop="description">
 <meta content="/img/siteimage_dark.png" itemprop="thumbnailUrl">
-<!-- Open Graph --><meta content="Ash Furrow" property="og:site_name">
+<!-- Open Graph -->
+<meta content="Ash Furrow" property="og:site_name">
 <meta content="Your First iOS App" property="og:title">
 <meta content="https://ashfurrow.com/blog/your-first-ios-app/" property="og:url">
 <meta content="website" property="og:type">
 <meta content="I finished writing my book. The first chapter is available online, for free. If you like it, you should go buy it. Better yet, buy it, and then tell all your friends about it." property="og:description">
 <meta content="https://ashfurrow.com/img/siteimage_dark.png" property="og:image">
-<!-- Twitter Cards --><meta content="summary" name="twitter:card">
+<!-- Twitter Cards -->
+<meta content="summary" name="twitter:card">
 <meta content="@ashfurrow" name="twitter:site">
 <meta content="@ashfurrow" name="twitter:creator">
 <meta content="Your First iOS App" name="twitter:title">
 <meta content="I finished writing my book. The first chapter is available online, for free. If you like it, you should go buy it. Better yet, buy it, and then tell all your friends about it." name="twitter:description">
 <meta content="https://ashfurrow.com/img/siteimage_dark.png" name="twitter:image">
-<!-- Favicon, site icons, etc --><link href="/img/siteimage_dark.png" rel="image_src">
+<!-- Favicon, site icons, etc -->
+<link href="/img/siteimage_dark.png" rel="image_src">
 <meta content="/img/siteimage_dark.png" itemprop="image">
 <link href="../../favicon.ico" rel="shortcut icon" type="image/x-icon">
-<!-- Favicons, generated from https://realfavicongenerator.net/ --><link href="/apple-touch-icon-57x57.png" rel="apple-touch-icon" sizes="57x57">
+<!-- Favicons, generated from https://realfavicongenerator.net/ -->
+<link href="/apple-touch-icon-57x57.png" rel="apple-touch-icon" sizes="57x57">
 <link href="/apple-touch-icon-60x60.png" rel="apple-touch-icon" sizes="60x60">
 <link href="/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
 <link href="/apple-touch-icon-76x76.png" rel="apple-touch-icon" sizes="76x76">
@@ -47,7 +54,9 @@
 <meta content="#da532c" name="msapplication-TileColor">
 <meta content="/mstile-144x144.png" name="msapplication-TileImage">
 <meta content="#398ccc" name="theme-color">
-<!-- Search enginer index --><!-- Rich Snippets --><script type="application/ld+json">
+<!-- Search enginer index -->
+<!-- Rich Snippets -->
+<script type="application/ld+json">
 {
 '@context' : 'http://schema.org',
 '@type' : 'Person',
@@ -56,14 +65,17 @@
 'image' : 'http://static.ashfurrow.com/ashfurrow_square.jpg',
 'sameAs' : [ 'http://twitter.com/ashfurrow', 'http://instagram.com/ashfurrow', 'http://github.com/ashfurrow' ]
 }
-</script><script type="application/ld+json">
+</script>
+<script type="application/ld+json">
 {
 '@context': 'http://schema.org',
 '@type': 'Organization',
 'url': 'https://ashfurrow.com',
 'logo': '/img/siteimage.png'
 }
-</script><!-- Style-specific Javascripts --><style type="text/css">html {
+</script>
+<!-- Style-specific Javascripts -->
+<style type="text/css">html {
   font-family: sans-serif;
   -webkit-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
@@ -788,15 +800,19 @@ header {
 .fa-rss-square:before {
   content: "\f143";
 }</style>
-<script type="text/javascript">!function(e,t,n,a,c,s,i,r,o){i=a[c],i&&(r=e.createElement("style"),r.innerHTML=i,e.getElementsByTagName("head")[0].appendChild(r),e.documentElement.className+=" wf-cached"),o=t[n],t[n]=function(e,l,m,d){if("string"==typeof l&&l.indexOf(s)>-1){try{m=new XMLHttpRequest,m.open("GET",l,!0),m.onreadystatechange=function(){try{4==m.readyState&&(d=m.responseText.replace(/url\(\//g,"url("+s+"/"),d!==i&&(a[c]=d))}catch(e){r&&(r.innerHTML="")}},m.send(null)}catch(p){}t[n]=o}return o.apply(this,arguments)}}(document,Element.prototype,"setAttribute",localStorage,"tk","https://use.typekit.net"),function(e){var t,n={kitId:"fmr6vlo",scriptTimeout:3e3,async:!0},a=e.documentElement,c=setTimeout(function(){a.className=a.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"},n.scriptTimeout),s=e.createElement("script"),i=!1,r=e.getElementsByTagName("script")[0];a.className+=" wf-loading",s.src="https://use.typekit.net/"+n.kitId+".js",s.async=!0,s.onload=s.onreadystatechange=function(){if(t=this.readyState,!(i||t&&"complete"!=t&&"loaded"!=t)){i=!0,clearTimeout(c);try{Typekit.load(n)}catch(e){}}},r.parentNode.insertBefore(s,r)}(document);</script><script type="text/javascript">/*!
+<script type="text/javascript">!function(e,t,n,a,c,s,i,r,o){i=a[c],i&&(r=e.createElement("style"),r.innerHTML=i,e.getElementsByTagName("head")[0].appendChild(r),e.documentElement.className+=" wf-cached"),o=t[n],t[n]=function(e,l,m,d){if("string"==typeof l&&l.indexOf(s)>-1){try{m=new XMLHttpRequest,m.open("GET",l,!0),m.onreadystatechange=function(){try{4==m.readyState&&(d=m.responseText.replace(/url\(\//g,"url("+s+"/"),d!==i&&(a[c]=d))}catch(e){r&&(r.innerHTML="")}},m.send(null)}catch(p){}t[n]=o}return o.apply(this,arguments)}}(document,Element.prototype,"setAttribute",localStorage,"tk","https://use.typekit.net"),function(e){var t,n={kitId:"fmr6vlo",scriptTimeout:3e3,async:!0},a=e.documentElement,c=setTimeout(function(){a.className=a.className.replace(/\bwf-loading\b/g,"")+" wf-inactive"},n.scriptTimeout),s=e.createElement("script"),i=!1,r=e.getElementsByTagName("script")[0];a.className+=" wf-loading",s.src="https://use.typekit.net/"+n.kitId+".js",s.async=!0,s.onload=s.onreadystatechange=function(){if(t=this.readyState,!(i||t&&"complete"!=t&&"loaded"!=t)){i=!0,clearTimeout(c);try{Typekit.load(n)}catch(e){}}},r.parentNode.insertBefore(s,r)}(document);</script>
+<script type="text/javascript">/*!
 loadCSS: load a CSS file asynchronously.
 [c]2015 @scottjehl, Filament Group, Inc.
 Licensed MIT
 */
-!function(e){"use strict";e.loadCSS=function(t,n,l){var o,r=e.document.createElement("link");if(n)o=n;else if(e.document.querySelectorAll){var s=e.document.querySelectorAll("style,link[rel=stylesheet],script");o=s[s.length-1]}else o=e.document.getElementsByTagName("script")[0];var i=e.document.styleSheets;return r.rel="stylesheet",r.href=t,r.media="only x",o.parentNode.insertBefore(r,n?o:o.nextSibling),r.onloadcssdefined=function(e){for(var t,n=0;n<i.length;n++)i[n].href&&i[n].href===r.href&&(t=!0);t?e():setTimeout(function(){r.onloadcssdefined(e)})},r.onloadcssdefined(function(){r.media=l||"all"}),r}}(this);</script><script>
+!function(e){"use strict";e.loadCSS=function(t,n,l){var o,r=e.document.createElement("link");if(n)o=n;else if(e.document.querySelectorAll){var s=e.document.querySelectorAll("style,link[rel=stylesheet],script");o=s[s.length-1]}else o=e.document.getElementsByTagName("script")[0];var i=e.document.styleSheets;return r.rel="stylesheet",r.href=t,r.media="only x",o.parentNode.insertBefore(r,n?o:o.nextSibling),r.onloadcssdefined=function(e){for(var t,n=0;n<i.length;n++)i[n].href&&i[n].href===r.href&&(t=!0);t?e():setTimeout(function(){r.onloadcssdefined(e)})},r.onloadcssdefined(function(){r.media=l||"all"}),r}}(this);</script>
+<script>
   loadCSS( '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css' );
   loadCSS( '../../css/all.css' );
-</script><!-- Google Analytics --><script>
+</script>
+<!-- Google Analytics -->
+<script>
   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -804,17 +820,17 @@ Licensed MIT

   ga('create', 'UA-9572240-3', 'auto');
   ga('send', 'pageview');
-</script><!-- Backup to load styles not from javascript. -->
-</head>
-<body>
+</script>
+<!-- Backup to load styles not from javascript. -->
 <noscript>
 <link href="/css/all.css" rel="stylesheet">
 </noscript>

-
-
+</head>
+<body>
 <!-- Navigation -->
-<nav class="navbar navbar-default navbar-custom navbar-fixed-top"><div class="container-fluid">
+<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
+<div class="container-fluid">
 <!-- Brand and toggle get grouped for better mobile display -->
 <div class="navbar-header page-scroll">
 <button class="navbar-toggle" data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button">
@@ -847,7 +863,12 @@ Licensed MIT
 </ul>
 </div>
 </div>
-</nav><!-- Main Content --><!-- Page Header --><header class="intro-header" style="background-image: url('/img/backgrounds/default.jpg');"><div class="header-dimmer"></div>
+</nav>
+
+<!-- Main Content -->
+<!-- Page Header -->
+<header class="intro-header" style="background-image: url('/img/backgrounds/default.jpg');">
+<div class="header-dimmer"></div>
 <div class="container">
 <div class="row">
 <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
@@ -858,8 +879,11 @@ Licensed MIT
 </div>
 </div>
 <!-- If a background image source was specified, link to it. -->
-</header><div class="container">
-<article><div class="row">
+</header>
+
+<div class="container">
+<article>
+<div class="row">
 <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 <p>I finished writing my book. The <a href="http://yourfirstiosapp.com">first chapter is available online, for free</a>.</p>

@@ -873,10 +897,12 @@ Licensed MIT
 <span class="meta">Posted on June  5, 2013</span>
 </div>
 </div>
-</article><div class="row">
+</article>
+<div class="row">
 <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 <hr>
-<!-- Pager --><ul class="pager article_pager">
+<!-- Pager -->
+<ul class="pager article_pager">
 <li class="next">
 <a href="/blog/stop-writing-for-loops/"><div>Stop Writing For Loops</div>
 </a>
@@ -886,13 +912,15 @@ Licensed MIT
 </a>
 </li>
 </ul>
+
 </div>
 </div>
 </div>

 <!-- Footer -->
 <hr id="page_footer">
-<footer><div class="container">
+<footer>
+<div class="container">
 <div class="row">
 <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 <ul class="list-inline text-center">
@@ -931,6 +959,11 @@ This site is <a href="http://github.com/ashfurrow/blog">open source</a>. <a href
 </div>
 </div>
 </div>
-</footer><script src="//code.jquery.com/jquery-2.1.4.min.js"></script><script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script><script src="/javascripts/all.js"></script>
+</footer>
+
+
+<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
+<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
+<script src="/javascripts/all.js"></script>
 </body>
 </html>

Not a huge deal, it's been like this since forever, but it'd be nice to be consistent and not have to send large diffs when deploying locally.

@ashfurrow ashfurrow added the chore label Aug 9, 2016
@ashfurrow
Copy link
Owner Author

Looks like this is a bug in Haml: haml/haml#748 Continuing to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant