<?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>SmartLogic Solutions Blog &#187; gem</title>
	<atom:link href="http://blog.smartlogicsolutions.com/tag/gem/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartlogicsolutions.com</link>
	<description>News and updates from the people at SmartLogic Solutions</description>
	<lastBuildDate>Tue, 30 Nov 2010 21:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PureMVCGen 0.1.1 Released &#8211; Now Works on Windows</title>
		<link>http://blog.smartlogicsolutions.com/2008/12/18/puremvcgen-011-released-now-works-on-windows/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/12/18/puremvcgen-011-released-now-works-on-windows/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 22:47:49 +0000</pubDate>
		<dc:creator>Greg Jastrab</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Greg Jastrab]]></category>
		<category><![CDATA[PureMVC]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[generator]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=441</guid>
		<description><![CDATA[I just released a minor update to PureMVCGen to fix a bug the original release had that caused the ANT commands to fail on Windows. If you&#8217;ve already installed the gem before, then simply run: $&#62; gem update puremvc-gen to get the new version. If you&#8217;re installing for the first time, refer to the original [...]]]></description>
			<content:encoded><![CDATA[<p>I just released a minor update to <a href="http://github.com/gjastrab/puremvc-gen/tree/master">PureMVCGen</a> to fix a bug the original release had that caused the ANT commands to fail on Windows.  If you&#8217;ve already installed the gem before, then simply run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> gem update puremvc-gen</pre></div></div>

<p>to get the new version.  If you&#8217;re installing for the first time, refer to the <a href="http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/">original blog</a> post for instructions.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/" rel="bookmark" class="crp_title">Introducing PureMVCGen &#8211; an ANT based PureMVC Flex Generator</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/12/24/timecop-2-released-freeze-and-rebase-time-ruby/" rel="bookmark" class="crp_title">Timecop 0.2.0 Released: Freeze and Rebase Time in Ruby</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/06/10/shell-script-to-upgrade-ruby-enterprise-edition-while-maintaining-directory-naming-sanity/" rel="bookmark" class="crp_title">Shell Script to Upgrade Ruby Enterprise Edition while Maintaining Directory Naming Sanity</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/07/i-cant-upgrade-rubygems-from-111-to-120-on-ubuntu/" rel="bookmark" class="crp_title">I can&#8217;t upgrade RubyGems from 1.1.1 to 1.2.0 on Ubuntu</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/12/07/timecop-0-3-4-released/" rel="bookmark" class="crp_title">Timecop 0.3.4 Released</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/12/18/puremvcgen-011-released-now-works-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing PureMVCGen &#8211; an ANT based PureMVC Flex Generator</title>
		<link>http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 21:47:04 +0000</pubDate>
		<dc:creator>Greg Jastrab</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Greg Jastrab]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[PureMVC]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=409</guid>
		<description><![CDATA[I just published a PureMVC code generation tool I&#8217;ve been working on lately. It&#8217;s an ANT-based tool, but is distributed via Ruby Gems, which allows it to be easily installed as a command-line tool once you have Ruby, rubygems, and ANT installed. Once you have those programs installed, simply enter ($> just denotes you are [...]]]></description>
			<content:encoded><![CDATA[<p>I just published a <a href="http://www.puremvc.org">PureMVC</a> code generation tool I&#8217;ve been working on lately.  It&#8217;s an ANT-based tool, but is distributed via <a href="http://rubygems.org">Ruby Gems</a>, which allows it to be easily installed as a command-line tool once you have <a href="http://www.ruby-lang.org">Ruby</a>, rubygems, and <a href="http://ant.apache.org">ANT</a> installed.</p>
<p>Once you have those programs installed, simply enter (<code>$></code> just denotes you are at a prompt on the command line)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> puremvc-gen</pre></div></div>

<p>and the tool will be installed.  Read on to see how to use it&#8230;</p>
<p><span id="more-409"></span></p>
<h4>Project Settings</h4>
<p>Presently, there is one bit of configuration housekeeping that must be done to get started using the tool.  Within the source directory of your project you will need to add a <b>proj.properties</b> file containing 5 property settings:</p>
<ul>
<li><b>app.prefix</b> =&gt; what to prefix your Facade and application Mediator with</li>
<li><b>project.name</b> =&gt; the name of your main MXML file </li>
<li><b>core.namespace</b> =&gt; the namespace of the project</li>
<li><b>core.dir</b> =&gt; the directory corresponding to the namespace (this will eventually be inferred from <b>core.namespace</b>)</li>
<li><b>pmvc.flavor</b> =&gt; <code>standard</code> | <code>multicore</code> (although only standard is currently supported)</li>
</ul>
<p>An example configuration for a project called <b>MyDemo</b> using the namespace <code>com.mydemo.demo</code> would look like:</p>
<h5>Example proj.properties</h5>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">app.prefix = Demo
project.name = MyDemo
core.namespace = com.mydemo.demo
core.dir = com/mydemo/demo
pmvc.flavor = standard</pre></div></div>

<h4>Using PureMVCGen</h4>
<h5>Validating Project Properties</h5>
<p>If you are starting a new PureMVC project and you have the <b>proj.properties</b> file created in the source directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> puremvc-gen check</pre></div></div>

<p>will ensure that the properties are correctly set.  If they have been, at the end of the ANT output, you should see:<br />
<div id="attachment_418" class="wp-caption alignnone" style="width: 428px"><img src="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/12/validated.png" alt="Display showing properties have been validated" title="Properties Validated" width="418" height="71" class="size-full wp-image-418" /><p class="wp-caption-text">Display showing properties have been validated</p></div></p>
<h5>Generating the PureMVC Skeleton</h5>
<p>To generate the PureMVC directories, main MXML file, Facade, main Mediator, StartupCommand, and PrepareActorsCommand classes, simply enter:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> puremvc-gen init</pre></div></div>

<p>After this was run successfully the directory hierarchy will look something like this:<br />
<div id="attachment_421" class="wp-caption aligncenter" style="width: 284px"><img src="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/12/skeleton.png" alt="PureMVC skeleton generated from demo project properties" title="Generated PureMVC Skeleton" width="274" height="250" class="size-full wp-image-421" /><p class="wp-caption-text">PureMVC skeleton generated from demo project properties</p></div></p>
<h5>Other Commands</h5>
<p>I haven&#8217;t created any online documentation yet, but the tool has fairly decent instructions on the command line.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$<span style="color: #000000; font-weight: bold;">&gt;</span> puremvc-gen <span style="color: #7a0874; font-weight: bold;">help</span></pre></div></div>

<p><a href="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/12/instructions.png"><img src="http://blog.smartlogicsolutions.com/wp-content/uploads/2008/12/instructions.png" alt="Instructions output on command line when running \&quot;help\&quot;" title="PureMVCGen Instructions" width="500" height="127" class="size-full wp-image-423" /></a><br />
A quick rundown of the command, proxy, and mediator generation commands:</p>
<ul>
<li><b>puremvc-gen new command</b> =&gt; generates a simple command</li>
<li><b>puremvc-gen new command -m</b> (or &#8211;macro) =&gt; generates a macro command</li>
<li><b>puremvc-gen new mediator</b> =&gt; generates a mediator</li>
<li><b>puremvc-gen new proxy</b> =&gt; generates a proxy</li>
</ul>
<p>All of these generation commands may be passed a <code>-n</code> option to specify the name for the class on the command line.  Otherwise, ANT will prompt you to input the name.</p>
<h4>Where to Git It</h4>
<p>The project is <a href="http://github.com/gjastrab/puremvc-gen/tree/master">hosted at github</a> so feel free to checkout the source.  I&#8217;ll update the README file eventually so that front page will have documentation as well.</p>
<p>The gem is also <a href="http://rubyforge.org/projects/gjastrab/">hosted at RubyForge</a> so you can download it there if you&#8217;d like to build it manually.</p>
<p>The GitHub page will eventually include a Roadmap for planned features, but please comment here with any suggestions you may have.</p>
<p>Finally, if you&#8217;re averse to Ruby you can always download the <b>conf/</b> directory of the project, and manually run the ANT commands.  They are a bit more cryptic though, which is why the gem and executable it provides are nice, however it should output instructions on what settings need to be made to run it manually.</p>
<p>Enjoy!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/12/18/puremvcgen-011-released-now-works-on-windows/" rel="bookmark" class="crp_title">PureMVCGen 0.1.1 Released &#8211; Now Works on Windows</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/15/compiling-your-first-flex-4-application/" rel="bookmark" class="crp_title">Compiling Your First Flex 4 Application</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/11/12/watch-multiple-logs-in-a-single-terminal/" rel="bookmark" class="crp_title">Watch Multiple Logs in a Single Terminal</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/08/21/getting-subclipse-to-work-in-gandymede-eclipse-34/" rel="bookmark" class="crp_title">Getting Subclipse to Work in Gandymede (Eclipse 3.4)</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/10/14/facebox-with-prototype/" rel="bookmark" class="crp_title">Facebox With Prototype</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/12/05/introducing-puremvcgen-an-ant-based-puremvc-flex-generator/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

