Permalink
Browse files

Gemify for a Rails app.

  • Loading branch information...
1 parent b10279e commit f32f026e41216543627aea0a750dd09e5be5034f @mike-burns mike-burns committed Jun 30, 2011
View
@@ -0,0 +1,2 @@
+*swp
+*gem
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,9 @@
+module SassMixins
+ module Rails
+ class Railtie < ::Rails::Railtie
+ rake_tasks do
+ load "tasks/install.rake"
+ end
+ end
+ end
+end
@@ -0,0 +1,9 @@
+# Needed for pre-3.1.
+namespace :sass_mixins 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`
+ end
+end
View
@@ -7,15 +7,21 @@ Sass 3.1+
##Install
-**Clone the Repo**
+**Update your Gemfile**
- git clone git@github.com:plapier/sass-mixins.git
+ gem 'sass-mixins'
+
+ bundle install
+
+**For Rails < 3.1 you must run the installation rake task. This will copy the
+Sass files into your project's public/stylesheets/sass directory.**
+
+ rake sass_mixins:install
**Import the mixins at the beginning of your stylesheet**
@import 'sass-mixins/mixins';
-
##Usage
Below are a few examples of mixin usage. Note that these are just a few, explore the repo to find out more.
View
@@ -0,0 +1,19 @@
+Gem::Specification.new do |s|
+ s.name = 'sass-mixins'
+ s.version = '0.0.1'
+ 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 f32f026

Please sign in to comment.