[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23291] Re: [Bug #1399] Segmentation fault is raised when you use a postgres gem

From: KUBO Takehiro <kubo@...>
Date: 2009-04-23 13:14:29 UTC
List: ruby-core #23291
On Thu, Apr 23, 2009 at 6:16 PM, Dirkjan Bussink <d.bussink@gmail.com> wrote:
> The current ruby-pg / ruby-postgres gems for Windows are only compiled
> for Ruby 1.8. I don't know whether it is already possible to provide
> multiple precompiled binaries through Rubygems for 1.8 and 1.9, maybe
> anyone knows?

Ruby-oci8 2.0 gem does.

In lib/oci8.rb:
  case RUBY_VERSION
  when /^1\.9\.1/
    require 'oci8lib_191'
  when /^1\.8/
    require 'oci8lib_18'
  else
    raise 'unsupported ruby version: ' + RUBY_VERSION
  end

It includes oci8lib_191.so for ruby 1.9.1(*1) compiled by VC6 and
oci8lib_18.so for ruby 1.8(*2).
*1 http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
*2 One Click Installer

If a ruby binary gem doesn't work for 1.9, it should set required_ruby_version
in the gemspec correctly as follows:
  s.required_ruby_version = '~> 1.8.0'   # 1.8.0 <=  ruby version  < 1.9.0

In This Thread

Prev Next