Skip to content

Commit 3e28b19

Browse files
committed
Clean up URLs to remove Archive.org references
~~~ bash ARCHIVE_ORG_REGEX='https://web\.archive\.org/web/[^/]*/' find . -type f -name "*.html" -exec perl -i -0pe "s|${ARCHIVE_ORG_REGEX}||g" {} \; ~~~
1 parent 25692be commit 3e28b19

File tree

123 files changed

+7870
-7870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+7870
-7870
lines changed

public/2010/01.html

+39-39
Large diffs are not rendered by default.

public/2010/01/01/introduction.html

+70-70
Large diffs are not rendered by default.

public/2011/08.html

+38-38
Large diffs are not rendered by default.

public/2011/08/26/bulk-rename-in-bash.html

+74-74
Large diffs are not rendered by default.

public/2012/01.html

+41-41
Large diffs are not rendered by default.

public/2012/01/10/write-comments-for-yourself-2.html

+75-75
Large diffs are not rendered by default.

public/2012/01/11/grenade-debugging-pattern.html

+74-74
Large diffs are not rendered by default.

public/2013/02.html

+38-38
Large diffs are not rendered by default.

public/2013/02/22/my-thoughts-on-python-vs-ruby.html

+77-77
Large diffs are not rendered by default.

public/2014/01.html

+48-48
Large diffs are not rendered by default.

public/2014/01/04/open-source-resolutions.html

+78-78
Large diffs are not rendered by default.

public/2014/01/19/introspective.html

+81-81
Large diffs are not rendered by default.

public/2014/01/26/testing-rails-validators.html

+77-77
Large diffs are not rendered by default.

public/2014/02.html

+70-70
Large diffs are not rendered by default.

public/2014/02/02/blogging-software.html

+84-84
Large diffs are not rendered by default.

public/2014/02/07/empathy.html

+78-78
Large diffs are not rendered by default.

public/2014/02/10/includable-activerecord.html

+79-79
Large diffs are not rendered by default.

public/2014/02/23/chording-keyers.html

+104-104
Large diffs are not rendered by default.

public/2014/03.html

+62-62
Large diffs are not rendered by default.

public/2014/03/03/yak-shaving-cursor-keys.html

+81-81
Large diffs are not rendered by default.

public/2014/03/11/readable-shell-scripts.html

+77-77
Large diffs are not rendered by default.

public/2014/03/16/slow-down.html

+77-77
Large diffs are not rendered by default.

public/2014/03/23/agile-estimation.html

+87-87
Large diffs are not rendered by default.

public/2014/03/30/brilliant-my-own-programming-language.html

+84-84
Large diffs are not rendered by default.

public/2014/04.html

+40-40
Large diffs are not rendered by default.

public/2014/04/14/ruby-parameterized-module-inclusion.html

+84-84
Large diffs are not rendered by default.

public/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1.html

+25-25
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@
1717
<meta name="viewport" content="width=device-width"/>
1818
<title>Ruby Pattern: Parameterized Module Inclusion | BoochTek, LLC</title>
1919
<link rel="profile" href="http://gmpg.org/xfn/11"/>
20-
<link rel="stylesheet" type="text/css" media="all" href="https://web.archive.org/web/20150824185026cs_/http://blog.boochtek.com/wp-content/themes/twentyeleven/style.css"/>
20+
<link rel="stylesheet" type="text/css" media="all" href="http://blog.boochtek.com/wp-content/themes/twentyeleven/style.css"/>
2121
<link rel="pingback" href="http://blog.boochtek.com/xmlrpc.php"/>
2222
<!--[if lt IE 9]>
2323
<script src="http://blog.boochtek.com/wp-content/themes/twentyeleven/js/html5.js" type="text/javascript"></script>
2424
<![endif]-->
25-
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/feed"/>
26-
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Comments Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/comments/feed"/>
27-
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Ruby Pattern: Parameterized Module Inclusion Comments Feed" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/feed"/>
28-
<script type="text/javascript" src="https://web.archive.org/web/20150824185026js_/http://blog.boochtek.com/wp-includes/js/comment-reply.min.js?ver=3.8.1"></script>
25+
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Feed" href="http://blog.boochtek.com/feed"/>
26+
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Comments Feed" href="http://blog.boochtek.com/comments/feed"/>
27+
<link rel="alternate" type="application/rss+xml" title="BoochTek, LLC » Ruby Pattern: Parameterized Module Inclusion Comments Feed" href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/feed"/>
28+
<script type="text/javascript" src="http://blog.boochtek.com/wp-includes/js/comment-reply.min.js?ver=3.8.1"></script>
2929
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://blog.boochtek.com/xmlrpc.php?rsd"/>
3030
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://blog.boochtek.com/wp-includes/wlwmanifest.xml"/>
31-
<link rel="prev" title="Brilliant – My Very Own Programming Language" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language"/>
32-
<link rel="next" title="TDD Is Alive And Well" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well"/>
31+
<link rel="prev" title="Brilliant – My Very Own Programming Language" href="http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language"/>
32+
<link rel="next" title="TDD Is Alive And Well" href="http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well"/>
3333
<meta name="generator" content="WordPress 3.8.1"/>
34-
<link rel="canonical" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comments"/>
35-
<link rel="shortlink" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/?p=184"/>
34+
<link rel="canonical" href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comments"/>
35+
<link rel="shortlink" href="http://blog.boochtek.com/?p=184"/>
3636
</head>
3737

3838
<body class="single single-post postid-184 single-format-standard single-author singular two-column right-sidebar">
3939
<div id="page" class="hfeed">
4040
<header id="branding" role="banner">
4141
<hgroup>
42-
<h1 id="site-title"><span><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/" rel="home">BoochTek, LLC</a></span></h1>
42+
<h1 id="site-title"><span><a href="http://blog.boochtek.com/" rel="home">BoochTek, LLC</a></span></h1>
4343
<h2 id="site-description">Web Development, Ruby on Rails, Open Source</h2>
4444
</hgroup>
4545

46-
<a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">
47-
<img src="https://web.archive.org/web/20150824185026im_/http://blog.boochtek.com/wp-content/themes/twentyeleven/images/headers/wheel.jpg" width="1000" height="288" alt="BoochTek, LLC"/>
46+
<a href="http://blog.boochtek.com/">
47+
<img src="http://blog.boochtek.com/wp-content/themes/twentyeleven/images/headers/wheel.jpg" width="1000" height="288" alt="BoochTek, LLC"/>
4848
</a>
4949

50-
<form method="get" id="searchform" action="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">
50+
<form method="get" id="searchform" action="http://blog.boochtek.com/">
5151
<label for="s" class="assistive-text">Search</label>
5252
<input type="text" class="field" name="s" id="s" placeholder="Search"/>
5353
<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search"/>
@@ -56,7 +56,7 @@ <h2 id="site-description">Web Development, Ruby on Rails, Open Source</h2>
5656
<nav id="access" role="navigation">
5757
<h3 class="assistive-text">Main menu</h3>
5858
<div class="skip-link"><a class="assistive-text" href="#content">Skip to primary content</a></div>
59-
<div class="menu"><ul><li><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/">Home</a></li><li class="page_item page-item-2"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/about">About</a></li></ul></div>
59+
<div class="menu"><ul><li><a href="http://blog.boochtek.com/">Home</a></li><li class="page_item page-item-2"><a href="http://blog.boochtek.com/about">About</a></li></ul></div>
6060
</nav><!-- #access -->
6161
</header><!-- #branding -->
6262

@@ -69,8 +69,8 @@ <h3 class="assistive-text">Main menu</h3>
6969

7070
<nav id="nav-single">
7171
<h3 class="assistive-text">Post navigation</h3>
72-
<span class="nav-previous"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language" rel="prev"><span class="meta-nav">&larr;</span> Previous</a></span>
73-
<span class="nav-next"><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well" rel="next">Next <span class="meta-nav">&rarr;</span></a></span>
72+
<span class="nav-previous"><a href="http://blog.boochtek.com/2014/03/30/brilliant-my-own-programming-language" rel="prev"><span class="meta-nav">&larr;</span> Previous</a></span>
73+
<span class="nav-next"><a href="http://blog.boochtek.com/2014/05/05/tdd-is-alive-and-well" rel="next">Next <span class="meta-nav">&rarr;</span></a></span>
7474
</nav><!-- #nav-single -->
7575

