chef_gem 'rest-client' do
  version node['s3_file']['rest-client']['version']
  action :install
end

chef_gem 'rest-client' do
  version node['s3_file']['rest-client']['version']
  action :install
  compile_time false if Chef::Resource::ChefGem.method_defined?(:compile_time)
end

Add compile_time false to suppress warning
Add compile_time false to suppress warning
