summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-03-03 12:37:21 -0800
committerJohn Keiser <john@johnkeiser.com>2016-03-04 11:05:48 -0800
commit676b1d8bbecb2a145bed487c406d0d915b9269ed (patch)
tree2ad66f1d6a3fcc4826d9cb4df7cd1f8d7dd137ff
parenta19b1d07d1fa416b8591681f1a04ef673aa25882 (diff)
downloadchef-jk/ruby-2.2.tar.gz
Use ruby 2.2.4 on both windows and unixjk/ruby-2.2
-rw-r--r--omnibus/config/projects/chef.rb22
1 files changed, 10 insertions, 12 deletions
diff --git a/omnibus/config/projects/chef.rb b/omnibus/config/projects/chef.rb
index 779a2b3a5e..d9ed03c7fb 100644
--- a/omnibus/config/projects/chef.rb
+++ b/omnibus/config/projects/chef.rb
@@ -34,17 +34,11 @@ else
install_dir "#{default_root}/#{name}"
end
-if windows?
- override :ruby, version: "2.0.0-p645"
- # Leave dev-kit pinned to 4.5 because 4.7 is 20MB larger and we don't want
- # to unnecessarily make the client any fatter.
- if windows_arch_i386?
- override :'ruby-windows-devkit', version: "4.5.2-20111229-1559"
- end
-else
- override :ruby, version: "2.1.6"
-end
-
+# See rb-readline note if you change ruby versions!
+override :ruby, version: "2.2.4"
+# Leave dev-kit pinned to 4.5 because 4.7 is 20MB larger and we don't want
+# to unnecessarily make the client any fatter.
+override :'ruby-windows-devkit', version: "4.5.2-20111229-1559" if windows? && windows_arch_i386?
override :bundler, version: "1.11.2"
override :rubygems, version: "2.5.2"
@@ -58,7 +52,11 @@ if windows? || rhel?
end
dependency "preparation"
-dependency "rb-readline" if windows?
+# ruby 2.2.x chef-shell (currently) segfaults if you use native readline, so use
+# rb-readline on that version. https://bugs.ruby-lang.org/issues/11869
+# If you think it's safe to disable this to get native readline support, add
+# `if windows?` to the end, since windows has no native readline support.
+dependency "rb-readline"
dependency "nokogiri"
dependency "pry"
dependency "chef"