Created
May 31, 2012 14:48
-
-
Save jsvd/2843908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rvm use 1.8.7 | |
Using /home/jsvd/.rvm/gems/ruby-1.8.7-p358 | |
% ruby teste.rb | |
/home/jsvd/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault | |
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux] | |
[1] 15312 abort (core dumped) ruby teste.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rvm use 1.9.3 | |
Using /home/jsvd/.rvm/gems/ruby-1.9.3-p194 | |
% ruby teste.rb | |
/home/jsvd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:216:in `open_loop': redirection forbidden: https://api.github.com -> http://developer.github.com (RuntimeError) | |
from /home/jsvd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri' | |
from /home/jsvd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:677:in `open' | |
from /home/jsvd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:33:in `open' | |
from teste.rb:2:in `<main>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rvm use jruby-1.6.2 | |
Using /home/jsvd/.rvm/gems/jruby-1.6.2 | |
jsvd@citadel ~ % ruby teste.rb | |
OpenSSL::SSL::SSLError: certificate verify failed | |
connect at org/jruby/ext/openssl/SSLSocket.java:180 | |
connect at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:586 | |
do_start at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:553 | |
start at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:542 | |
open_http at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:242 | |
buffer_open at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:616 | |
open_loop at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:164 | |
catch at org/jruby/RubyKernel.java:1191 | |
open_loop at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:162 | |
open_uri at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:132 | |
open at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:518 | |
open at /home/jsvd/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/open-uri.rb:30 | |
(root) at teste.rb:2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ruby teste.rb | |
OpenSSL::SSL::SSLError: certificate verify failed | |
connect at org/jruby/ext/openssl/SSLSocket.java:180 | |
connect at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/net/http.rb:586 | |
do_start at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/net/http.rb:553 | |
start at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/net/http.rb:542 | |
open_http at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:242 | |
buffer_open at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:616 | |
open_loop at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:164 | |
catch at org/jruby/RubyKernel.java:1183 | |
open_loop at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:162 | |
open_uri at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:132 | |
open at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:518 | |
open at /home/jsvd/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/open-uri.rb:30 | |
(root) at teste.rb:2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
open "https://api.github.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment