<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Show the current SVN revision in your Rails app</title> <atom:link href="http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/feed/" rel="self" type="application/rss+xml" /><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/</link> <description>Code Monkey</description> <lastBuildDate>Thu, 11 Mar 2010 04:50:50 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Marcin Kulik</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-10743</link> <dc:creator>Marcin Kulik</dc:creator> <pubDate>Sun, 31 May 2009 23:21:32 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-10743</guid> <description>Guys, try my Rack middleware for showing revision info on demo/staging servers. It allows to completely remove revision-displaying code from your app&#039;s layout and/or partials (which shouldn&#039;t be there at all). Check it out at http://sickill.net/blog/2009/06/01/rack-middleware-showing-git-or-svn-revision.html</description> <content:encoded><![CDATA[<p>Guys, try my Rack middleware for showing revision info on demo/staging servers. It allows to completely remove revision-displaying code from your app&#8217;s layout and/or partials (which shouldn&#8217;t be there at all). Check it out at <a
href="http://sickill.net/blog/2009/06/01/rack-middleware-showing-git-or-svn-revision.html" rel="nofollow">http://sickill.net/blog/2009/06/01/rack-middleware-showing-git-or-svn-revision.html</a></p> ]]></content:encoded> </item> <item><title>By: dpbmcvtk</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-10704</link> <dc:creator>dpbmcvtk</dc:creator> <pubDate>Mon, 23 Feb 2009 12:00:28 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-10704</guid> <description>oATFeL  &lt;a href=&quot;http://qxwqlyzphvln.com/&quot; rel=&quot;nofollow&quot;&gt;qxwqlyzphvln&lt;/a&gt;, [url=http://lilmpgqnpxad.com/]lilmpgqnpxad[/url], [link=http://jzsiydleorsg.com/]jzsiydleorsg[/link], http://qrvrnmmuqdfw.com/</description> <content:encoded><![CDATA[<p>oATFeL <a
href="http://qxwqlyzphvln.com/" rel="nofollow">qxwqlyzphvln</a>, [url=http://lilmpgqnpxad.com/]lilmpgqnpxad[/url], [link=http://jzsiydleorsg.com/]jzsiydleorsg[/link], <a
href="http://qrvrnmmuqdfw.com/" rel="nofollow">http://qrvrnmmuqdfw.com/</a></p> ]]></content:encoded> </item> <item><title>By: Elwyn</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-10524</link> <dc:creator>Elwyn</dc:creator> <pubDate>Fri, 16 May 2008 14:53:11 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-10524</guid> <description>Great article and comments, really helpful. However, what you actually need is the following if your using capistrano&#039;s &quot;free&quot; revision number.run &quot;echo \&quot;REVISION:#{real_revision}\&quot; &gt; #{release_path}/app/views/shared/_version.rhtml&quot;revision will just spit out a useless &quot;HEAD&quot;:-)</description> <content:encoded><![CDATA[<p>Great article and comments, really helpful. However, what you actually need is the following if your using capistrano&#8217;s &#8220;free&#8221; revision number.</p><p>run &#8220;echo \&#8221;REVISION:#{real_revision}\&#8221; &gt; #{release_path}/app/views/shared/_version.rhtml&#8221;</p><p>revision will just spit out a useless &#8220;HEAD&#8221;</p><p>:-)</p> ]]></content:encoded> </item> <item><title>By: de tomKronieken &#187; Blog Archive &#187; links for 2008-01-09</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-5117</link> <dc:creator>de tomKronieken &#187; Blog Archive &#187; links for 2008-01-09</dc:creator> <pubDate>Wed, 09 Jan 2008 19:21:34 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-5117</guid> <description>[...] Ariejan.net » Show the current SVN revision in your Rails app Shared with shareomatic.com (tags: rails svn) [...]</description> <content:encoded><![CDATA[<p>[...] Ariejan.net » Show the current SVN revision in your Rails app Shared with shareomatic.com (tags: rails svn) [...]</p> ]]></content:encoded> </item> <item><title>By: jc</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-153</link> <dc:creator>jc</dc:creator> <pubDate>Mon, 18 Jun 2007 03:40:54 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-153</guid> <description>Capistrano now seems to give you a &quot;revision&quot; variable for free.This is what I&#039;m doing:
run &quot;echo \&quot;REVISION:#{revision}\&quot; &gt; #{release_path}/app/views/shared/_version.rhtml&quot;</description> <content:encoded><![CDATA[<p>Capistrano now seems to give you a &#8220;revision&#8221; variable for free.</p><p>This is what I&#8217;m doing:<br
/> run &#8220;echo \&#8221;REVISION:#{revision}\&#8221; &gt; #{release_path}/app/views/shared/_version.rhtml&#8221;</p> ]]></content:encoded> </item> <item><title>By: Alexander</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-152</link> <dc:creator>Alexander</dc:creator> <pubDate>Fri, 13 Apr 2007 16:23:16 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-152</guid> <description>Hi,since &#039;svn info&#039; output is pretty much  YAML, I simply do the following:deploy.rb:
task :publish_revision do
run &quot;svn info #{release_path} &gt; #{release_path}/config/appversion.yml&quot;and then in the app: read this file as a hash:environment.rb:
APP_VERSION = File.file?(&#039;config/appversion.yml&#039;) ? YAML.load_file(&#039;config/appversion.yml&#039;) : &quot;&quot;in the view:&lt; %= APP_VERSION %&gt;and so on :)</description> <content:encoded><![CDATA[<p>Hi,</p><p>since &#8217;svn info&#8217; output is pretty much  YAML, I simply do the following:</p><p>deploy.rb:<br
/> task :publish_revision do<br
/> run &#8220;svn info #{release_path} &gt; #{release_path}/config/appversion.yml&#8221;</p><p>and then in the app: read this file as a hash:</p><p>environment.rb:<br
/> APP_VERSION = File.file?(&#8216;config/appversion.yml&#8217;) ? YAML.load_file(&#8216;config/appversion.yml&#8217;) : &#8220;&#8221;</p><p>in the view:</p><p>< %= APP_VERSION %></p><p>and so on :)</p> ]]></content:encoded> </item> <item><title>By: Ariejan</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-151</link> <dc:creator>Ariejan</dc:creator> <pubDate>Fri, 16 Mar 2007 09:15:16 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-151</guid> <description>Your version has to run subversion every time you request the active revision.My script only does that once so there would be a performance advantage to my version.</description> <content:encoded><![CDATA[<p>Your version has to run subversion every time you request the active revision.</p><p>My script only does that once so there would be a performance advantage to my version.</p> ]]></content:encoded> </item> <item><title>By: Aaron Namba</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-150</link> <dc:creator>Aaron Namba</dc:creator> <pubDate>Fri, 16 Mar 2007 01:55:41 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-150</guid> <description>That seems... complicated. I use svnversion to get that info. It&#039;s a bit slow though, so I cache the result. This is from my application.rb:def build_number
if RAILS_ENV == &#039;production&#039;
if !defined?(@@build_number)
svnversion = `svnversion #{RAILS_ROOT}`
svnversion =~ /:?(\d )[MS]?$/
@@build_number = $1
end
@@build_number
else
&#039;BUILD&#039;
end
end
helper_method :build_number</description> <content:encoded><![CDATA[<p>That seems&#8230; complicated. I use svnversion to get that info. It&#8217;s a bit slow though, so I cache the result. This is from my application.rb:</p><p> def build_number<br
/> if RAILS_ENV == &#8216;production&#8217;<br
/> if !defined?(@@build_number)<br
/> svnversion = `svnversion #{RAILS_ROOT}`<br
/> svnversion =~ /:?(\d )[MS]?$/<br
/> @@build_number = $1<br
/> end<br
/> @@build_number<br
/> else<br
/> &#8216;BUILD&#8217;<br
/> end<br
/> end<br
/> helper_method :build_number</p> ]]></content:encoded> </item> <item><title>By: Bitbutter</title><link>http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/comment-page-1/#comment-149</link> <dc:creator>Bitbutter</dc:creator> <pubDate>Sun, 28 Jan 2007 13:04:14 +0000</pubDate> <guid
isPermaLink="false">http://beta.ariejan.net/?p=63#comment-149</guid> <description>Thanks for this write-up! i was thinking about the best way to do this very thing.</description> <content:encoded><![CDATA[<p>Thanks for this write-up! i was thinking about the best way to do this very thing.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached (user agent is rejected)

Served from: starbuck.ariejan.net @ 2010-03-15 20:54:32 -->