Sha256: acfab93035a71862986df13744c0b99c867fc93cd76bd52215fb243ba2d23ba0
Contents?: true
Size: 946 Bytes
Versions: 2
Compression:
Stored size: 946 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compass-sourcemaps-0.12.3.sourcemaps.a4836f1 | bin/compass |
compass-sourcemaps-0.12.2.sourcemaps.57a186c | bin/compass |