README.rdoc in tailor-1.0.1 vs README.rdoc in tailor-1.1.0

- old
+ new

@@ -90,11 +90,17 @@ $ tailor test/**/*.rb Check defaults (lib/**/*.rb): $ tailor + +Use defaults via a Rake task: + require 'tailor/rake_task' + + Tailor::RakeTask.new + ==== On style... The features list, above, shows some aspects of style that should be fairly straightforward (as to their meaning and reason), however, others make some big assumptions--particularly the indentation checking "ruler". There are a number @@ -222,11 +228,11 @@ # .tailor Tailor.config do |config| # All defaults; implies "default" label - config.file_set 'lib/**/*.rb + config.file_set 'lib/**/*.rb' config.file_set 'app/**/*.rb', :rails_app do |style| style.max_line_length 100 # All other rulers will use default values end @@ -238,9 +244,19 @@ style.spaces_after_lbrace false style.spaces_before_lbrace false style.spaces_before_rbrace false # All other rulers will use default values end + end + +If it suits you better, use "recursive file sets" to get all matching files +in your current path. If you wanted to critique all .rb files: + + # .tailor + Tailor.config do |config| + + # All defaults; implies "default" label + config.recursive_file_set '*.rb' end Similarly to the CLI, if you want to turn off a default Ruler, set its problem level to +:off+: