bond 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 0.3.1
2
+ * Fix install for non-readline platforms
3
+ * Fix install for rubinius
4
+
1
5
  == 0.3.0
2
6
  * Fixes for tests to pass in rubinius and 1.9.2.
3
7
  * Add support for a proc :eval_binding.
@@ -1,19 +1,22 @@
1
1
  require "mkmf"
2
2
 
3
+ # placate rubygems when running `make install`
4
+ def dummy_makefile
5
+ File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") {|f|
6
+ f.puts %[install:\n\techo "This is a dummy extension"]
7
+ }
8
+ end
9
+
3
10
  if RUBY_VERSION < '1.9.2'
4
11
  dir_config("readline")
5
- unless have_header('readline/readline.h')
6
- $stderr.puts "-" * 80
7
- $stderr.puts "Error! Cannot find readline/readline.h."
8
- $stderr.puts "Readline was probably installed in a non-standard directory.",
9
- "Try `gem install bond -- --with-readline-dir=/path/to/readline`."
10
- $stderr.puts "-" * 80
11
- exit 1
12
+ have_library('readline')
13
+ if !have_header('readline/readline.h')
14
+ puts "Bond was built without readline. To use it with readline: gem install bond" +
15
+ " -- --with-readline-dir=/path/to/readline"
16
+ dummy_makefile
17
+ else
18
+ create_makefile 'readline_line_buffer'
12
19
  end
13
- create_makefile 'readline_line_buffer'
14
20
  else
15
- # Create dummy Makefile to placate rubygems when running `make install`.
16
- File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") {|f|
17
- f.puts %[install:\n\techo "This is a dummy extension"]
18
- }
21
+ dummy_makefile
19
22
  end
@@ -1,3 +1,3 @@
1
1
  module Bond
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bond
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabriel Horner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-27 00:00:00 -04:00
18
+ date: 2010-10-10 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -140,7 +140,7 @@ licenses:
140
140
  post_install_message:
141
141
  rdoc_options:
142
142
  - --title
143
- - Bond 0.3.0 Documentation
143
+ - Bond 0.3.1 Documentation
144
144
  require_paths:
145
145
  - lib
146
146
  required_ruby_version: !ruby/object:Gem::Requirement