Sha256: 18852a18e013dda2829632bfa747401c01f70721ac8776e27f6eab3d7925dad6

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: false

def digest_conf(name)
  unless with_config("bundled-#{name}")
    cc = with_config("common-digest")
    if cc == true or /\b#{name}\b/ =~ cc
      if File.exist?("#$srcdir/#{name}cc.h") and
        have_header("CommonCrypto/CommonDigest.h")
        $defs << "-D#{name.upcase}_USE_COMMONDIGEST"
        $headers << "#{name}cc.h"
        return :commondigest
      end
    end
  end
  $objs << "#{name}.#{$OBJEXT}"
  return
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/digest-3.1.0/ext/digest/digest_conf.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/digest-3.1.0/ext/digest/digest_conf.rb
digest-3.1.0 ext/digest/digest_conf.rb
digest-3.1.0.pre3 ext/digest/digest_conf.rb
digest-3.1.0.pre2 ext/digest/digest_conf.rb
digest-3.1.0.pre1 ext/digest/digest_conf.rb
digest-3.1.0.pre0 ext/digest/digest_conf.rb
digest-3.0.0 ext/digest/digest_conf.rb
digest-1.0.0 ext/digest/digest_conf.rb