Sha256: 146851053942d45e7ba18b84d9b719f4a0069f91cf526a4b3a6ca76493441cff

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 KB

Contents

require "enumerator"
require 'utilrb/module/attr_predicate'
require 'concurrent'
require 'autobuild'
require 'autoproj/base'
require 'autoproj/exceptions'
require 'autoproj/version'
require 'autoproj/reporter'
require 'autoproj/environment'
require 'autoproj/variable_expansion'
require 'autoproj/vcs_definition'
require 'autoproj/package_set'
require 'autoproj/package_definition'
require 'autoproj/package_selection'
require 'autoproj/metapackage'
require 'autoproj/manifest'
require 'autoproj/package_manifest'
require 'autoproj/installation_manifest'
require 'autoproj/osdeps'
require 'autoproj/system'
require 'autoproj/build_option'
require 'autoproj/configuration'
require 'autoproj/options'
# Required by Workspace
require 'autoproj/ops/import'
# Required for auto-saving in import_packages
require 'autoproj/ops/snapshot'
require 'autoproj/query'

require 'autoproj/ops/tools'
require 'autoproj/ops/loader'
require 'autoproj/ops/configuration'

require 'autoproj/workspace'

require 'logger'
require 'utilrb/logger'

module Autoproj
    class << self
        attr_reader :logger
    end
    @logger = Logger.new(STDOUT)
    logger.level = Logger::WARN
    logger.formatter = lambda { |severity, time, progname, msg| "#{severity}: #{msg}\n" }
    extend Logger::Forward

    def self.warn_deprecated_level
        @warn_deprecated_level
    end

    def self.warn_deprecated_level=(level)
        @warn_deprecated_level = level
    end
    @warn_deprecated_level = 0

    def self.warn_deprecated(method, msg, level = 0)
        if level >= @warn_deprecated_level
            Autoproj.warn "#{method} is deprecated, #{msg}"
            caller.each { |l| Autoproj.warn "  #{l}" }
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc3 lib/autoproj.rb
autoproj-2.0.0.rc2 lib/autoproj.rb
autoproj-2.0.0.rc1 lib/autoproj.rb
autoproj-2.0.0.b7 lib/autoproj.rb
autoproj-2.0.0.b6 lib/autoproj.rb