From 38364e7d374f9fb40e6da0fc8205270685d6eaa8 Mon Sep 17 00:00:00 2001 From: david22swan Date: Thu, 24 Oct 2024 18:40:43 +0100 Subject: [PATCH 1/2] (Bugfix) Pin json to prevent issues ``` Failure/Error: require 'json' ArgumentError: wrong number of arguments (given 1, expected 0) ``` As of the release of json v2.7.3 the above error has been occurring across the entirety of the PDK test environment. --- pdk.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/pdk.gemspec b/pdk.gemspec index 2bbc26432..ee07ab8c2 100644 --- a/pdk.gemspec +++ b/pdk.gemspec @@ -48,6 +48,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'deep_merge', '~> 1.2.2' spec.add_runtime_dependency 'diff-lcs', '>= 1.5.0' spec.add_runtime_dependency 'json_pure', '~> 2.6.3' + spec.add_runtime_dependency 'json', '~> 2.6.3' spec.add_runtime_dependency 'pathspec', '~> 1.1' spec.add_runtime_dependency 'puppet_forge', '~> 5.0' From d4bc2871a0e0b329b90e1bb453762952dfb04429 Mon Sep 17 00:00:00 2001 From: david22swan Date: Thu, 24 Oct 2024 18:56:52 +0100 Subject: [PATCH 2/2] Update pdk.gemspec --- pdk.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdk.gemspec b/pdk.gemspec index ee07ab8c2..4f32e3d89 100644 --- a/pdk.gemspec +++ b/pdk.gemspec @@ -47,8 +47,8 @@ Gem::Specification.new do |spec| # Other deps spec.add_runtime_dependency 'deep_merge', '~> 1.2.2' spec.add_runtime_dependency 'diff-lcs', '>= 1.5.0' - spec.add_runtime_dependency 'json_pure', '~> 2.6.3' spec.add_runtime_dependency 'json', '~> 2.6.3' + spec.add_runtime_dependency 'json_pure', '~> 2.6.3' spec.add_runtime_dependency 'pathspec', '~> 1.1' spec.add_runtime_dependency 'puppet_forge', '~> 5.0'