ripl 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/lib/ripl/history.rb +2 -2
- data/lib/ripl/version.rb +1 -1
- data/test/history_test.rb +1 -0
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/lib/ripl/history.rb
CHANGED
@@ -17,8 +17,8 @@ module Ripl::History
|
|
17
17
|
def write_history
|
18
18
|
File.open(history_file, 'w') {|f| f.write Array(history).join("\n") }
|
19
19
|
end
|
20
|
-
def before_loop() read_history end
|
21
|
-
def after_loop() write_history end
|
20
|
+
def before_loop() super; read_history end
|
21
|
+
def after_loop() super; write_history end
|
22
22
|
end
|
23
23
|
Ripl::Shell.include Ripl::History
|
24
24
|
Ripl.config[:history] = '~/.irb_history'
|
data/lib/ripl/version.rb
CHANGED
data/test/history_test.rb
CHANGED
@@ -50,6 +50,7 @@ describe "History with readline" do
|
|
50
50
|
mod = Object.const_set "Ping_read_history", Module.new
|
51
51
|
mod.send(:define_method, 'read_history') { @history = ['pong_read_history'] }
|
52
52
|
Shell.send :include, mod
|
53
|
+
stub(Ripl::Runner).load_rc
|
53
54
|
shell.before_loop
|
54
55
|
shell.history.should == ['pong_read_history']
|
55
56
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ripl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gabriel Horner
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-10 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|