Permalink
Browse files

Renamed to Bourbon. Fix for rails 3.1

  • Loading branch information...
1 parent 0b350f3 commit bacdaf50fcd12a9bade5eb38d38fded93fc4b6fd Phil LaPier committed Jul 3, 2011
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in sass-mixins.gemspec
+gemspec
View
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
View
@@ -1,18 +0,0 @@
-// Custom Functions
-@import "functions/compact", "functions/tint-shade";
-
-// CSS3 Mixins
-@import "animation";
-@import "border-radius";
-@import "box-shadow";
-@import "box-sizing";
-@import "flex-box";
-@import "inline-block";
-@import "linear-gradient";
-@import "radial-gradient";
-@import "transform";
-@import "transition";
-@import "position";
-
-// Addons & other mixins
-@import "addons/button";
View
@@ -1,30 +0,0 @@
-@mixin position ($position: relative, $coordinates: 0 0 0 0) {
-
- @if type-of($position) == list {
- $coordinates: $position;
- $position: relative;
- }
-
- $top: nth($coordinates, 1);
- $right: nth($coordinates, 2);
- $bottom: nth($coordinates, 3);
- $left: nth($coordinates, 4);
-
- position: $position;
-
- @if not(unitless($top)) {
- top: $top;
- }
-
- @if not(unitless($right)) {
- right: $right;
- }
-
- @if not(unitless($bottom)) {
- bottom: $bottom;
- }
-
- @if not(unitless($left)) {
- left: $left;
- }
-}
@@ -0,0 +1,18 @@
+// Custom Functions
+@import "functions/compact";
+@import "functions/tint-shade";
+
+// CSS3 Mixins
+@import "css3/animation";
+@import "css3/border-radius";
+@import "css3/box-shadow";
+@import "css3/box-sizing";
+@import "css3/flex-box";
+@import "css3/inline-block";
+@import "css3/linear-gradient";
+@import "css3/radial-gradient";
+@import "css3/transform";
+@import "css3/transition";
+
+// Addons & other mixins
+@import "addons/button";
View
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "bourbon/version"
+
+Gem::Specification.new do |s|
+ s.name = "bourbon"
+ s.version = Bourbon::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Phil LaPier", "Chad Mazzola", "Mike Burns"]
+ s.email = ["support@thoughtbot.com"]
+ s.homepage = ""
+ s.summary = "Bourbon Sass Mixins using SCSS syntax."
+ s.description = <<-DESC
+The purpose of Bourbon Vanilla Sass Mixins is to provide a comprehensive framework of
+sass mixins that are designed to be as vanilla as possible. Meaning they
+should not deter from the original CSS syntax. The mixins contain vendor
+specific prefixes for all CSS3 properties for support amongst modern
+browsers. The prefixes also ensure graceful degradation for older browsers
+that support only CSS3 prefixed properties.
+ DESC
+
+ s.rubyforge_project = "bourbon"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ s.add_dependency('sass', '>= 3.1')
+end
@@ -1,4 +1,8 @@
-module SassMixins
+module Bourbon
+ class Engine < ::Rails::Engine
+ require 'bourbon/engine'
+ end
+
module Rails
class Railtie < ::Rails::Railtie
rake_tasks do
View
@@ -0,0 +1,5 @@
+module Bourbon
+ class Engine < Rails::Engine
+ # auto wire
+ end
+end
View
@@ -0,0 +1,3 @@
+module Bourbon
+ VERSION = "0.0.5"
+end
View
@@ -1,9 +1,9 @@
# Needed for pre-3.1.
-namespace :sass_mixins do
+namespace :bourbon do
desc "Move files to the Rails assets directory."
task :install do
source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
- `mkdir #{Rails.root}/public/stylesheets/sass`
- `cp -a #{source_root}/app/assets/* #{Rails.root}/public/stylesheets/sass`
+ `mkdir -p #{Rails.root}/public/stylesheets/sass/bourbon`
+ `cp -a #{source_root}/app/assets/stylesheets/* #{Rails.root}/public/stylesheets/sass/bourbon`
end
end
View
@@ -1,19 +0,0 @@
-Gem::Specification.new do |s|
- s.name = 'sass-mixins'
- s.version = '0.0.4'
- s.summary = "Vanilla Sass Mixins using SCSS syntax."
- s.description = <<-DESC
-The purpose of Vanilla Sass Mixins is to provide a comprehensive framework of
-sass mixins that are designed to be as vanilla as possible. Meaning they
-should not deter from the original CSS syntax. The mixins contain vendor
-specific prefixes for all CSS3 properties for support amongst modern
-browsers. The prefixes also ensure graceful degradation for older browsers
-that support only CSS3 prefixed properties.
- DESC
- s.authors = ["Phil LaPier", "Chad Mazzola", "Mike Burns"]
- s.email = 'support@thoughtbot.com'
- s.files = Dir['**/*']
- s.homepage = 'https://github.com/thoughtbot/sass-mixins'
-
- s.add_dependency('sass', '>= 3.1')
-end

0 comments on commit bacdaf5

Please sign in to comment.