<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/ruby/tags/Gem</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 04:23:27 GMT</pubDate>
<item>
<title>(Ruby) Capture Screenshots in Ruby - Maximus1983</title>
<link>http://snipplr.com/view/66615/capture-screenshots-in-ruby/</link>
<description><![CDATA[ <p>Use this Gem to programmatically take screenshots of websites with this completely open source and free library. We have also provided easy to follow online tutorials and sample applications to help you set up GrabzIt as quickly as possible.

First run:

gem install grabzit

Then register a new account on http://grabz.it to get your application key and application secret.

Then use the code as shown below!</p> ]]></description>
<pubDate>Thu, 09 Aug 2012 23:22:47 GMT</pubDate>
<guid>http://snipplr.com/view/66615/capture-screenshots-in-ruby/</guid>
</item>
<item>
<title>(Ruby) Search for remote gems from command line and view detailed results in textmate - inkdeep</title>
<link>http://snipplr.com/view/57642/search-for-remote-gems-from-command-line-and-view-detailed-results-in-textmate/</link>
<description><![CDATA[ <p>Do a remote search for all gems containing the word 'pdf' with detailed descriptions and view results in textmate
requires `rubygems-mate` gem</p> ]]></description>
<pubDate>Fri, 05 Aug 2011 05:13:04 GMT</pubDate>
<guid>http://snipplr.com/view/57642/search-for-remote-gems-from-command-line-and-view-detailed-results-in-textmate/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to start and stop the Selenium-RC server - noah</title>
<link>http://snipplr.com/view/27992/howto-set-up-a-rake-task-to-start-and-stop-the-seleniumrc-server/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 23:01:08 GMT</pubDate>
<guid>http://snipplr.com/view/27992/howto-set-up-a-rake-task-to-start-and-stop-the-seleniumrc-server/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to run Cucumber features and generate reports - noah</title>
<link>http://snipplr.com/view/27990/howto-set-up-a-rake-task-to-run-cucumber-features-and-generate-reports/</link>
<description><![CDATA[ <p>Note that Rake is slower than just running `cucumber`</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 22:41:45 GMT</pubDate>
<guid>http://snipplr.com/view/27990/howto-set-up-a-rake-task-to-run-cucumber-features-and-generate-reports/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to update installed gems and gem sources - noah</title>
<link>http://snipplr.com/view/27989/howto-set-up-a-rake-task-to-update-installed-gems-and-gem-sources/</link>
<description><![CDATA[ <p>Rails has a task like this, but I couldn't locate it, and it wasn't hard to write my own, and mine worked too :|</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 22:26:09 GMT</pubDate>
<guid>http://snipplr.com/view/27989/howto-set-up-a-rake-task-to-update-installed-gems-and-gem-sources/</guid>
</item>
<item>
<title>(Ruby) Update older gem to now - inkdeep</title>
<link>http://snipplr.com/view/16035/update-older-gem-to-now/</link>
<description><![CDATA[ <p>For moving from older gem to newest if  ' sudo gem update --system ' doesn't work</p> ]]></description>
<pubDate>Wed, 17 Jun 2009 16:14:11 GMT</pubDate>
<guid>http://snipplr.com/view/16035/update-older-gem-to-now/</guid>
</item>
<item>
<title>(Ruby) parse an xml file with hpricot and Ruby - noah</title>
<link>http://snipplr.com/view/15537/parse-an-xml-file-with-hpricot-and-ruby/</link>
<description><![CDATA[ <p>Say `gem server` if the above URL doesn't work for you</p> ]]></description>
<pubDate>Thu, 04 Jun 2009 19:47:11 GMT</pubDate>
<guid>http://snipplr.com/view/15537/parse-an-xml-file-with-hpricot-and-ruby/</guid>
</item>
<item>
<title>(Ruby) Load specific version of a gem - wdso</title>
<link>http://snipplr.com/view/14829/load-specific-version-of-a-gem/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 08 May 2009 05:58:21 GMT</pubDate>
<guid>http://snipplr.com/view/14829/load-specific-version-of-a-gem/</guid>
</item>
<item>
<title>(Ruby) Recurse directory tree and count pages in all pdf files using pdf-reader gem - inkdeep</title>
<link>http://snipplr.com/view/11548/recurse-directory-tree-and-count-pages-in-all-pdf-files-using-pdfreader-gem/</link>
<description><![CDATA[ <p>I had a directory tree with around 4000 pdf files and I needed a page count - so I semi-rolled this. I swiped the counter code from the gem README:
http://github.com/yob/pdf-reader/tree/master

It could be more contained - as is I run it from irb:

`>> require 'total_pages'`  
`>> pagetotal = TotalPages.new`  
`>> pagetotal.count('/my/pdf/directory')`  

I added rescue to print info on a file if it fails to open or doesn't conform to to the PDF specification and causes pdf-reader to raise an error - without this the script will quit - that sucks when you're trying to count pages in thousands of files.</p> ]]></description>
<pubDate>Mon, 26 Jan 2009 23:18:37 GMT</pubDate>
<guid>http://snipplr.com/view/11548/recurse-directory-tree-and-count-pages-in-all-pdf-files-using-pdfreader-gem/</guid>
</item>
<item>
<title>(Ruby) Update RubyGems to the latest version (how to upgrade the gem command) - noah</title>
<link>http://snipplr.com/view/9127/update-rubygems-to-the-latest-version-how-to-upgrade-the-gem-command/</link>
<description><![CDATA[ <p>This command tells RubyGems to upgrade _itself_ to the latest version of RubyGems.

**Updated 2010** on modern RubyGems, all you have to do is 

     gem update --system

and you are set.  Then you can say `gem update` to get the latest versions of installed gems.

The rest of this post will be left intact for historical purposes.

## If you were going to read the documentation&amp;hellip;

&amp;hellip;then remove `--no-rdoc` and/or `--no-ri`.

## If you also want to update all installed gems&amp;hellip;

&amp;hellip;then just say `sudo gem update`</p> ]]></description>
<pubDate>Mon, 20 Oct 2008 12:02:19 GMT</pubDate>
<guid>http://snipplr.com/view/9127/update-rubygems-to-the-latest-version-how-to-upgrade-the-gem-command/</guid>
</item>
<item>
<title>(Ruby) Irb power tricks with Wirble &amp;amp; Utility-Belt - cczona</title>
<link>http://snipplr.com/view/5597/irb-power-tricks-with-wirble--utilitybelt/</link>
<description><![CDATA[ <p>Note: most of these will be available to the shell and Rails' console too.</p> ]]></description>
<pubDate>Fri, 28 Mar 2008 12:24:12 GMT</pubDate>
<guid>http://snipplr.com/view/5597/irb-power-tricks-with-wirble--utilitybelt/</guid>
</item>
<item>
<title>(Ruby) 'uninitialized constant Gem::GemRunner' - cczona</title>
<link>http://snipplr.com/view/5397/uninitialized-constant-gemgemrunner/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Mar 2008 00:00:08 GMT</pubDate>
<guid>http://snipplr.com/view/5397/uninitialized-constant-gemgemrunner/</guid>
</item>
<item>
<title>(Ruby) Installing via a Gem (HPricot) - jpowell</title>
<link>http://snipplr.com/view/2724/installing-via-a-gem-hpricot/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 25 May 2007 15:02:02 GMT</pubDate>
<guid>http://snipplr.com/view/2724/installing-via-a-gem-hpricot/</guid>
</item>
</channel>
</rss>