-package "rubygems#{node[:passenger][:ruby_version]}"
-package "irb#{node[:passenger][:ruby_version]}"
+
+if node[:passenger][:ruby_version].to_f < 1.9
+ package "rubygems#{node[:passenger][:ruby_version]}"
+ package "irb#{node[:passenger][:ruby_version]}"
+end