Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jul 30 18:03:11 -0700 2009 | |
| |
Capfile | Tue May 27 18:34:06 -0700 2008 | |
| |
README.textile | Wed Jun 17 21:38:27 -0700 2009 | |
| |
Rakefile | Sat May 02 10:31:57 -0700 2009 | |
| |
app/ | ||
| |
config/ | ||
| |
db/ | Wed Jul 29 06:34:43 -0700 2009 | |
| |
doc/ | Sat May 16 13:57:35 -0700 2009 | |
| |
features/ | Wed Jul 29 11:34:57 -0700 2009 | |
| |
lib/ | Mon May 25 22:15:46 -0700 2009 | |
| |
log/ | Wed May 28 20:48:55 -0700 2008 | |
| |
public/ | Tue Jul 28 11:56:26 -0700 2009 | |
| |
script/ | Thu May 21 00:29:23 -0700 2009 | |
| |
test/ | Thu Jul 30 18:29:51 -0700 2009 | |
| |
vendor/ | Thu Jul 30 18:02:55 -0700 2009 |
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.0Tests
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-rdocSince 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.comCron
The following rake tasks need to be configured to keep data fresh:
rake RAILS_ENV=production get_tweets rake RAILS_ENV=production get_blogsFor 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.








