summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-15 11:26:53 -0800
committerTim Smith <tsmith@chef.io>2018-11-15 11:36:10 -0800
commitc4e01b2a9cdfac71de90a5a26a488c2750bf301b (patch)
treeb63d55dcf9fe9087f9e97495b735ce95b9ce3af0
parentdd72cf898377d4bf1356f9ce82db626c717a35dd (diff)
downloadchef-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.yml1
-rw-r--r--Gemfile7
-rw-r--r--Rakefile5
-rw-r--r--chef-zero.gemspec3
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
diff --git a/Gemfile b/Gemfile
index a086282..afc8b3a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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")
diff --git a/Rakefile b/Rakefile
index 048e97a..5e7f57b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"