bin/irt in irt-1.2.1 vs bin/irt in irt-1.2.2

- old
+ new

@@ -5,11 +5,11 @@ require 'rubygems' require 'fileutils' require 'optparse' require 'irt/utils' -copy = IRT::Utils.copyright +copy = IRT.copyright options = {} optparse = OptionParser.new do |opts| @@ -43,11 +43,11 @@ opts.on( '-n', '--no-rails', 'Does not autoload the Rails Environment' ) do options[:no_rails] = true end opts.on( '-v', '--version', 'Shows the version and exits' ) do - puts IRT::Utils.version + puts IRT.version exit end opts.on( '-h', '--help', 'Display this screen' ) do puts copy @@ -61,11 +61,11 @@ puts copy paths = if ARGV.empty? options[:interactive_eof] = true - [ IRT::Utils.create_tmp_file ] + [ IRT.create_tmp_file ] else ARGV.map {|p| File.expand_path(p) } end files = paths.map do |path| @@ -90,10 +90,10 @@ gemfile = File.read('Gemfile') unless gemfile.match(/\bgem\b.+\birt\b/) IRT::Prompter.say_warning %(The Gemfile doesn't look to include any 'gem "irt"' statement.\nIRT will probably not work until you add it!) IRT::Prompter.yes?("Do you want to add irt to your Gemfile?", :hint => '[enter=y|n]', :default => 'y') do File.open('Gemfile', 'a') do |f| - f.puts %(gem "irt") + f.puts %(\ngem "irt") end end end 'rails c %s %s %s' elsif File.exists?('./script/console')