ripl 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 0.5.1
2
+ Fix History methods missing super
3
+
1
4
  == 0.5.0
2
5
  * Minor changes to History#read_history
3
6
 
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Ripl
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -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.0
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-08 00:00:00 -04:00
13
+ date: 2011-08-10 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency