Permalink
Browse files

bourbon can generate its files.

  • Loading branch information...
1 parent 17e01aa commit 0428c042e63818d07d8a2257ee52ff0e8ebe1ea4 Gabe Berke-Williams and Phil LaPier committed with gabebw Jan 20, 2012
Showing with 72 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +36 −2 Gemfile.lock
  3. +5 −0 bin/bourbon
  4. +2 −0 bourbon.gemspec
  5. +21 −0 features/generate.feature
  6. +4 −0 features/step_definitions/bourbon_steps.rb
  7. +1 −0 features/support/env.rb
  8. +2 −0 lib/bourbon.rb
View
@@ -3,3 +3,4 @@
.sass-cache/
bourbon/
demo/
+tmp/
View
@@ -1,16 +1,50 @@
PATH
remote: .
specs:
- bourbon (0.1.4)
+ bourbon (1.3.1)
sass (>= 3.1)
GEM
remote: http://rubygems.org/
specs:
- sass (3.1.7)
+ aruba (0.4.6)
+ bcat (>= 0.6.1)
+ childprocess (>= 0.2.0)
+ cucumber (>= 1.0.2)
+ rdiscount (>= 1.6.8)
+ rspec (>= 2.6.0)
+ bcat (0.6.2)
+ rack (~> 1.0)
+ builder (3.0.0)
+ childprocess (0.2.9)
+ ffi (~> 1.0.6)
+ cucumber (1.1.4)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.7.1)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ diff-lcs (1.1.3)
+ ffi (1.0.11)
+ gherkin (2.7.1)
+ json (>= 1.4.6)
+ json (1.6.4)
+ rack (1.3.6)
+ rdiscount (1.6.8)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.1)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ sass (3.1.12)
+ term-ansicolor (1.0.7)
PLATFORMS
ruby
DEPENDENCIES
+ aruba (~> 0.4)
bourbon!
View
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+
+require "bourbon"
+
+Bourbon::Generator.new.generate
View
@@ -27,4 +27,6 @@ that support only CSS3 prefixed properties.
s.require_paths = ["lib"]
s.add_dependency('sass', '>= 3.1')
+
+ s.add_development_dependency('aruba', '~> 0.4')
end
@@ -0,0 +1,21 @@
+Feature: Generate bourbon files via gem subcommand
+
+ @disable-bundler
+ Scenario: Run `bourbon generate`
+ Given a directory named "test"
+ When I cd to "test"
+ And I set up bourbon
+ And I run `bundle exec bourbon generate`
+ Then the following directories should exist:
+ | bourbon |
+ | bourbon/lib |
+ | bourbon/addons |
+ | bourbon/css3 |
+ | bourbon/functions |
+ And a file named "bourbon/_bourbon.scss" should exist
+ And a file named "bourbon/lib/sass_extensions.rb" should exist
+ And a directory named "bourbon/lib/sass_extensions" should exist
+ But a directory named "bourbon/lib/tasks" should not exist
+ And the following files should not exist:
+ | bourbon/lib/bourbon/engine.rb |
+ | bourbon/lib/bourbon/version.rb |
@@ -0,0 +1,4 @@
+When /^I set up bourbon$/ do
+ write_file("Gemfile", "gem 'bourbon', :path => '../../..'")
+ run_simple("bundle install")
+end
@@ -0,0 +1 @@
+require "aruba/cucumber"
View
@@ -1,3 +1,5 @@
+require "bourbon/generator"
+
module Bourbon
if defined?(Rails)
class Engine < ::Rails::Engine

0 comments on commit 0428c04

Please sign in to comment.