bin/checkps in wizardwerdna-pokerstats-0.6.0 vs bin/checkps in wizardwerdna-pokerstats-0.7.0

- old
+ new

@@ -1,10 +1,13 @@ #!/usr/bin/ruby require "getoptlong" # ENV['RAILS_ENV'] = ENV['RAILS_ENV'] || 'development' # require File.expand_path(File.dirname(__FILE__) + "/../config/environment") -require File.expand_path(File.dirname(__FILE__) + "/pokerstats/pokerstars_file") -require File.expand_path(File.dirname(__FILE__) + '/pokerstats/player_statistics') +# require File.expand_path(File.dirname(__FILE__) + "/pokerstats/pokerstars_file") +# require File.expand_path(File.dirname(__FILE__) + '/pokerstats/player_statistics') +require 'rubygems' +require pokerstats/pokerstars_file +require pokerstats/player_statistics def search_poker_edge(playername, players_shown = {}) return if players_shown[playername] escaped_playername = URI.escape(playername).gsub(/["'\[\]]/,'\\\\\&').gsub(/[\[\]]/,'\\\\\\\\\&') result = `curl -s http://www.poker-edge.com/whoami.php?site=Stars\\&name=#{escaped_playername}`