Sha256: 5b28c1484f60420dd7d79922c246eb323165b000215ead6f95dde3a81cff3887
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
require 'micronaut/mocking' require 'micronaut/matchers' require 'micronaut/expectations' require 'micronaut/world' require 'micronaut/configuration' require 'micronaut/runner' require 'micronaut/runner_options' 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 end end
Version data entries
7 entries across 7 versions & 2 rubygems