Sha256: c13781d40a4401eb5b149f1a4b1d078f14ca18f6118bfe24d0f43e1ca7400004

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

require 'yaml'
require 'pathname'
require 'rubygems'
require 'json'
require 'active_support/ordered_hash'
require 'active_support/core_ext/module/delegation'
require 'rgl/adjacency'
require 'rgl/topsort'

require 'fileutils'
require 'pathname'

#
# Jsus -- your better javascript packager.
#
module Jsus
  autoload :SourceFile, 'jsus/source_file'
  autoload :Package,    'jsus/package'
  autoload :Tag,        'jsus/tag'
  autoload :Container,  'jsus/container'
  autoload :Packager,   'jsus/packager'
  autoload :Pool,       'jsus/pool'
  autoload :Util,       'jsus/util'
  autoload :Middleware, 'jsus/middleware'

  # In verbose mode jsus shows a lot of warnings like missing dependencies.
  # Default: false
  #
  # @return [Boolean] jsus verbosity mode
  # @api public
  def self.verbose?
    !!@verbose
  end

  # @see .verbose?
  # @param [Boolean] verbose verbose verbosity mode
  # @api public
  def self.verbose=(verbose)
    @verbose = verbose
  end

  # @return [String] Jsus version
  # @api public
  def self.version
    @version ||= File.read(File.dirname(__FILE__) + "/../VERSION")
  end


  # Circular dependencies cannot be resolved and lead to "impossible"
  # situations and problems, like missing source files or incorrect ordering.
  #
  # However, checking for cycles is quite computationally expensive, which
  # is why you may want to disable it in production mode.
  #
  # @return [Boolean]
  # @api public
  def self.look_for_cycles?
    @look_for_cycles == nil ? true : @look_for_cycles
  end

  # @see .look_for_cycles?
  # @param [Boolean]
  def self.look_for_cycles=(value)
    @look_for_cycles = value
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jsus-0.3.3 lib/jsus.rb
jsus-0.3.2 lib/jsus.rb