Skip to content

Instantly share code, notes, and snippets.

View nobu's full-sized avatar

Nobuyoshi Nakada nobu

  • Nihon Ruby-no-Kai
  • Kanuma, Tochigi, Japan
  • X @n0kada
View GitHub Profile
[ 1/81] Test_Symbol::TestType#test_attrset = 0.00 s
1) Failure:
Test_Symbol::TestType#test_attrset [/Users/nobu/src/ruby/trunk/src/test/-ext-/symbol/test_type.rb:104]:
Expected Bug::Symbol.attrset?("[foo]=") to return true.
[21/81] TestStruct::SubStruct#test_inspect = 0.00 s
2) Error:
TestStruct::SubStruct#test_inspect:
NoMethodError: undefined method `@a=' for #<struct :@a=1>
/Users/nobu/src/ruby/trunk/src/test/ruby/test_struct.rb:136:in `test_inspect'
Process: LimeChat [267]
Path: /Applications/LimeChat.app/Contents/MacOS/LimeChat
Identifier: net.limechat.LimeChat
Version: 2.39 (2.39)
Code Type: X86-64 (Native)
Parent Process: launchd [248]
Responsible: LimeChat [267]
User ID: 501
Date/Time: 2014-04-19 16:16:11.602 +0900
diff --git i/hash.c w/hash.c
index 007508a..6f39e47 100644
--- i/hash.c
+++ w/hash.c
@@ -2402,6 +2402,28 @@ rb_hash_flatten(int argc, VALUE *argv, VALUE hash)
return ary;
}
+static int
+hash_comprised_i(VALUE key, VALUE value, VALUE arg)
index b26ba72..2e57492 100644
--- common.mk
+++ common.mk
@@ -863,7 +863,7 @@ $(REVISION_H): $(srcdir)/version.h $(srcdir)/ChangeLog $(srcdir)/tool/file2lastr
$(srcdir)/ext/ripper/ripper.c: parse.y
$(ECHO) generating $@
$(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) \
- Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. RUBY=$(BASERUBY)
+ Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. RUBY="$(BASERUBY)"
#!/usr/bin/ruby
# Usage:
# $ wget http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
# $ ruby CaseFolding.rb CaseFolding.txt > ../enc/unicode/casefold.h
def hex_seq(v)
v.map {|i| "0x%04x" % i}.join(", ")
end
Process: Emacs [62692]
Path: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
Identifier: org.gnu.Emacs
Version: Version 24.3 (9.0)
Code Type: X86-64 (Native)
Parent Process: launchd [263]
Responsible: Emacs [62692]
User ID: 501
Date/Time: 2014-06-11 14:17:18.923 +0900
--- src/nsfont.m~ 2007-11-14 03:56:17.000000000 +0900
+++ src/nsfont.m 2009-04-20 00:04:13.000000000 +0900
@@ -167,5 +167,5 @@ nsfont_fmember_to_entity (NSString *fami
// NSString *psName = [famMember objectAtIndex: 0];
NSMutableString *suffix = [[famMember objectAtIndex: 1] mutableCopy];
- char *escapedFamily = [family UTF8String];
+ char *escapedFamily = strdup ([family UTF8String]);
nsfont_escape_name(escapedFamily);
@@ -178,4 +178,5 @@ nsfont_fmember_to_entity (NSString *fami
Index: parse.y
===================================================================
--- parse.y (revision 23932)
+++ parse.y (working copy)
@@ -6858,7 +6858,7 @@ parser_yylex(struct parser_params *parse
case '5': case '6': case '7': case '8': case '9':
{
- int is_float, seen_point, seen_e, nondigit;
+ int is_float, seen_point, seen_e, nondigit, decimal;
Index: ext/decimal/decimal.c
===================================================================
--- ext/decimal/decimal.c (revision 78)
+++ ext/decimal/decimal.c (working copy)
@@ -16,9 +16,9 @@
#include <string.h>
+#include <ruby.h>
#ifdef HAVE_RUBY_RUBY_H
#include <ruby/ruby.h>
@nobu
nobu / gisto
Created July 2, 2009 10:10
gisto.rb
#!/usr/bin/ruby
require 'optparse'
require 'net/http'
require 'time'
require 'cgi'
class Gist
GIST = URI.parse('http://gist.github.com/')
POST = GIST + 'gists'