diff options
author | Tim Smith <tsmith@chef.io> | 2018-11-15 11:26:53 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-11-15 11:36:10 -0800 |
commit | c4e01b2a9cdfac71de90a5a26a488c2750bf301b (patch) | |
tree | b63d55dcf9fe9087f9e97495b735ce95b9ce3af0 | |
parent | dd72cf898377d4bf1356f9ce82db626c717a35dd (diff) | |
download | chef-zero-c4e01b2a9cdfac71de90a5a26a488c2750bf301b.tar.gz |
Cleanup gemfile and Rakefile
Add the debug group we use elsewhere
Remove requires in Rakefile we don't need
Don't install pry and friends in travis to speed things up
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | Gemfile | 7 | ||||
-rw-r--r-- | Rakefile | 5 | ||||
-rw-r--r-- | chef-zero.gemspec | 3 |
4 files changed, 9 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 6cd4478..9ae51eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ before_install: sudo: false language: ruby cache: bundler +bundler_args: --jobs 7 --without debug script: - bundle update @@ -1,4 +1,5 @@ source "https://rubygems.org" + gemspec # gem 'rest-client', :git => 'https://github.com/chef/rest-client.git' @@ -18,6 +19,12 @@ else gem "chef", "~> 14.0" end +group :debug do + gem "pry" + gem "pry-byebug" + gem "pry-stack_explorer" +end + # If you want to load debugging tools into the bundle exec sandbox, # add these additional dependencies into Gemfile.local eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local") @@ -1,8 +1,5 @@ -require "bundler" require "bundler/gem_tasks" -require "chef_zero/version" - def run_oc_pedant(env = {}) ENV.update(env) require File.expand_path("spec/run_oc_pedant") @@ -59,5 +56,5 @@ begin task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." + puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." end diff --git a/chef-zero.gemspec b/chef-zero.gemspec index 6ae6fbe..e05c6f6 100644 --- a/chef-zero.gemspec +++ b/chef-zero.gemspec @@ -19,9 +19,6 @@ Gem::Specification.new do |s| s.add_dependency "ffi-yajl", "~> 2.2" s.add_dependency "rack", "~> 2.0" - s.add_development_dependency "pry" - s.add_development_dependency "pry-byebug" - s.add_development_dependency "pry-stack_explorer" s.add_development_dependency "rake" s.add_development_dependency "rspec" |