readline_buffer 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md ADDED
@@ -0,0 +1,10 @@
1
+ # readline_buffer CHANGES
2
+
3
+ ## readline_buffer 0.9.1 -- 2011-08-19
4
+
5
+ * Fixed a segfault whenever rl_line_buffer is NULL
6
+ * Return nil if rl_line_buffer is NULL
7
+
8
+ ## readline_buffer 0.9.0 -- 2011-08-18
9
+
10
+ * Birthday
@@ -9,6 +9,9 @@ static VALUE readline_buffer_ext(VALUE self, VALUE str){
9
9
  rb_secure(4);
10
10
  StringValue(str);
11
11
 
12
+ if(rl_line_buffer == NULL)
13
+ return Qnil;
14
+
12
15
  rl_delete_text(0, rl_end);
13
16
  rl_insert_text(RSTRING_PTR(str));
14
17
  rl_redisplay();
@@ -1,4 +1,4 @@
1
1
 
2
2
  module ReadlineBuffer
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
@@ -2,19 +2,21 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{readline_buffer}
5
- s.version = "0.9.0"
5
+ s.version = "0.9.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Lin Jen-Shin (godfat)}]
9
- s.date = %q{2011-08-18}
9
+ s.date = %q{2011-08-19}
10
10
  s.description = %q{Let you manipulate Readline.line_buffer
11
11
 
12
12
  Note, only GNU Readline is supported}
13
13
  s.email = [%q{godfat (XD) godfat.org}]
14
14
  s.extensions = [%q{ext/readline_buffer_ext/extconf.rb}]
15
+ s.extra_rdoc_files = [%q{CHANGES.md}]
15
16
  s.files = [
16
17
  %q{.gitignore},
17
18
  %q{.gitmodules},
19
+ %q{CHANGES.md},
18
20
  %q{README},
19
21
  %q{README.md},
20
22
  %q{Rakefile},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readline_buffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
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: 2011-08-18 00:00:00.000000000Z
12
+ date: 2011-08-19 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: ! 'Let you manipulate Readline.line_buffer
15
15
 
@@ -20,10 +20,12 @@ email:
20
20
  executables: []
21
21
  extensions:
22
22
  - ext/readline_buffer_ext/extconf.rb
23
- extra_rdoc_files: []
23
+ extra_rdoc_files:
24
+ - CHANGES.md
24
25
  files:
25
26
  - .gitignore
26
27
  - .gitmodules
28
+ - CHANGES.md
27
29
  - README
28
30
  - README.md
29
31
  - Rakefile