<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>a work on process &#187; scraper</title>
	<atom:link href="http://jystewart.net/process/tag/scraper/feed/" rel="self" type="application/rss+xml" />
	<link>http://jystewart.net/process</link>
	<description>notes from another web developer</description>
	<lastBuildDate>Tue, 27 Jul 2010 09:53:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Is it time to upgrade drupal yet?</title>
		<link>http://jystewart.net/process/2008/03/is-it-time-to-upgrade-drupal-yet/</link>
		<comments>http://jystewart.net/process/2008/03/is-it-time-to-upgrade-drupal-yet/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 11:52:45 +0000</pubDate>
		<dc:creator>James Stewart</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scraper]]></category>
		<category><![CDATA[upgrades]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://jystewart.net/process/2008/03/is-it-time-to-upgrade-drupal-yet/</guid>
		<description><![CDATA[Working with a number of non-profits I frequently find myself tasked with extending or upgrading drupal. Each new version of drupal has been a significant step forward and I&#8217;m usually keen to get up to date but there&#8217;s the small matter of the suite of modules most sites use that need to catch up with <a href="http://jystewart.net/process/2008/03/is-it-time-to-upgrade-drupal-yet/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Working with a number of non-profits I frequently find myself tasked with extending or upgrading drupal. Each new version of drupal has been a significant step forward and I&#8217;m usually keen to get up to date but there&#8217;s the small matter of the suite of modules most sites use that need to catch up with changing APIs. With the release of Drupal 6 a few weeks back I found myself wanting a tool that would help me check if my chosen modules were ready for the upgrade yet.</p>
<p>The quick solution I came up was a screen-scraper that will take a YAML file listing the relevant modules and their URLs and check to see if a Drupal 6 version has been released as yet. I wrote it in ruby, because after all that PHP work it&#8217;s nice to slip back into a language that feels so comfortable. (and hpricot is delightful for quick scraping solutions).</p>
<p>In case it&#8217;s helpful for anyone I&#8217;ve popped <a href="http://pastie.caboo.se/171472">the ruby code</a> and <a href="http://pastie.caboo.se/171473">a sample yaml file</a> up as pasties. Currently it&#8217;s invoked from the command line (providing you have ruby and hpricot set up) with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>drupal-modules.rb my-file.yaml</pre></div></div>

<p>A couple of nice enhancements would be to either grab the list of modules from an existing drupal database, or to set this up as a little web service where people input the modules they use and can check a web page or receive an email when there&#8217;s a status update. It could even lead into some discussion of where certain older modules should be considered redundant and/or replaced with newer options. Time&#8217;s not likely to let me build that, but I&#8217;d love to hear if someone else does.</p>
]]></content:encoded>
			<wfw:commentRss>http://jystewart.net/process/2008/03/is-it-time-to-upgrade-drupal-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
