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
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in sass-mixins.gemspec
+gemspec
View
2 Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
View
18 app/assets/_mixins.scss
@@ -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
30 app/assets/_position.scss
@@ -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;
- }
-}
View
18 app/assets/stylesheets/_bourbon.css.scss
@@ -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 app/assets/addons/_button.scss → ...ssets/stylesheets/addons/_button.css.scss
File renamed without changes.
View
0 app/assets/css3/_animation.scss → ...sets/stylesheets/css3/_animation.css.scss
File renamed without changes.
View
0 app/assets/css3/_border-radius.scss → .../stylesheets/css3/_border-radius.css.scss
File renamed without changes.
View
0 app/assets/css3/_box-shadow.scss → ...ets/stylesheets/css3/_box-shadow.css.scss
File renamed without changes.
View
0 app/assets/css3/_box-sizing.scss → ...ets/stylesheets/css3/_box-sizing.css.scss
File renamed without changes.
View
0 app/assets/css3/_flex-box.scss → ...ssets/stylesheets/css3/_flex-box.css.scss
File renamed without changes.
View
0 app/assets/css3/_inline-block.scss → ...s/stylesheets/css3/_inline-block.css.scss
File renamed without changes.
View
0 app/assets/css3/_linear-gradient.scss → ...tylesheets/css3/_linear-gradient.css.scss
File renamed without changes.
View
0 app/assets/css3/_radial-gradient.scss → ...tylesheets/css3/_radial-gradient.css.scss
File renamed without changes.
View
0 app/assets/css3/_transform.scss → ...sets/stylesheets/css3/_transform.css.scss
File renamed without changes.
View
0 app/assets/css3/_transition.scss → ...ets/stylesheets/css3/_transition.css.scss
File renamed without changes.
View
0 app/assets/functions/_compact.scss → ...s/stylesheets/functions/_compact.css.scss
File renamed without changes.
View
0 app/assets/functions/_tint-shade.scss → ...tylesheets/functions/_tint-shade.css.scss
File renamed without changes.
View
30 bourbon.gemspec
@@ -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
View
6 lib/sass-mixins.rb → lib/bourbon.rb
@@ -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
5 lib/bourbon/engine.rb
@@ -0,0 +1,5 @@
+module Bourbon
+ class Engine < Rails::Engine
+ # auto wire
+ end
+end
View
3 lib/bourbon/version.rb
@@ -0,0 +1,3 @@
+module Bourbon
+ VERSION = "0.0.5"
+end
View
6 lib/tasks/install.rake
@@ -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
19 sass-mixins.gemspec
@@ -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.