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
a = Object.new | |
def a.a= obj | |
p a: obj | |
end | |
b = Object.new | |
def b.b= obj | |
p b: obj |
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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEpAIBAAKCAQEAwijdP3d/kX/2amSFaqswoHQma47ahyf1Be8UM0v33Lospfr3 | |
FnSgRa2Wfn0lguBw534ls0yVAoFa3ZKs3AkBvWbf0WwJb5WwOWlYxo0IfLT2r+Zm | |
qlmit0KbRkPpVeW6/4FB/qN+j4S57yFMP9ISbqG1VbxdW3SIwXzYrzRyadQgE1+d | |
7pSVCUzXHjYMdqlbK45Zy+aOV4JXloBb7ygLxXEsXRFJK3gDa1I6syPsl22k86MQ | |
0bagDEj1KkGS0XuFWUs1Ay+LMpwjLHkZxZm3D8XOv1c81M1ndduS2Al/NBT9SY5q | |
SaYu14XqdA6Ccc3nkMbNc5sqNgWdKEoLpAt/eQIDAQABAoIBAQCZ8sTbGekweQHt | |
gh63YV2BHBeKmQ50tB33woWF1uqFPalBQijAyWB7XxRA3wHrMALVypQiAsrz3ZUq | |
sq4VGZ8jinpVFxC0RUAhhYI6jID6QJKJDmrBD6mRHWL458gPr8QB639kZEZpjZfQ | |
H9rRj8PFrLqXbG+poFD++frlkPRXK9Tlw5/g1rujr2d/C9IoZ7P2nZVDkKV0An/7 |
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
Index: lib/net/http.rb | |
=================================================================== | |
--- lib/net/http.rb (revision 39237) | |
+++ lib/net/http.rb (working copy) | |
@@ -1424,7 +1424,9 @@ module Net #:nodoc: | |
raise | |
rescue Net::ReadTimeout, IOError, EOFError, | |
Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, | |
- OpenSSL::SSL::SSLError, Timeout::Error => exception | |
+ # avoid a dependency on OpenSSL |
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
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb | |
index d56316e..301eef4 100644 | |
--- a/lib/rubygems/package.rb | |
+++ b/lib/rubygems/package.rb | |
@@ -387,8 +387,8 @@ EOM | |
@spec = Gem::Specification.from_yaml entry.read | |
when 'metadata.gz' then | |
args = [entry] | |
- args << { :external_encoding => Encoding::UTF_8 } if | |
- Object.const_defined? :Encoding |
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
$ gem -v | |
2.0.1 | |
$ gem search rake$ -V | |
*** REMOTE GEMS *** | |
HEAD https://rubygems.org/latest_specs.4.8.gz | |
302 Moved Temporarily | |
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz | |
304 Not Modified |
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 'socket' | |
addrinfo = Addrinfo.udp 'ff02::1', 7000 | |
socket = Socket.new(addrinfo.pfamily, addrinfo.socktype, addrinfo.protocol) | |
socket.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true) | |
socket.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS, 1) | |
socket.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_IF, 4) |
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
/usr/local/bin/ruby extconf.rb | |
extconf.rb:7:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:7:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:8:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:10:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:14:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:14:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:15:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:16:in `<main>': Use RbConfig instead of obsolete and deprecated Config. | |
extconf.rb:22:in `<main>': Use RbConfig instead of obsolete and deprecated Config. |
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
Host *+* | |
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') nc $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /') | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null |
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 'rdoc' | |
class RDoc::Options | |
attr_accessor :you | |
attr_accessor :me | |
end | |
class MyGen | |
RDoc::RDoc.add_generator self |
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
diff --git a/ext/capp/capp.c b/ext/capp/capp.c | |
index 7134283..ea5ea7c 100644 | |
--- a/ext/capp/capp.c | |
+++ b/ext/capp/capp.c | |
@@ -587,7 +587,7 @@ capp_loop_run_no_gvl(void *ptr) | |
res = pcap_loop(args->handle, -1, capp_loop_callback, (u_char *)ptr); | |
- return (void *)res; | |
+ return (void *)(intptr_t)res; |