Ruby

Heroku Plus 1.1.0

Ruby

A new version of the Heroku Plus Ruby Gem has been released. Here are the changes:

  • Improved error messaging for files that do not exist.
  • Clarified the difference between the error messages displayed when switching SSH identities versus switching Heroku account credentials.
  • Clarified source and README documentation.
  • Renamed the -a option to -i (i.e. info) instead.
  • Added printing of SSH private and public identity paths (to further clarify what is being used) when using the the -i option.
  • Prominently display the current account when displaying all account information via the -i option.
  • Added the -b option so one can easily backup an existing Heroku credentials and SSH identity.
  • Added the -d option so one can easily destroy an existing Heroku account (i.e. credentials and SSH identity)
  • Added the -l option so one can easily list all existing Heroku accounts.
  • Removed the ability to configure the Heroku credentials file name via the settings.yml since you can’t configure this via the Heroku gem anyway.

Check out the README for more information.

Tags:

Monday, August 23rd, 2010 Software No Comments

Heroku Plus 1.0.0

Ruby

I’ve just released the first version of the Heroku Plus Ruby Gem. This allows for much easier management of multiple Heroku accounts which was first explained here. Now, with a single command line, you’ll be able to switch accounts as follows:

herokup -s example

Which then yields the following output:

Switching Heroku credentials to "example" account...

Switching Heroku SSH identity to "example" account...

Current Heroku account is:

Account: master@example.com
Password: *********************
Source (Heroku): /Users/tester/.heroku/credentials
Source (SSH): /Users/tester/.ssh/id_rsa

Check out the README for more information.

Tags:

Monday, August 16th, 2010 Software No Comments

Mac OS Setup 1.1.0

I’ve just released Version 1.1.0 of the Mac OS Setup project on GitHub. Here are the highlights:

  • Added Bash prompt customization.
  • Added more Bash aliases for Git.
  • Added Bash aliases for Heroku.
  • Added Bash aliases for Ruby on Rails (including support for Rails 2.x and 3.x).
  • Added Bash aliases for RSpec.
  • Added a Bash alias for generating Railroad model diagrams.
  • Added default terminal colors.
  • Added better Git syntax coloring.
  • Added Awesome Print to the irbrc file.

Check the CHANGELOG for further details.

Tags: , ,

Tuesday, August 3rd, 2010 Software No Comments

Rails Setup Template 1.1.0

Ruby on Rails

I have released Version 1.1.0 of my Rails Setup Template. This time with more CSS3 goodness. Here are the highlights of this version release:

  • Added the LESS gem requirement.
  • Added the More plugin.
  • Added the Rails Indexes plugin.
  • Added the Formtastic gem requirement.
  • Added the Bullet gem requirement.
  • Added the Deadweight gem requirement.
  • Removed the AndAnd gem requirement.
  • Added Git setup and initialization.
  • Removed the visitor namespace.
  • Added the Underscore JavaScript library.
  • Upgraded to jQuery 1.4.2.
  • Upgraded to jQuery UI 1.8.2.
  • Updated the db:reseed rake task so that it also rebuilds the models diagrams.
  • Added a rake task for printing database and database table sizes.
  • Added a rake task for Heroku deployments.
  • Added a rake task for Deadweight.
  • Upgraded to Blueprint 0.9.1.
  • Added Phusion Passenger debug support (see passenger.rake).
  • Updated all gem definitions due to rubygems.org changes.

Check the CHANGELOG for further details and, remember, it only takes one command line:

rails demo -m http://github.com/aeonscope/rails_setup_template/raw/v1.1.0/template.rb

…to get the following perfectly running Ruby on Rails app for Firefox, Chrome, Safari, Opera, and IE:

Demo Screenshot
(click to view)

It doesn’t get any easier than that. Even you’re grandma will shed a tear of joy.

Tags: ,

Monday, August 2nd, 2010 Software No Comments

Resourcer 0.3.0

Ruby

I’ve just released version 0.3.0 of the Resourcer Ruby Gem. Here are the changes:

  • Added the csrf_meta_tag helper which provides Rails 3 support for Rails 2 apps.
  • Moved jQuery AJAX setup to the jquery.rest.js file.
  • Removed the JavaScripts controller and related views (use jquery.rest.js instead, everything happens there now).

To upgrade to v0.3.0 from previous versions, perform the following steps:

  1. Delete the app/controllers/javascripts_controller.rb file.
  2. Delete the app/views/javascripts directory (especially the ujs.js.erb file found within).
  3. Remove the <%= javascript_include_tag "ujs" %> from your app/views/layouts/application.html.erb layout file.
  4. Add the <%= csrf_meta_tag %> line to your app/views/layouts/application.html.erb layout file.
  5. Rerun the setup generator: script/generate resourcer_setup.

Tags:

Monday, July 19th, 2010 Software No Comments

Resourcer 0.2.4

Ruby

I’ve just released version 0.2.4 of the Resourcer Ruby Gem. Here are the changes:

  • Upgraded requirements to Ruby 1.8.7.
  • Upgraded requirements to Rails 2.3.8.
  • Fixed an issue where the “_delete” attribute is now “_destroy” with Rails 2.3.8 nested attributes.
  • Added the ability to clone hidden nested form attributes via the data-clone attribute. The default is false.

