Skip to content

Commit

Permalink
Make autoprefixer-rails a dependency #824
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Jan 17, 2015
1 parent 90446df commit 30ac3c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ gem 'bootstrap-sass', '~> 3.3.1'
gem 'sass-rails', '>= 3.2'
```

Bootstrap requires the use of [Autoprefixer](https://github.com/ai/autoprefixer-rails)
to add browser vendor prefixes automatically. Simply add the gem:

```ruby
gem 'autoprefixer-rails'
```

`bundle install` and restart your server to make the files available through the pipeline.

Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`:
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-sass.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Gem::Specification.new do |s|
s.license = 'MIT'

s.add_runtime_dependency 'sass', '~> 3.2'
s.add_runtime_dependency 'autoprefixer-rails', '~> 5.0'

# Testing dependencies
s.add_development_dependency 'minitest', '~> 5.4.0'
Expand All @@ -24,7 +25,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'activesupport', '>= 4.1.5'
s.add_development_dependency 'json', '>= 1.8.1'
s.add_development_dependency 'sprockets-rails', '>= 2.1.3'
s.add_development_dependency 'autoprefixer-rails', '~> 1.1'
s.add_development_dependency 'jquery-rails', '>= 3.1.0'
s.add_development_dependency 'slim-rails'
s.add_development_dependency 'uglifier'
Expand Down
2 changes: 2 additions & 0 deletions test/dummy_rails/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false

config.active_support.test_order = :random

config.active_support.deprecation = :stderr
end

0 comments on commit 30ac3c8

Please sign in to comment.