keenlabs/KeenClient-Ruby — pull request #2 by lkosak (2012-10-24 17:04:48+00:00)
Title: Fixed issue with cert file path reference

The path finding was wrong -- generated a reference to an invalid file. Not obvious on a dev environment b/c you have your own pem, but on Heroku it prevented events from being sent. Error was like so...

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:799:in `connect'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:799:in `connect'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:744:in `start'
from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/net/http.rb:1284:in `request'
from /app/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2.1/lib/new_relic/agent/instrumentation/net.rb:22:in `block in request_with_newrelic_trace'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2.1/lib/new_relic/agent/instrumentation/net.rb:21:in `request_with_newrelic_trace'
from (irb):21
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'irb(main):022:0>