ripl-auto_indent 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/lib/ripl/auto_indent.rb +2 -2
  3. metadata +3 -3
@@ -1,3 +1,6 @@
1
+ == 0.1.3
2
+ * Fixed "ArgumentError: comparison of Fixnum with nil failed"
3
+
1
4
  == 0.1.2
2
5
  * Fix for modifier statements
3
6
 
@@ -5,7 +5,7 @@ require 'set'
5
5
 
6
6
  module Ripl
7
7
  module AutoIndent
8
- VERSION = '0.1.2'
8
+ VERSION = '0.1.3'
9
9
  TPUT = {
10
10
  :sc => `tput sc`, # save current cursor position
11
11
  :cuu1 => `tput cuu1`, # move cursor on line upwards
@@ -62,7 +62,7 @@ module Ripl
62
62
  end
63
63
 
64
64
  def loop_eval(input)
65
- last_indent = @current_indent
65
+ last_indent = ( @current_indent ||= 0 )
66
66
  @current_indent = get_indent( @buffer ? @buffer*";"+";"+input : input )
67
67
 
68
68
  if config[:auto_indent_rewrite] && @current_indent < last_indent
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Lelis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-13 00:00:00 +01:00
17
+ date: 2010-12-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency