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
# -*- coding: us-ascii -*- | |
require 'csv' | |
require 'yaml' | |
class LTSV < CSV | |
attr_accessor :ordered | |
alias ordered? ordered | |
def self.def_options(opt, options = {}) |
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
From dca0ef157f59f199ded8ab836e7ea20247c1a2f5 Mon Sep 17 00:00:00 2001 | |
From: Nobuyoshi Nakada <[email protected]> | |
Date: Tue, 22 Jan 2013 15:25:02 +0900 | |
Subject: [PATCH 1/2] vm_method.c: drop include_all flag | |
* vm_method.c (rb_obj_respond_to): drop optional include_all flag if | |
respond_to? method is defined in old style. | |
--- | |
test/ruby/test_marshal.rb | 12 ++++++++++++ | |
vm_method.c | 8 +++++++- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.ruby-lang.svn.update</string> | |
<key>OnDemand</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/Users/nobu/src/ruby/svn</string> |
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 'mkmf' | |
if have_header('CoreFoundation/CFString.h') and have_header('Security/SecKeychain.h') | |
$LDFLAGS << ' -framework CoreFoundation -framework Security' | |
$LIBS << ' -LCoreFoundation -LSecurity' | |
create_makefile('security/keychain') | |
end |
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 -rlocale -e 'p ENV.values_at(*%w[LC_ALL LC_TIME LANG]); | |
t = Time.now | |
puts t | |
Locale.all="" | |
puts t | |
Locale.time="C" | |
puts t' | |
[nil, nil, "ja_JP.UTF-8"] | |
Fri Nov 06 16:38:50 +0900 2009 | |
金 11 06 16:38:50 +0900 2009 |
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
inside-work-tree := $(git rev-parse --is-inside-work-tree) | |
ifeq ($(inside-work-tree),true) | |
branches := $(shell git branch -l | sort | sed 's/\*//') | |
gitdir = .git | |
backupdir = $(gitdir) | |
backup = git.tar.bz2 | |
backuparg = | |
else | |
gitdir = . | |
backupdir := $(notdir $(shell pwd)) |
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: ext/syck/emitter.c | |
=================================================================== | |
--- ext/syck/emitter.c (revision 25425) | |
+++ ext/syck/emitter.c (working copy) | |
@@ -535,4 +535,64 @@ void syck_emit_indent( SyckEmitter *e ) | |
#define SCAN_DOCSEP 8192 | |
+static const unsigned long utf8_limits[] = { | |
+ 0x0, /* 1 */ | |
+ 0x80, /* 2 */ |