Interactive online source browser for Rack applications.
JavaScript Ruby CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
spec/javascripts
test
tmp
.document
.gitignore
Gemfile
LICENSE
README.rdoc
Rakefile
cans.gemspec
config.ru

README.rdoc

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.