summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-29 18:15:50 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-29 18:15:50 -0800
commit1b5679d3fc50afca8fef9d54711366dd6c62362d (patch)
treea65e41172e7db17b96ddce7e3b70179dbdb9e8f8
parent30dc4f1b2b7f93c866b29d54e8b701031f1fa824 (diff)
downloadchef-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--Gemfile4
-rw-r--r--Rakefile7
-rw-r--r--chef-zero.gemspec5
3 files changed, 11 insertions, 5 deletions
diff --git a/Gemfile b/Gemfile
index dcbb078..31024da 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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"]
diff --git a/Rakefile b/Rakefile
index 15a7b0a..2dd1b28 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"