Permit newer versions of json gem for ruby >= 2
The pinned version of json does not build successfully on bionic.
@@ -312,7 +312,11 @@ installgems()
gem install --local ${PACKAGE_CACHE}/${CUSTOM_ZK_GEM}
fi
sleep 1
+ if [ "${ruby_major_version}" -lt "2" ]; then
gem install json ${GEMOPT} -v 1.8.3
+ else
+ gem install json ${GEMOPT}
+ fi
sleep 1
gem install soap4r-ng ${GEMOPT} -v 2.0.3
gem install httparty ${GEMOPT} -v 0.14.0
