cans¶ ↑
Interactive online source browser for Rack applications.
Using in Rails 3¶ ↑
Add “cans” to your Gemfile:
gem 'cans'
Mount cans in routes.rb:
mount Cans::Application.new, :at=>'/cans'
Start your Rails app, and use it a bit. Understand that cans will add an after_filter to your whole application to scrape off the file history, since development mode unloads everything after requests.
Then, visit the cans mountpoint and browse around.
Testing¶ ↑
Unit tests are in the “test/unit” directory, using “shoulda” from ThoughtBot. Run them with “rake test”.
Note on Patches/Pull Requests¶ ↑
-
Fork the project.
-
Make your feature addition or bug fix.
-
Add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
-
Send me a pull request. Bonus points for topic branches.
-
When I accept, you will get some [Razor Sharp Can Lids](picomoney.com/razor-sharp-can-lids) as a token of appreciation.
Copyright¶ ↑
Copyright © 2010-2011 Bryce Kerley. See LICENSE for details.