lib/treasurer.rb in treasurer-0.1.0 vs lib/treasurer.rb in treasurer-0.2.0

- old
+ new

@@ -89,18 +89,22 @@ # This function gets called before every command # and allows arbitrary manipulation of the command # options (copts) hash def setup(copts) # None neededed + copts[:b] = copts[:b].to_i + copts[:a] = copts[:a].to_i + copts[:t] = Date.parse(copts[:t]) if copts[:t] end def verbosity 2 end end SCRIPT_FOLDER = folder = File.dirname(File.expand_path(__FILE__)) end $has_put_startup_message_for_code_runner = true +require 'date' require 'coderunner' require 'treasurer/commands.rb' require 'treasurer/report.rb' require 'treasurer/analysis.rb'