lib/plugins/plugins.rb in rsence-2.0.0.8.pre vs lib/plugins/plugins.rb in rsence-2.0.0.9.pre

- old
+ new

@@ -102,12 +102,12 @@ else warn "Known const missing: #{name.inspect}" super end end - plugin_src = File.read( src_path ) + plugin_src = params[:src] unless RUBY_VERSION.to_f >= 1.9 - plugin_src = ["bundle_path = #{params[:bundle_path].inspect}", plugin_src].join("\n") + plugin_src = "bundle_path = #{params[:bundle_path].inspect}\n\n" + plugin_src end m.module_eval( plugin_src ) end return mod rescue => e