Permalink
Browse files

Update Sass, Compass, Susy

  • Loading branch information...
1 parent 70510ce commit 4d3627268dd5ec03f2d2b4bbae849bb566e07b5e @andreyvit andreyvit committed Aug 13, 2014
Showing 913 changed files with 86,556 additions and 0 deletions.
@@ -0,0 +1,29 @@
+Copyright (c) 2009 Christopher M. Eppstein
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+No attribution is required by products that make use of this software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name(s) of the above copyright
+holders shall not be used in advertising or otherwise to promote the sale,
+use or other dealings in this Software without prior written authorization.
+
+Contributors to this project agree to grant all rights to the copyright
+holder of the primary product. Attribution is maintained in the source
+control history of the product.
@@ -0,0 +1,31 @@
+# Compass Stylesheet Authoring Framework
+
+Build Status: [![Build Status](https://travis-ci.org/chriseppstein/compass.png)](https://travis-ci.org/chriseppstein/compass)
+
+Code Quality: [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/chriseppstein/compass)
+
+## Resources
+
+* [Compass Homepage](http://compass-style.org/)
+* [Installing Compass](http://compass-style.org/install/)
+* [Compass Reference](http://compass-style.org/install/reference/)
+
+## Author
+Compass is written by [Chris Eppstein](http://chriseppstein.github.com/).<br>
+Chris is the Software Architect of [Caring.com](http://caring.com) and a member of the [Sass](https://github.com/nex3/sass) core team.
+
+## Core Team Members
+
+* [Scott Davis](https://github.com/scottdavis)
+* [Eric Meyer](https://github.com/ericam)
+* [Brandon Mathis](https://github.com/imathis)
+* [Anthony Short](https://github.com/anthonyshort/)
+
+## Major Contributors
+
+* [Nico Hagenburger](https://github.com/hagenburger)
+
+## License
+Copyright (c) 2008-2009 Christopher M. Eppstein<br>
+All Rights Reserved.<br>
+Released under a [slightly modified MIT License](compass/blob/stable/LICENSE.markdown).
@@ -0,0 +1,157 @@
+require 'rubygems'
+if ENV["PKG"]
+ $: << File.expand_path(File.dirname(__FILE__))+"/lib"
+else
+ require 'bundler'
+ Bundler.setup
+end
+
+begin
+ require 'rake/dsl_definition'
+rescue LoadError
+ #pass
+end
+require 'compass'
+
+# ----- Default: Testing ------
+
+task :default => [:test, :features]
+
+require 'rake/testtask'
+require 'fileutils'
+
+begin
+require 'cucumber'
+require 'cucumber/rake/task'
+
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = "features --format progress"
+end
+rescue LoadError
+ $stderr.puts "cannot load cucumber"
+end
+
+Rake::TestTask.new :test do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ test_files = FileList['test/**/*_test.rb']
+ test_files.exclude('test/rails/*', 'test/haml/*')
+ t.test_files = test_files
+ t.verbose = true
+end
+Rake::Task[:test].send(:add_comment, <<END)
+To run with an alternate version of Rails, make test/rails a symlink to that version.
+To run with an alternate version of Haml & Sass, make test/haml a symlink to that version.
+END
+
+Rake::TestTask.new :units do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ test_files = FileList['test/units/**/*_test.rb']
+ test_files.exclude('test/rails/*', 'test/haml/*')
+ t.test_files = test_files
+ t.verbose = true
+end
+
+
+desc "Compile Examples into HTML and CSS"
+task :examples do
+ linked_haml = "tests/haml"
+ if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
+ puts "[ using linked Haml ]"
+ $:.unshift linked_haml + '/lib'
+ end
+ require 'haml'
+ require 'sass'
+ require 'pathname'
+ require 'compass'
+ require 'compass/exec'
+ FileList['examples/*'].each do |example|
+ next unless File.directory?(example)
+ puts "\nCompiling #{example}"
+ puts "=" * "Compiling #{example}".length
+ Dir.chdir example do
+ load "bootstrap.rb" if File.exists?("bootstrap.rb")
+ Compass::Exec::SubCommandUI.new(%w(compile --force)).run!
+ end
+ # compile any haml templates to html
+ FileList["#{example}/**/*.haml"].each do |haml_file|
+ basename = haml_file[0..-6]
+ engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file)
+ puts " haml #{File.basename(basename)}"
+ output = open(basename,'w')
+ output.write(engine.render)
+ output.close
+ end
+ end
+end
+
+namespace :examples do
+ desc "clean up the example directories"
+ task :clean do
+ puts "Cleaning Examples"
+ Dir.glob('examples/*/clean.rb').each do |cleaner|
+ load cleaner
+ end
+ end
+end
+
+task "gemspec:generate" => "examples:clean"
+
+namespace :git do
+ task :clean do
+ sh "git", "clean", "-fdx"
+ end
+end
+
+
+begin
+ require 'cucumber/rake/task'
+ require 'rcov/rcovtask'
+ namespace :rcov do
+ Cucumber::Rake::Task.new(:cucumber) do |t|
+ t.rcov = true
+ t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data}
+ t.rcov_opts << %[-o "coverage"]
+ end
+
+ Rcov::RcovTask.new(:units) do |rcov|
+ rcov.libs << 'lib'
+ test_files = FileList['test/**/*_test.rb']
+ test_files.exclude('test/rails/*', 'test/haml/*')
+ rcov.pattern = test_files
+ rcov.output_dir = 'coverage'
+ rcov.verbose = true
+ rcov.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data}
+ rcov.rcov_opts << %[-o "coverage" --sort coverage]
+ end
+
+
+ desc "Run both specs and features to generate aggregated coverage"
+ task :all do |t|
+ rm "coverage.data" if File.exist?("coverage.data")
+ Rake::Task["rcov:units"].invoke
+ Rake::Task["rcov:cucumber"].invoke
+ end
+ end
+rescue LoadError => e
+ puts "WARNING: #{e}"
+end
+
+begin
+ require 'packager/rake_task'
+ require 'compass/version'
+ # Building a package:
+ # 1. Get packager installed and make sure your system is setup correctly according to their docs.
+ # 2. Make sure you are actually using a universal binary that has been nametooled.
+ # 3. PKG=1 OFFICIAL=1 rake packager:pkg
+ Packager::RakeTask.new(:pkg) do |t|
+ t.package_name = "Compass"
+ t.version = Compass::VERSION
+ t.domain = "compass-style.org"
+ t.bin_files = ["compass"]
+ t.resource_files = FileList["frameworks/**/*"] + ["VERSION.yml", "LICENSE.markdown"]
+ end
+rescue LoadError => e
+ puts "WARNING: #{e}"
+end
@@ -0,0 +1,45 @@
+#!/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
Oops, something went wrong.

0 comments on commit 4d36272

Please sign in to comment.