summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-08-03 17:35:47 +0100
committerThom May <thom@may.lt>2016-08-03 17:35:47 +0100
commitaaccbd577f113b2595487bcd341a4f7767b29a98 (patch)
tree6920a984ba8ae9cdd52c7cb9e2b9b9634a0e3325 /Rakefile
parent812b0cd4a8b205922234d733c68ccdc051c3c671 (diff)
downloadmixlib-log-aaccbd577f113b2595487bcd341a4f7767b29a98.tar.gz
test with updated ruby versions and run cucumbertm/update_travis
bonus Rakefile updates Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index 99d9307..57cd178 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,16 +1,8 @@
-require "rake"
-require "rubygems/package_task"
+require "bundler/gem_tasks"
require "rdoc/task"
-require "yaml"
require "rspec/core/rake_task"
require "cucumber/rake/task"
-gemspec = eval(IO.read("mixlib-log.gemspec"))
-
-Gem::PackageTask.new(gemspec) do |pkg|
- pkg.gem_spec = gemspec
-end
-
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = "spec/**/*_spec.rb"
end
@@ -30,3 +22,13 @@ end
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end
+
+begin
+ require "chefstyle"
+ require "rubocop/rake_task"
+ RuboCop::RakeTask.new(:style) do |task|
+ task.options += ["--display-cop-names", "--no-color"]
+ end
+rescue LoadError
+ puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking."
+end