mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
* ext/digest/sha2/lib/sha2.rb: Darwin uses ".bundle", but not ".so", for the filename extension part of native libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e8c346abc
commit
c07c5e1e9f
2 changed files with 11 additions and 2 deletions
|
@ -10,7 +10,11 @@
|
|||
# $Id$
|
||||
|
||||
require 'digest'
|
||||
require 'digest/sha2.so'
|
||||
begin
|
||||
require 'digest/sha2.so'
|
||||
rescue LoadError
|
||||
require 'digest/sha2.bundle'
|
||||
end
|
||||
|
||||
module Digest
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue