From a02a6aa0720d4068475c8ccb03bbf7272d9477e1 Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Thu, 10 Oct 2019 21:59:25 -0700 Subject: [PATCH] Remove dependency on Rake This was only necessary for the Rake integration, which is option. Update the documentation and remove from the gemspec. --- CHANGELOG.md | 1 + Gemfile | 3 +++ README.md | 3 ++- scss_lint.gemspec | 1 - 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf6116f5..28f627c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## master (unreleased) * Add `overflow-wrap` to `PropertySortOrder` list for SMACSS +* Remove dependency on `rake` gem ## 0.58.0 diff --git a/Gemfile b/Gemfile index f2b99d00..0cda7cc5 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,9 @@ gem 'rspec', '~> 3.8' # Run all pre-commit checks via Overcommit during CI runs gem 'overcommit', '0.49.1' +# Needed to test Rake integration in specs +gem 'rake' + # Pin tool versions (which are executed by Overcommit) for Travis builds gem 'rubocop', '0.74.0' diff --git a/README.md b/README.md index cf471d4b..18a5eb3c 100644 --- a/README.md +++ b/README.md @@ -575,7 +575,8 @@ Git hook manager, [overcommit](https://github.com/sds/overcommit). ## Rake Integration -To execute `scss-lint` via a [Rake](https://github.com/ruby/rake) task, add the +To execute `scss-lint` via a [Rake](https://github.com/ruby/rake) task, ensure +you have `rake` in your gem path (e.g. by adding to your `Gemfile`), and add the following to your `Rakefile`: ```ruby diff --git a/scss_lint.gemspec b/scss_lint.gemspec index f7a55520..52c2a5e1 100644 --- a/scss_lint.gemspec +++ b/scss_lint.gemspec @@ -25,6 +25,5 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.4' - s.add_dependency 'rake', '>= 0.9', '< 13' s.add_dependency 'sass', '~> 3.5', '>= 3.5.5' end