bin/irt in irt-1.3.0 vs bin/irt in irt-1.3.1
- old
+ new
@@ -68,11 +68,11 @@
ARGV.map {|p| File.expand_path(p) }
end
files = paths.map do |path|
unless File.exists?(path)
- next if IRT::Prompter.no? %(Do you want to create the file "#{path}"?), :hint => '[<enter=y|n]', :default => 'y'
+ next if IRT::Prompter.no? %(Do you want to create the file "#{path}"?), :hint => '[<enter>=y|n]', :default => 'y'
options[:interactive_eof] = true
dirname = File.dirname(path)
FileUtils.mkdir_p(dirname) unless File.directory?(dirname)
File.open(path, 'w') {|f| f.puts "\n" } # one empty line makes irb of 1.9.2 happy
end
@@ -88,10 +88,10 @@
if File.exists?('./script/rails')
gemfile_path = ENV['BUNDLE_GEMFILE'] || 'Gemfile'
gemfile = File.read(gemfile_path)
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
+ IRT::Prompter.yes?("Do you want to add irt to your Gemfile?", :hint => '[<enter>=y|n]', :default => 'y') do
File.open(gemfile_path, 'a') do |f|
f.puts %(\ngem "irt")
end
end
end