lib/mixpanel/mixpanel.rb in mixpanel-0.8.0 vs lib/mixpanel/mixpanel.rb in mixpanel-0.8.1

- old
+ new

@@ -57,10 +57,10 @@ def cmd @cmd || begin require 'escape' require 'rbconfig' - interpreter = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['RUBY_SO_NAME']) + interpreter = File.join(*RbConfig::CONFIG.values_at("bindir", "ruby_install_name")) + RbConfig::CONFIG["EXEEXT"] subprocess = File.join(File.dirname(__FILE__), 'mixpanel_subprocess.rb') @cmd = Escape.shell_command([interpreter, subprocess]) end end end