Sha256: ca00a1bef7e68b1cf4600841b3b02c3323712362762a5d32dead4b3ec56580a8

Contents?: true

Size: 968 Bytes

Versions: 52

Compression:

Stored size: 968 Bytes

Contents

if RUBY_PLATFORM == "java"
  # Don't do anything when run in JRuby; this allows gem installation to pass.
  # We need to write a dummy Makefile so that RubyGems doesn't think compilation
  # failed.
  File.open('Makefile', 'w') do |f|
    f.puts "all:"
    f.puts "\t@true"
    f.puts "install:"
    f.puts "\t@true"
  end
  exit 0
elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
  # Maglev doesn't support C extensions, fall back to compiling an FFI usable
  # library
  File.open('Makefile', 'w') do |f|
    f.puts <<-MAKEFILE
CFLAGS = -fPIC
OBJS = bcrypt.o blowfish.o
DLIB = bcrypt_ext.so
OS ?= $(strip $(shell uname -s | tr '[:upper:]' '[:lower:]'))
ifeq ($(OS),darwin)
	DLIB = bcrypt_ext.dylib
	CFLAGS += -dynamiclib
endif

all: $(OBJS)
	cc -shared -o $(DLIB) $(OBJS)
install:
	install $(DLIB) "../../lib/"
clean:
	$(RM) $(OBJS) bcrypt_ext.so
    MAKEFILE
  end
  exit 0
else
  require "mkmf"
  dir_config("bcrypt_ext")
  create_makefile("bcrypt_ext")
end

Version data entries

52 entries across 49 versions & 5 rubygems

Version Path
challah-1.0.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-1.0.0.beta3 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-1.0.0.beta2 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-1.0.0.beta vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.9.1.beta.3 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
devise_sociable-0.1.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.9.1.beta vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.9.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.8.3 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.8.1 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-rolls-0.1.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.8.0.pre vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.7.1 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.7.0 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb
challah-0.7.0.pre2 vendor/bundle/gems/bcrypt-ruby-3.0.1/ext/mri/extconf.rb