bin/railroady in railroady-1.3.0 vs bin/railroady in railroady-1.3.1

- old
+ new

@@ -17,17 +17,17 @@ # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'railroady' -APP_NAME = "railroady" -APP_HUMAN_NAME = "RailRoady" +APP_NAME = 'railroady' +APP_HUMAN_NAME = 'RailRoady' # APP_VERSION = [RailRoady::VERSION::MAJOR, RailRoady::VERSION::MINOR, RailRoady::VERSION::PATCH] APP_VERSION = RailRoady::VERSION -COPYRIGHT = "Copyright (C) 2007-2008 Javier Smaldone, 2009 Peter Hoeg, 2010 Preston Lee" +COPYRIGHT = 'Copyright (C) 2007-2008 Javier Smaldone, 2009 Peter Hoeg, 2010 Preston Lee' -options = OptionsStruct.new({:app_name => APP_NAME, :app_human_name => APP_HUMAN_NAME, :app_version =>APP_VERSION, :copyright =>COPYRIGHT}) +options = OptionsStruct.new(app_name: APP_NAME, app_human_name: APP_HUMAN_NAME, app_version: APP_VERSION, copyright: COPYRIGHT) options.parse ARGV # puts "OPTS!!!" # puts options @@ -42,18 +42,17 @@ when 'controllers' diagram = ControllersDiagram.new options when 'aasm' diagram = AasmDiagram.new(options) else - STDERR.print "#{APP_HUMAN_NAME} v#{APP_VERSION}\n" + - "Error: You must supply a command\n" + + STDERR.print "#{APP_HUMAN_NAME} v#{APP_VERSION}\n" \ + "Error: You must supply a command\n" \ " (try #{APP_NAME} -h)\n\n" exit 1 end diagram.process diagram.generate Dir.chdir(old_dir) diagram.print -