g = chef_gem 'treetop' do
  action :nothing
end

g.run_action :install

Gem.clear_paths

chef_gem 'treetop' do
  action :install
end

--- 
+++ 
@@ -1,3 +1,7 @@
-chef_gem 'treetop' do
-  action :install
+g = chef_gem 'treetop' do
+  action :nothing
 end
+
+g.run_action :install
+
+Gem.clear_paths
[DEPLOY] Install treetop at compile time