7676

@@ -79,7 +79,7 @@ <h3 class="assistive-text">Post navigation</h3>
7979
<h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>
8080

8181
<div class="entry-meta">
82-
<span class="sep">Posted on </span><a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="11:57 PM" rel="bookmark"><time class="entry-date" datetime="2014-04-14T23:57:29+00:00">April 14, 2014</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/author/booch" title="View all posts by Craig Buchek" rel="author">Craig Buchek</a></span></span> </div><!-- .entry-meta -->
82+
<span class="sep">Posted on </span><a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="11:57 PM" rel="bookmark"><time class="entry-date" datetime="2014-04-14T23:57:29+00:00">April 14, 2014</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="http://blog.boochtek.com/author/booch" title="View all posts by Craig Buchek" rel="author">Craig Buchek</a></span></span> </div><!-- .entry-meta -->
8383
</header><!-- .entry-header -->
8484

8585
<div class="entry-content">
@@ -94,7 +94,7 @@ <h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>
9494
include MyORM::Model, table: 'people'
9595
end</pre>
9696
<p>But that&#8217;s not valid Ruby; <code>include</code> doesn&#8217;t let you pass anything other than a module.</p>
97-
<p>So when I was learning about <a href="https://web.archive.org/web/20150824185026/https://github.com/solnic/virtus">Virtus</a>, I noticed that its example of how to include it is a bit different than the standard Ruby idiomatic <code>include</code>:</p>
97+
<p>So when I was learning about <a href="https://github.com/solnic/virtus">Virtus</a>, I noticed that its example of how to include it is a bit different than the standard Ruby idiomatic <code>include</code>:</p>
9898
<pre>class User
9999
include Virtus.model
100100
end</pre>
@@ -117,13 +117,13 @@ <h1 class="entry-title">Ruby Pattern: Parameterized Module Inclusion</h1>
117117
<p>We could even pass a block. But how do we process those options? There are a few different ways. However we do it, we have to be sure to return a module. And we can create modules in a few different ways.</p>
118118
<p>Virtus uses the builder pattern. It takes the parameters passed in and builds a module dynamically. By that, I mean that it calls <code>Module.new</code> and then adds methods to that module. It does this by mixing in other modules, but it could do it by dynamically defining methods as well.</p>
119119
<p>I&#8217;ve never seen this pattern in any other language. It&#8217;s obviously only possible because we can dynamically create modules.</p>
120-
<p>The use of this idiom seems to be catching on a bit in the Ruby community. I&#8217;ve started using it myself, and will be adding it to my <a href="https://web.archive.org/web/20150824185026/https://github.com/boochtek/includable-activerecord">Includable::ActiveRecord</a> gem soon.</p>
120+
<p>The use of this idiom seems to be catching on a bit in the Ruby community. I&#8217;ve started using it myself, and will be adding it to my <a href="https://github.com/boochtek/includable-activerecord">Includable::ActiveRecord</a> gem soon.</p>
121121
<p>&nbsp;</p>
122122
<p>&nbsp;</p>
123123
</div><!-- .entry-content -->
124124

125125
<footer class="entry-meta">
126-
This entry was posted in <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/category/programming/programming-languages/ruby" title="View all posts in Ruby" rel="category tag">Ruby</a> by <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/author/booch">Craig Buchek</a>. Bookmark the <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="Permalink to Ruby Pattern: Parameterized Module Inclusion" rel="bookmark">permalink</a>.
126+
This entry was posted in <a href="http://blog.boochtek.com/category/programming/programming-languages/ruby" title="View all posts in Ruby" rel="category tag">Ruby</a> by <a href="http://blog.boochtek.com/author/booch">Craig Buchek</a>. Bookmark the <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion" title="Permalink to Ruby Pattern: Parameterized Module Inclusion" rel="bookmark">permalink</a>.
127127
</footer><!-- .entry-meta -->
128128
</article><!-- #post-184 -->
129129

