public
Description: Website for bostonrb.org
Homepage: http://bostonrb.org
Clone URL: git://github.com/bostonrb/bostonrb.git
name age message
file .gitignore Thu Jul 30 18:03:11 -0700 2009 git ignore native json bits. [technicalpickles]
file Capfile Tue May 27 18:34:06 -0700 2008 Use local deploy. [technicalpickles]
file README.textile Wed Jun 17 21:38:27 -0700 2009 Updated README to talk about seeding data. [technicalpickles]
file Rakefile Sat May 02 10:31:57 -0700 2009 turning fakeweb allow_net_connect to false for ... [dancroak]
directory app/ Loading commit data...
directory config/
directory db/ Wed Jul 29 06:34:43 -0700 2009 Fix the problem of duplicate tweets. It was cau... [technicalpickles]
directory doc/ Sat May 16 13:57:35 -0700 2009 fixed styling on events/index. removed events R... [dancroak]
directory features/ Wed Jul 29 11:34:57 -0700 2009 vendoring new shoulda, factory girl. upgrading ... [dancroak]
directory lib/ Mon May 25 22:15:46 -0700 2009 adding rake task for getting projects. adding g... [dancroak]
directory log/ Wed May 28 20:48:55 -0700 2008 Trying to keep logs working... [technicalpickles]
directory public/ Tue Jul 28 11:56:26 -0700 2009 custom error pages. [Angelo Simeoni]
directory script/ Thu May 21 00:29:23 -0700 2009 cleaning up rake tasks, going with rake instead... [dancroak]
directory test/ Thu Jul 30 18:29:51 -0700 2009 Cleaned up deprecation and other noise when tes... [technicalpickles]
directory vendor/ Thu Jul 30 18:02:55 -0700 2009 Upgraded to rails 2.3.3 [technicalpickles]
README.textile

Boston.rb

This is the source code to Boston.rb, a Rails app which helps Boston Rubyists communicate.

It is open source under the MIT license. Fork away, modify to your own user group’s needs, & send us pull requests!

Dependencies

All gems are vendored except for Nokogiri, JSON, RedCloth, and Feedzirra, which have native extensions, & Cucumber, which doesn’t respect vendoring.

Install:

cucumber 0.3.5 json 1.1.6 pauldix-feedzirra 0.0.12 RedCloth 4.1.0

Tests

We use Cucumber & Webrat for acceptance testing and Shoulda, Factory Girl, & Mocha for unit testing. We use Fakeweb to stop the test suite from hitting external services. We use Nokogiri for parsing markup, especially in acceptance tests.

Development & Test databases

Boston.rb comes without a database.yml. It is also ignored from git. This is so we can deploy with the correct credentials. As a developer, that means you need to create one of your own. Developers are successfully using MySQL & Postgres. SQLite should be fine, too.

Run rake db:bootstrap to seed some example data.

Production

EngineYard is awesome enough to provide us with hosting.

Dependencies

The gems with native dependencies as mentioned above need to be installed on the production machine. Typically you do:

sudo gem install whatever-gem —no-ri —no-rdoc

Since we use some gems that are only on github (ie feedzirra), this needs to be run at least once:

gem sources -a http://gems.github.com

Cron

The following rake tasks need to be configured to keep data fresh:

rake RAILS_ENV=production get_tweets rake RAILS_ENV=production get_blogs

For our EY deployment, there’s a custom wrapper to handle logging output at /engineyard/custom/cron_wrapper, which among other things, adds logging to /data/bostonrb/current/logs. It takes four arguments: the application to run for (always will be bostonrb), the name of the log file, the rails environment, and lastly the command to run

The current crontab entries look like:

*/5 * * * * /engineyard/custom/cron_wrapper bostonrb get_tweets production ‘rake get_tweets’ */5 * * * * /engineyard/custom/cron_wrapper bostonrb get_blogs production ‘rake get_blogs’

Deployers

Josh Nichols and Dan Croak have access to the production slice.
This must be added to cron:

Contributors

Dan Croak, Josh Nichols, Harold Gimenez, Dan Pickett, Rebecca Frankel, Joe Ferris.

Design by Angelo Simeoni.