lib/facter/rubysitedir.rb in facter-1.6.1 vs lib/facter/rubysitedir.rb in facter-1.6.2

- old
+ new

@@ -7,12 +7,12 @@ # # Caveats: # Facter.add :rubysitedir do - setcode do - version = RUBY_VERSION.to_s.sub(/\.\d+$/, '') - $:.find do |dir| - dir =~ /#{File.join("site_ruby", version)}$/ - end + setcode do + version = RUBY_VERSION.to_s.sub(/\.\d+$/, '') + $:.find do |dir| + dir =~ /#{File.join("site_ruby", version)}$/ end + end end