<?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>cameronyule.com &#187; rubygem</title>
	<atom:link href="http://cameronyule.com/tags/rubygem/feed" rel="self" type="application/rss+xml" />
	<link>http://cameronyule.com</link>
	<description>Glasgow based new media developer Cameron Yule.</description>
	<lastBuildDate>Fri, 22 Jan 2010 12:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mailbuild gem 1.1.1 release</title>
		<link>http://cameronyule.com/2008/11/mailbuild-gem-111-release</link>
		<comments>http://cameronyule.com/2008/11/mailbuild-gem-111-release#comments</comments>
		<pubDate>Fri, 07 Nov 2008 12:05:03 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mailbuild]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygem]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=331</guid>
		<description><![CDATA[I pushed an update to the Mailbuild gem this morning in response to a bug report from Michael Larocque, who found it wasn&#8217;t properly defaulting to the first List ID if none was specified explicitly. Full details can be found in the commit on the github mirror.]]></description>
			<content:encoded><![CDATA[<p>I pushed an update to the Mailbuild gem this morning in response to a bug report from <a href="http://prolumina.com">Michael Larocque</a>, who found it wasn&#8217;t properly defaulting to the first List ID if none was specified explicitly.</p>
<p>Full details can be found in <a href="http://github.com/cameronyule/mailbuild/commit/cd41013cce5b3a4f8717e9c6e4d0853a692d4ffe">the commit</a> on the github mirror.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/11/mailbuild-gem-111-release/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailbuild gem 1.1</title>
		<link>http://cameronyule.com/2008/09/mailbuild-gem-1-1</link>
		<comments>http://cameronyule.com/2008/09/mailbuild-gem-1-1#comments</comments>
		<pubDate>Wed, 03 Sep 2008 11:49:49 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mailbuild]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygem]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=235</guid>
		<description><![CDATA[I've pushed a small update to the <a href="http://rubyforge.org/projects/mailbuild/">Mailbuild gem</a> this morning which adds support for multiple subscriber lists, enabling you to manage different types of subscribers from within your application.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve pushed a small update to the <a href="http://rubyforge.org/projects/mailbuild/">Mailbuild gem</a> this morning which adds support for multiple subscriber lists, enabling you to manage different types of subscribers from within your application.</p>
<p>The <a href="http://github.com/cameronyule/mailbuild-example/tree">sample Rails application</a> has also been updated to take into account the slightly changed syntax for specifying your list id(s);</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">Mailbuild.<span style="color:#9900CC;">list_id</span> = <span style="color:#996600;">'LIST_ID_HERE'</span></pre></div></div>

<p>…is now…</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">Mailbuild.<span style="color:#9900CC;">list_ids</span> = <span style="color:#006600; font-weight:bold;">&#123;</span>:newsletter = <span style="color:#996600;">'LIST_ID_HERE'</span><span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>All API calls take a list id as their last parameter, which defaults to the first id you declare in the list_ids hash. </p>
<p>You can use a specific subscriber list id as follows;</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">Mailbuild.<span style="color:#5A0A0A; font-weight:bold;">add</span><span style="color:#006600; font-weight:bold;">&#40;</span>params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:email</span><span style="color:#006600; font-weight:bold;">&#93;</span>, params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:name</span><span style="color:#006600; font-weight:bold;">&#93;</span>, Mailbuild.<span style="color:#9900CC;">list_ids</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:newsletter</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>The <a href="http://mailbuild.rubyforge.org/">documentation</a> explains what parameters each method accepts.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/09/mailbuild-gem-1-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Ruby/Rails interface to Mailbuild API</title>
		<link>http://cameronyule.com/2008/07/a-rubyrails-interface-to-mailbuild-api</link>
		<comments>http://cameronyule.com/2008/07/a-rubyrails-interface-to-mailbuild-api#comments</comments>
		<pubDate>Thu, 24 Jul 2008 16:19:17 +0000</pubDate>
		<dc:creator>Cameron</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mailbuild]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygem]]></category>

		<guid isPermaLink="false">http://cameronyule.com/?p=103</guid>
		<description><![CDATA[I&#8217;m pleased to announce the release of the first version of my Mailbuild API interface, which I&#8217;m distributing as a Rubygem. To make it easier to figure out how to use it, I&#8217;ve also created a fully functional Rails application which demonstrates all the API calls available. To use it all you have to do [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pleased to announce the release of the first version of my <a href="http://rubyforge.org/projects/mailbuild/">Mailbuild API interface</a>, which I&#8217;m distributing as a Rubygem.</p>
<p>To make it easier to figure out how to use it, I&#8217;ve also created a fully functional Rails application which demonstrates all the API calls available. </p>
<p>To use it all you have to do is grab a copy from subversion…</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> http:<span style="color: #000000; font-weight: bold;">//</span>mailbuild.rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>rails_mailbuild_example<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>… make sure you have the mailbuild gem installed …</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> rails_mailbuild_example
<span style="color: #666666; font-style: italic;"># OS X/Linux users may have to prefix this with sudo</span>
rake gems:<span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>… and edit config/initializers/mailbuild.rb, adding your own API key, List ID and sub-domain.</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># You can get this information from your Mailbuild admin</span>
Mailbuild.<span style="color:#9900CC;">api_key</span> = <span style="color:#996600;">''</span>
Mailbuild.<span style="color:#9900CC;">list_id</span> = <span style="color:#996600;">''</span>
Mailbuild.<span style="color:#9900CC;">subdomain</span> = <span style="color:#996600;">''</span></pre></div></div>

<p>Hopefully that&#8217;s all there is to it, but if you run into any problems feel free to add a <a href="http://rubyforge.org/tracker/?atid=16671&#038;group_id=4326&#038;func=browse">support request</a> or <a href="http://rubyforge.org/tracker/?atid=16670&#038;group_id=4326&#038;func=browse">bug report</a> on Rubyforge.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronyule.com/2008/07/a-rubyrails-interface-to-mailbuild-api/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

