From c192bf0b389a484d9aa9bd88f8831d92777a6d98 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 15:37:08 -0700 Subject: Move test deps to the gemfile and expand the rakefile Signed-off-by: Tim Smith --- .travis.yml | 4 +++- Gemfile | 28 ++++++++++++++++++++++++++-- mixlib-authentication.gemspec | 5 ----- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index d5193e2..8678de4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,6 @@ branches: only: - master -script: bundle exec rake ci +bundler_args: --without docs development + +script: bundle exec rake diff --git a/Gemfile b/Gemfile index c283b6a..13fafb8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,32 @@ source "https://rubygems.org" + gemspec -group(:development) do - gem "pry" +group :docs do + gem "yard" + gem "redcarpet" + gem "github-markup" +end + +group :test do + gem "chefstyle", "=0.4.0" # pin needed until we drop Ruby 2.0/2.1 support + gem "rspec-core", "~> 3.2" + gem "rspec-mocks", "~> 3.2" + gem "rspec-expectations", "~> 3.2" + gem "rake" gem "mixlib-log", "~> 2" gem "net-ssh" end + +group :development do + gem "pry" + gem "pry-byebug" + gem "pry-stack_explorer" + gem "rb-readline" +end + +instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"] + +# 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/mixlib-authentication.gemspec b/mixlib-authentication.gemspec index 0830546..4f2b9e3 100644 --- a/mixlib-authentication.gemspec +++ b/mixlib-authentication.gemspec @@ -4,7 +4,6 @@ require "mixlib/authentication/version" Gem::Specification.new do |s| s.name = "mixlib-authentication" s.version = Mixlib::Authentication::VERSION - s.platform = Gem::Platform::RUBY s.summary = "Mixes in simple per-request authentication" s.description = s.summary s.license = "Apache-2.0" @@ -15,8 +14,4 @@ Gem::Specification.new do |s| s.require_path = "lib" s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } - - %w{rspec-core rspec-expectations rspec-mocks}.each { |gem| s.add_development_dependency gem, "~> 3.2" } - s.add_development_dependency "chefstyle" - s.add_development_dependency "rake", "~> 11" end -- cgit v1.2.1