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

Add compile_time false to suppress warning
user
```ruby
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
```
assistant