Sha256: 8f33e876f0ae34041c0ecd2b0a919a1ba9195618973c2de72ea3ca37b2f9f7af
Contents?: true
Size: 1.24 KB
Versions: 7
Compression:
Stored size: 1.24 KB
Contents
require 'micronaut/mocking/with_absolutely_nothing' require 'micronaut/matchers' require 'micronaut/expectations' require 'micronaut/world' require 'micronaut/configuration' require 'micronaut/runner' require 'micronaut/example' require 'micronaut/behaviour' require 'micronaut/kernel_extensions' require 'micronaut/formatters' module Micronaut file = if RUBY_VERSION =~ /^1\.9/ then # bt's expanded, but __FILE__ isn't :( File.expand_path __FILE__ elsif __FILE__ =~ /^[^\.]/ then # assume both relative require 'pathname' pwd = Pathname.new(Dir.pwd) path_name = Pathname.new(File.expand_path(__FILE__)) path_name = File.join(".", path_name.relative_path_from(pwd)) unless path_name.relative? path_name.to_s else # assume both are expanded __FILE__ end # './lib' in project dir, or '/usr/local/blahblah' if installed InstallDirectory = File.expand_path(File.dirname(File.dirname(file)) + "/lib") def self.configuration @configuration ||= Micronaut::Configuration.new end def self.configure yield configuration configuration.autorun! end def self.world @world ||= Micronaut::World.new end end
Version data entries
7 entries across 7 versions & 1 rubygems