diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-12-29 18:15:50 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-12-29 18:15:50 -0800 |
commit | 1b5679d3fc50afca8fef9d54711366dd6c62362d (patch) | |
tree | a65e41172e7db17b96ddce7e3b70179dbdb9e8f8 | |
parent | 30dc4f1b2b7f93c866b29d54e8b701031f1fa824 (diff) | |
download | chef-zero-1b5679d3fc50afca8fef9d54711366dd6c62362d.tar.gz |
Use Chefstyle gem and move dev deps to the Gemfile
Use our standard setup
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | Gemfile | 4 | ||||
-rw-r--r-- | Rakefile | 7 | ||||
-rw-r--r-- | chef-zero.gemspec | 5 |
3 files changed, 11 insertions, 5 deletions
@@ -9,7 +9,9 @@ group :pedant do end group :development, :test do - gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master" + gem "chefstyle" + gem "rake" + gem "rspec", "~> 3.0" end if ENV["GEMFILE_MOD"] @@ -59,3 +59,10 @@ begin rescue LoadError puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed." end + +begin + require "yard" + YARD::Rake::YardocTask.new(:docs) +rescue LoadError + puts "yard 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 7be98d9..36406b8 100644 --- a/chef-zero.gemspec +++ b/chef-zero.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/chef/chef-zero" s.license = "Apache-2.0" - s.required_ruby_version = ">= 2.4.0" + s.required_ruby_version = ">= 2.4" s.add_dependency "mixlib-log", ">= 2.0", "< 4.0" s.add_dependency "hashie", ">= 2.0", "< 4.0" @@ -19,9 +19,6 @@ Gem::Specification.new do |s| s.add_dependency "ffi-yajl", "~> 2.2" s.add_dependency "rack", "~> 2.0", ">= 2.0.6" - s.add_development_dependency "rake" - s.add_development_dependency "rspec" - s.bindir = "bin" s.executables = ["chef-zero"] s.require_path = "lib" |