If you wish to use Resourcer with an earlier version of Rails then stick with Version 0.2.3 or earlier. In fact, you don’t necessarily need to upgrade to this gem but only need to update your jquery.rest.js file (either way, it is the jquery.rest.js file you want to update in your projects).

Tags:

Monday, June 7th, 2010 Software No Comments

Mac OS X Ruby Environment

Ruby

For those wanting to set up a proper Ruby and Ruby on Rails development environment for your Mac OS, I’ve created an OmniOutliner outline that might be of help:

When making the outline, I pulled heavily from the following articles (also found on my MacOS page) with a few modification here and there:

Tags: ,

Sunday, May 2nd, 2010 Software No Comments

My Ruby Gems

Ruby

I finally had a moment to come up for air and move all my gems to Ruby Gems. Woot! You can read more about them here:

I’ll post more news as I update these gems further (especially the Resourcer gem as there are some cool Rails 3.0 upgrades I have yet to make to this gem).

Tags: ,

Thursday, March 25th, 2010 Software No Comments

Favorite Ruby Feeds

Ruby

Over a year ago, I write a post about my favorite Ruby feeds. I’ve since deleted that post in order to write about an updated set of Ruby feeds that you should be paying attention to (if not already). I read all of these feeds religiously on a daily basis and have broken them down below by general news and information followed by screencasts/tutorials. Enjoy.

News

  • A Fresh Cup - My personal favorite. While you can find similar news via the links below, Mike Gunderloy does an excellent job of summing everything up in place for news, information, and new gems from the Ruby community.
  • Ruby Toolbox - A great trending site for finding out what gems are hot and most popular within the Ruby community. This can save you a lot of time when you want to know which gem is the best solution for a problem that has already been solved.
  • Ruby Trends - Another trending site. Useful for cross-checking against Ruby Toolbox on what is hot.
  • Ruby News - Straight from the source. Find about new releases, conferences, developments, etc.
  • Ruby Inside - The inside scoop on Ruby news.
  • RubyFlow - A great site for picking up new resources to add to your development repertoire.
  • RubyFu - Useful quick news and resource links.
  • Ruby Best Practices - A great source of thoughtful discussion, including code samples, on how to write better code.
  • Ruby5 - From some of the same guys who provide the Rails Envy podcast below. This is another podcast on Ruby news but in short, 5-minute, segments of usually discussing many of the new and interesting gems being developed.
  • Rails Inside - Get the inside scoop on Rails news.
  • Riding Rails - Learn what is happening with the Ruby on Rails team.
  • Rails Spikes - A multi-authored site of Ruby developers discussing news, tips, code, etc.
  • Rails Illustrated - Info on Rails, web design, and the user experience.
  • Rails Notes - Another site worth checking out and picking up new learning.
  • Rails Tips - As the site description goes: “One man, feverishly posting everything he learns.”
  • The Rails Way - News and information dedicated to teaching best practices of Ruby on Rails.
  • Ruby on Rails Security Project - A good place to read up on security issues or at least keep your mind in it.
  • Giant Robots Smashing Into Other Giant Robots - Good development tips and tricks, mostly related to Rails.
  • Ryan’s Scraps - Interesting news on what’s new and upcoming within the Rails code base. Includes code samples and detailed descriptions and examples of new Rails features.
  • Has Many Through - Although he has a low writing frequency, the posts are enlightening.
  • Rails Envy - An entertaining and informative weekly podcast dedicated to Ruby, Rails, and web framework news.
  • Rails Podcasts - Ruby/Rails podcasts by Geoffrey Grosenbach of PeepCode fame.
  • Rails Magazine - News, articles, and information about the Ruby on Rails framework.

Tutorials

  • Railscasts - Short screen cast tutorials of Ruby on Rails code.
  • Envy Casts - Produced by the same guys that host the Rails Envy podcasts. Each screen cast tutorial will set you back about $9.
  • PeepCode - Screencast tutorials like Railscasts but longer in length and not free (roughly $9 per episode).
  • Tekniqal - A collection of screencasts that cover some of the Ruby basics.
  • Scaling Rails - A series of screencasts on detailing how to scale your Ruby on Rails application appropriately. Produced by Gregg Pollack of Envy Cast fame.
  • BDD Casts - Video tutorials on all things related to Behavior Driven Development.

BTW, you can find this list and more on my Ruby page.

Tags: ,

Tuesday, October 6th, 2009 Software No Comments

jQuery on Rails Talk

Not Just Ruby (NJR)

For those in the Colorado Springs area, I’ll be giving a talk tomorrow at Panera Bread for the Not Just Ruby (NJR) group on the merits of jQuery as your JavaScript framework of choice when building Ruby on Rails apps. The talk is both an intro to jQuery (in some sense) as well as how to make jQuery easy to use after I have weened you off of the out-of-the-box Rails helpers. You’ll learn to write unobtrusive JavaScript code, support graceful degradation, not open yourself up to security holes, and more.

For those of you who would like to get a jumpstart on the talk, here are the files I’ll be using for the talk:

In the strange event that you are not able to install the necessary gems needed to run the Ruby on Rails demo provided above, then you can goof around with the live version here if you like. I know the demo doesn’t look like much but its what is happening under the covers that will be of interest.

See you at the meeting tomorrow!

Tags: , ,

Tuesday, September 1st, 2009 Meetups No Comments