Sha256: 32098c229e3476b58547f90454baed692530c82c6761a785d74c86a90d95f85b

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

require 'pathname'
require 'rubygems'

__DIR__ = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift(__DIR__) unless $LOAD_PATH.include?(__DIR__)

# for Pathname /
require File.expand_path(File.join(__DIR__, 'extlib', 'pathname'))

dir = Pathname(__FILE__).dirname.expand_path / 'extlib'

require dir / "class.rb"
require dir / "object"
require dir / "object_space"

require dir / "string"
require dir / "symbol"
require dir / "hash"
require dir / "mash"
require dir / "virtual_file"
require dir / "logger"
require dir / "time"
require dir / "datetime"

require dir / 'assertions'
require dir / 'blank'
require dir / 'boolean'
require dir / 'inflection'
require dir / 'lazy_array'
require dir / 'module'
require dir / 'nil'
require dir / 'numeric'
require dir / 'blank'
require dir / 'simple_set'
require dir / 'struct'
require dir / 'symbol'

Extlib.autoload("Hook", (dir / 'hook').to_s)
Extlib.autoload("Pooling", (dir / 'pooling').to_s)

module Extlib

  def self.exiting= bool
    if bool && Extlib.const_defined?("Pooling")
      if Extlib::Pooling.scavenger?
        Extlib::Pooling.scavenger.wakeup
      end
    end
    @exiting = true
  end

  def self.exiting
    @exiting
  end

end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb
extlib-0.9.8 lib/extlib.rb
extlib-0.9.7 lib/extlib.rb
mack-facets-0.8.2 lib/gems/extlib-0.9.8/lib/extlib.rb