Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Renamed to Bourbon. Fix for rails 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Jul 3, 2011
1 parent 0b350f3 commit bacdaf5
Show file tree
Hide file tree
Showing 24 changed files with 70 additions and 71 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in sass-mixins.gemspec
gemspec
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'bundler'
Bundler::GemHelper.install_tasks
18 changes: 0 additions & 18 deletions app/assets/_mixins.scss

This file was deleted.

30 changes: 0 additions & 30 deletions app/assets/_position.scss

This file was deleted.

18 changes: 18 additions & 0 deletions app/assets/stylesheets/_bourbon.css.scss
Original file line number Original file line Diff line number Diff line change
@@ -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";
30 changes: 30 additions & 0 deletions bourbon.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion lib/sass-mixins.rb → lib/bourbon.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,8 @@
module SassMixins module Bourbon
class Engine < ::Rails::Engine
require 'bourbon/engine'
end

module Rails module Rails
class Railtie < ::Rails::Railtie class Railtie < ::Rails::Railtie
rake_tasks do rake_tasks do
Expand Down
5 changes: 5 additions & 0 deletions lib/bourbon/engine.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
module Bourbon
class Engine < Rails::Engine
# auto wire
end
end
3 changes: 3 additions & 0 deletions lib/bourbon/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
module Bourbon
VERSION = "0.0.5"
end
6 changes: 3 additions & 3 deletions lib/tasks/install.rake
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,9 @@
# Needed for pre-3.1. # Needed for pre-3.1.
namespace :sass_mixins do namespace :bourbon do
desc "Move files to the Rails assets directory." desc "Move files to the Rails assets directory."
task :install do task :install do
source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
`mkdir #{Rails.root}/public/stylesheets/sass` `mkdir -p #{Rails.root}/public/stylesheets/sass/bourbon`
`cp -a #{source_root}/app/assets/* #{Rails.root}/public/stylesheets/sass` `cp -a #{source_root}/app/assets/stylesheets/* #{Rails.root}/public/stylesheets/sass/bourbon`
end end
end end
19 changes: 0 additions & 19 deletions sass-mixins.gemspec

This file was deleted.

0 comments on commit bacdaf5

Please sign in to comment.