I've used many Ruby tools on non-Ruby projects too. Capistrano, moonshine, and rake for a WordPress server. Rake for PHP and client side JavaScript/HTML5 projects.
Tag: ruby
Organizing Rake Using Namespaces
I use Rake to automate a lot of tasks, in my plugins and on my development systems. A good technique to learn is to organize and group your tasks using Rake namespaces. Example: desc "Download missing plugins from Github" task :plugins do # .. end namespace :plugins do desc "Fetch latest revisions" task :fetch …
Capture a Screenshot of a Full Website With Ruby
I’ve been working on a project recently where I needed to take screenshots of an entire website. I’m not talking about the full screen but the entire-multiple-screens-long website. There are a few existing tools out that but they wouldn’t work for me for various reasons: I wanted to use the command line so I can …
Kindle – Ruby scripts to manage my Kindle notes
I’ve finally open sourced the set of Ruby scripts I’ve been using to manage my Kindle notes. The code is on Github and can be downloaded by anyone. The readme goes into more depth but basically this code lets you manage the Kindle notes file to: List all of the books you have taken notes …
ruby-debug on Ruby 1.9 Gem::Installer::ExtensionBuildError
I’m starting to use Ruby 1.9.2 with ChiliProject now but I kept running into an error during bundle install: Installing linecache (0.43) with native extensions /home/edavis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /home/edavis/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to …