irbrc warnings in Leopard

Bedirbant su Ruby on Rails Leopard'e konsolėje ties kiekviena užklausa pasirodo šis klaidos pranešimas:

[code]
/etc/irbrc:14: warning: already initialized constant HISTFILE
/etc/irbrc:15: warning: already initialized constant MAXHISTSIZE
[/code]

Norint jo atsikratyti reikia ~/.irbrc byloje įrašyti:
[code]
require 'irb/completion'
require 'irb/ext/save-history'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
[/code]

Leave a Comment