lib/archer.rb in archer-rails-0.2.0 vs lib/archer.rb in archer-rails-0.2.1

- old
+ new

@@ -1,10 +1,11 @@ # dependencies require "active_support/core_ext/module/attribute_accessors" # modules require "archer/engine" if defined?(Rails) +require "archer/irb" require "archer/version" module Archer autoload :History, "archer/history" @@ -12,10 +13,11 @@ self.limit = 200 mattr_accessor :user self.user = ENV["USER"] + # TODO remove in 0.3.0 mattr_accessor :history_file def self.clear quietly do Archer::History.where(user: user).delete_all @@ -35,12 +37,10 @@ warn "[archer] Create table to enable history" end if history commands = history.commands.split("\n") - # can't use reline? yet, so push to all - Readline::HISTORY.push(*commands) if defined?(Readline) - Reline::HISTORY.push(*commands) if defined?(Reline) + history_object.push(*commands) end end def self.save quietly do