Skip to content

Commit 52a026f

Browse files
Move syslog dependency from Gemfile to gemspec (#298)
* Move syslog dependency from Gemfile to gemspec Signed-off-by: nikhil2611 <[email protected]> * added ruby version condition Signed-off-by: nikhil2611 <[email protected]> * Temp code to remove cache Signed-off-by: Ashique Saidalavi <[email protected]> * Fixed the remove command Signed-off-by: Ashique Saidalavi <[email protected]> * Removed the temp code Signed-off-by: Ashique Saidalavi <[email protected]> * Removing cache dir Signed-off-by: Ashique Saidalavi <[email protected]> * reverted back the cache fix code Signed-off-by: nikhil2611 <[email protected]> --------- Signed-off-by: nikhil2611 <[email protected]> Signed-off-by: Ashique Saidalavi <[email protected]> Co-authored-by: Ashique Saidalavi <[email protected]>
1 parent d3e7d87 commit 52a026f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ gemspec
44

55
gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1
66
gem "chefspec"
7-
gem "syslog"
87

98
group :test do
109
gem "rake"

chef-cli.gemspec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ Gem::Specification.new do |gem|
5151
gem.add_dependency "pastel", "~> 0.7" # used for policyfile differ
5252
gem.add_dependency "license-acceptance", ">= 1.0.11", "< 3"
5353
gem.add_dependency "chef-licensing", "~> 1.0"
54+
55+
# This gem was removed from the Ruby standard library starting with version 3.4
56+
# See: https://stdgems.org/new-in/3.4
57+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4")
58+
gem.add_dependency "syslog", "~> 0.3"
59+
end
5460
end

0 commit comments

Comments
 (0)