readline-ng 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +10 -0
  2. data/lib/readline-ng.rb +2 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,3 +7,13 @@ end
7
7
 
8
8
  desc 'Default: run specs'
9
9
  task :default => :spec
10
+
11
+ task(:build) do
12
+ sh "gem build readline-ng.gemspec"
13
+ end
14
+
15
+ task(:clean) do
16
+ Dir["*.gem"].each do |gem|
17
+ sh "rm #{gem}"
18
+ end
19
+ end
data/lib/readline-ng.rb CHANGED
@@ -2,7 +2,7 @@ module ReadlineNG
2
2
 
3
3
  VERSION_MAJOR = 0
4
4
  VERSION_MINOR = 0
5
- VERSION_PATCH = 6
5
+ VERSION_PATCH = 7
6
6
  VERSION = "#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_PATCH}"
7
7
 
8
8
  CONTROL_BS = "\x08"
@@ -123,6 +123,7 @@ module ReadlineNG
123
123
  end
124
124
 
125
125
  def reset
126
+ backspace(@buf.length)
126
127
  @index, @buf = 0, ""
127
128
  end
128
129
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readline-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-27 00:00:00.000000000 Z
12
+ date: 2012-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec