Sha256: 1edca8dd58ca12c7f15026b47ea2983657893cd0fb8deb79e6180e9e3e3ee09c

Contents?: true

Size: 901 Bytes

Versions: 39

Compression:

Stored size: 901 Bytes

Contents

#!/usr/bin/env ruby
# The compass command line utility

# This allows compass to run easily from a git checkout without install.
def fallback_load_path(path)
  retried = false
  begin
    yield
  rescue LoadError
    unless retried
      $: << path
      retried = true
      retry
    end
    raise
  end
end

fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
  require 'compass'
  require 'compass/exec'
end

if defined?(Bundler)
  require 'bundler/shared_helpers'
  Bundler.require :assets if Bundler::SharedHelpers.in_bundle?
end

runner = Proc.new do
  Compass::Exec::SubCommandUI.new(ARGV).run!
end

if ARGV.delete("--profile")
  require 'ruby-prof'
  RubyProf.start
  exit_code = runner.call
  result = RubyProf.stop

  # Print a flat profile to text
  printer = RubyProf::FlatPrinter.new(result)
  printer.print(STDERR, 0)
  exit exit_code
else
  exit runner.call || 1
end

Version data entries

39 entries across 38 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-1.0.3/bin/compass
compass-1.0.3 bin/compass
compass-1.1.0.alpha.3 bin/compass
compass-1.1.0.alpha.2 bin/compass
compass-1.1.0.alpha.1 bin/compass
compass-1.1.0.alpha.0 bin/compass
compass-1.0.1 bin/compass
compass-1.0.0 bin/compass
compass-1.0.0.rc.1 bin/compass
compass-1.0.0.rc.0 bin/compass
compass-0.12.7 bin/compass
compass-1.0.0.alpha.21 bin/compass
compass-1.0.0.alpha.20 bin/compass
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/bin/compass
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/bin/compass
compass-0.12.6 bin/compass
compass-0.12.5 bin/compass
compass-0.12.4 bin/compass
compass-1.0.0.alpha.19 bin/compass
compass-0.12.3 bin/compass