This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
flogger /
| name | age | message | |
|---|---|---|---|
| |
.cvsignore | Thu Sep 11 01:44:21 -0700 2008 | |
| |
.gitignore | Thu Sep 11 00:05:01 -0700 2008 | |
| |
README | Thu Sep 11 02:41:38 -0700 2008 | |
| |
Rakefile | Thu Sep 11 00:05:01 -0700 2008 | |
| |
flogger.gemspec | Thu Sep 11 03:56:27 -0700 2008 | |
| |
lib/ | Thu Sep 11 03:56:27 -0700 2008 | |
| |
test/ | Thu Sep 11 02:41:38 -0700 2008 |
README
= flogger
== What is it
It's a test/unit extension so you can unit test your flog scores
== Installation
sudo gem install flog
sudo gem install simplificator-flogger
== usage
In your unit tests do
def test_something
assert_flog(a_file_or_a_dir)
end
= Samples:
== Flog a file or all ruby files in a directory
assert_flog(file_or_dir)
== Flog several files or directories
assert_flog(file_or_dir_1, file_or_dir_2, file_or_fir_n)
== set your own flog threshold
assert_flog(file_or_dir, :threshold => 20)
== set your own flog threshold for a specific method
assert_flog(file_or_dir, :thresholds => {'FooClass#bar_method'})
= Credits
Thanks to the ruby sadists at http://ruby.sadi.st/Ruby_Sadist.html
= More
See lib/flogger/assertions.rb for more
= About us
Simplificator writes Ruby and Ruby on Rails apps for a living.
http://simplificator.com






