Sha256: 8b89d7148fcbaed67c9f3a69a9c8b1a9ce281fd7f8ba50931af7953fb9fe94a2
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
Yardstick 0.0.1 =============== Synopsis -------- Yardstick is a tool that verifies YARD coverage of ruby code. It will measure the source and provide feedback on what is missing from the documentation and what can be improved. Installation ------------ From Gem: $ sudo gem install dkubb-yardstick --source http://gems.github.com/ With a local working copy: $ git clone git://github.com/dkubb/yardstick.git $ cd yardstick $ rake build && sudo rake install Usage ----- Yardstick may be used two ways: **1. yardstick Command-line Tool** This is the simplest way to run yardstick. Provide it a list of files and it will measure all of them and output suggestions for improvement, eg: $ yardstick lib/**/*.rb **2. Yardstick Libraries** Yardstick comes with several libraries that will allow you to process lists of files, or String code fragments, eg: # measure a list of file paths measurements = Yardstick.measure(paths) # measure a code fragment measurements = Yardstick.measure_string <<-RUBY # Displays the message provided to stdout # # @param [#to_str] message # the message to display # # @return [undefined] # # @api public def display(message) puts message.to_str end RUBY TODO ---- - Add more measurements, especially for @param, @yield and type validation - Create a Rake task to allow integration of Yardstick into build processes more easily Copyright (c) 2009 Dan Kubb. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dkubb-yardstick-0.1.0 | README.markdown |