<commit_before>#
# Copyright 2012-2016 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name "ruby"

# This is now the main software project for anything ruby related.
# Even if you want a pre-built version of ruby from ruby-installer, include
# this project as a dependency. If the version is set to ruby-windows,
# it redirects to depend on the ruby-windows project.

if windows?
  default_version "ruby-windows"
else
  default_version "2.2.4"
end

fips_enabled = (project.overrides[:fips] && project.overrides[:fips][:enabled]) || false

if windows? && version == "ruby-windows"
    dependency "ruby-windows"
    dependency "ruby-windows-devkit"
    dependency "ruby-windows-devkit-bash"
    # The custom yakyakyak ruby build comes with openssl and the FIPS module.
    # Don't clobber it.
    dependency "openssl-windows" unless fips_enabled
    dependency "cacerts"
else

if windows?
  dependency "mingw"
  dependency "patch"
else
  dependency "patch" if solaris2?
  dependency "ncurses"
  dependency "libedit"
end

dependency "zlib"
dependency "openssl"
dependency "libffi"
dependency "libyaml"
# Needed for chef_gem installs of (e.g.) nokogiri on upgrades -<commit_msg>update default_version with current status<commit_after>#
# Copyright 2012-2016 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name "ruby"

# This is now the main software project for anything ruby related.
# Even if you want a pre-built version of ruby from ruby-installer, include
# this project as a dependency. If the version is set to ruby-windows,
# it redirects to depend on the ruby-windows project.

if windows?
  default_version "ruby-windows"
else
  # - chef-client cannot use 2.2.x yet due to a bug in IRB that affects chef-shell on linux:
  #   https://bugs.ruby-lang.org/issues/11869
  # - the current status of 2.3.x is that it downloads but fails to compile.
  default_version "2.1.6"
end

fips_enabled = (project.overrides[:fips] && project.overrides[:fips][:enabled]) || false

if windows? && version == "ruby-windows"
    dependency "ruby-windows"
    dependency "ruby-windows-devkit"
    dependency "ruby-windows-devkit-bash"
    # The custom yakyakyak ruby build comes with openssl and the FIPS module.
    # Don't clobber it.
    dependency "openssl-windows" unless fips_enabled
    dependency "cacerts"
else

if windows?
  dependency "mingw"
  dependency "patch"
else
  dependency "patch" if solaris2?
  dependency "ncurses"
  dependency "libedit"
end

dependency "zlib"
dependency "openssl"
dependency "libffi"
dependency "libyaml"
# Needed for chef_gem installs of (e.g.) nokogiri on upgrades -
{'fraction_non_alphanumeric': 0.08386032444322243, 'fraction_numerical': 0.011273027220236459, 'mean_word_length': 4.109550561797753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6923767', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1046, 'n_words': 447}