@@ -139,7 +139,7 @@ <h2 id="comments-title">
139139
<article id="comment-2718" class="comment">
140140
<footer class="comment-meta">
141141
<div class="comment-author vcard">
142-
<img alt="" src="https://web.archive.org/web/20150824185026im_/http://1.gravatar.com/avatar/f04aeb28129f653b207e8b5d92706096?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn"><a href="https://web.archive.org/web/20150824185026/http://dirtyinformation.com/" rel="external nofollow" class="url">Amos King</a></span> on <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2718"><time datetime="2014-05-27T22:48:51+00:00">May 27, 2014 at 10:48 PM</time></a> <span class="says">said:</span>
142+
<img alt="" src="http://1.gravatar.com/avatar/f04aeb28129f653b207e8b5d92706096?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn"><a href="http://dirtyinformation.com/" rel="external nofollow" class="url">Amos King</a></span> on <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2718"><time datetime="2014-05-27T22:48:51+00:00">May 27, 2014 at 10:48 PM</time></a> <span class="says">said:</span>
143143
</div><!-- .comment-author .vcard -->
144144

145145

@@ -164,7 +164,7 @@ <h2 id="comments-title">
164164
<article id="comment-2730" class="comment">
165165
<footer class="comment-meta">
166166
<div class="comment-author vcard">
167-
<img alt="" src="https://web.archive.org/web/20150824185026im_/http://1.gravatar.com/avatar/52bfd7cb9ac37808464919f9685ca62f?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn">Craig Buchek</span> on <a href="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2730"><time datetime="2014-05-31T10:49:14+00:00">May 31, 2014 at 10:49 AM</time></a> <span class="says">said:</span>
167+
<img alt="" src="http://1.gravatar.com/avatar/52bfd7cb9ac37808464919f9685ca62f?s=68&amp;d=blank&amp;r=G" class="avatar avatar-68 photo" height="68" width="68"/><span class="fn">Craig Buchek</span> on <a href="http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#comment-2730"><time datetime="2014-05-31T10:49:14+00:00">May 31, 2014 at 10:49 AM</time></a> <span class="says">said:</span>
168168
</div><!-- .comment-author .vcard -->
169169

170170

@@ -200,7 +200,7 @@ <h2 id="comments-title">
200200

201201
<div id="respond" class="comment-respond">
202202
<h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web/20150824185026/http://blog.boochtek.com/2014/04/14/ruby-parameterized-module-inclusion/comment-page-1#respond" style="display:none;">Cancel reply</a></small></h3>
203-
<form action="https://web.archive.org/web/20150824185026/http://blog.boochtek.com/wp-comments-post.php" method="post" id="commentform" class="comment-form">
203+
<form action="http://blog.boochtek.com/wp-comments-post.php" method="post" id="commentform" class="comment-form">
204204
<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p> <p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" aria-required="true"/></p>
205205
<p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="text" value="" size="30" aria-required="true"/></p>
206206
<p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="text" value="" size="30"/></p>
@@ -226,12 +226,12 @@ <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="no
226226

227227

228228
<div id="site-generator">
229-
<a href="https://web.archive.org/web/20150824185026/http://wordpress.org/" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a>
229+
<a href="http://wordpress.org/" title="Semantic Personal Publishing Platform">Proudly powered by WordPress</a>
230230
</div>
231231
</footer><!-- #colophon -->
232232
</div><!-- #page -->
233233

234-
<script type="text/javascript" src="https://web.archive.org/web/20150824185026js_/http://blog.boochtek.com/wp-content/plugins/akismet/_inc/form.js?ver=3.0.4"></script>
234+
<script type="text/javascript" src="http://blog.boochtek.com/wp-content/plugins/akismet/_inc/form.js?ver=3.0.4"></script>
235235

236236
</body>
237237
</html><!--

0 commit comments

Comments
 (0)