Sha256: b99ddba78b7367102e8a0125c365b8980b37c9f0ae2d53f2bafcac3502bbf13b

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

#--
# TODO: get rid of this workaround to avoid double loading on `rake test`
#++
unless Object.const_defined? "ContextR"
  if RUBY_VERSION == "1.9.0"
    require File.dirname(__FILE__) + '/activesupport/lib/active_support'
  else
    require 'rubygems'
    require 'active_support'
  end

  Dir[File.join(File.dirname(__FILE__), 'ext/**/*.rb')].sort.each { |lib| require lib }
  Dir[File.join(File.dirname(__FILE__), 'core_ext/**/*.rb')].sort.each { |lib| require lib }
  Dir[File.join(File.dirname(__FILE__), 'contextr/**/*.rb')].sort.each { |lib| require lib }

end
unless Dynamic.variables.include?( :layers )
  Dynamic.variable( :layers => [ ContextR::layer_by_symbol( :default ) ] )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contextr-0.0.3 lib/contextr.rb