Skip to content
Browse files

+ 4.5.3, + test for the existence of RbConfig before using it when co…

…mpiling the C code.
  • Loading branch information...
1 parent 7d429d4 commit d03c23d661662f73069eeff8680b8e8a5803692a @floere committed
Showing with 15 additions and 3 deletions.
  1. +4 −0 history.textile
  2. +10 −2 server/lib/picky/ext/ruby19/extconf.rb
  3. +1 −1 version.rb
View
4 history.textile
@@ -1,5 +1,9 @@
h2. Upcoming Version
+h2. Version 4.5.3 "hero koo koo"
+
+* hanke: (server) CHeck for the existence of @RbConfig@ before compiling.
+
h2. Version 4.5.2 "statistically probable"
* hanke: (statistics) New experimental statistics interface. Run @picky stats@ to get the usage.
View
12 server/lib/picky/ext/ruby19/extconf.rb
@@ -1,6 +1,14 @@
-RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
+# Information.
+#
+print "Compiling on Ruby 1.9"
+if defined?(RbConfig)
+ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
+ print " with CC set to #{RbConfig::MAKEFILE_CONFIG['CC']}"
+end
+puts "."
-puts "Compiling on Ruby 1.9 with CC set to #{RbConfig::MAKEFILE_CONFIG['CC']}."
+# Compile.
+#
require 'mkmf'
abort 'need ruby.h' unless have_header("ruby.h")
View
2 version.rb
@@ -1,3 +1,3 @@
module Picky
- VERSION = '4.5.2'
+ VERSION = '4.5.3'
end

0 comments on commit d03c23d

Please sign in to comment.
Something went wrong with that request. Please try again.