diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-30 15:37:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-30 15:37:08 -0700 |
commit | c192bf0b389a484d9aa9bd88f8831d92777a6d98 (patch) | |
tree | 2300d9209b8b8eb0d503835514f35a40b98230d1 | |
parent | d8ac69582731fc4d0f663be6c8c62aaf4371c6d3 (diff) | |
download | mixlib-authentication-c192bf0b389a484d9aa9bd88f8831d92777a6d98.tar.gz |
Move test deps to the gemfile and expand the rakefile
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | Gemfile | 28 | ||||
-rw-r--r-- | 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 @@ -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 |