This file contains hidden or 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
--- test/psych/test_yamldbm.rb | |
+++ test/psych/test_yamldbm.rb | |
@@ -1,19 +1,28 @@ | |
# -*- coding: UTF-8 -*- | |
require 'test/unit' | |
require 'yaml/dbm' | |
+require 'tmpdir' | |
Psych::DBM = YAML::DBM unless defined?(Psych::DBM) | |
module Psych |
This file contains hidden or 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/configure --prefix=/Users/ayumin/tmp/ruby --with-arch=x86_64 --with-readline-dir=/usr/local --with-openssl-dir=/opt/local --with-libyaml-dir=/opt/local --with-gdbm-dir=/opt/local --enable-shared | |
$ make | |
CC = gcc | |
LD = ld | |
LDSHARED = gcc -dynamiclib | |
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -arch x86_64 -fno-common -pipe | |
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT | |
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -I. -I.ext/include/x86_64-darwin10.8.0 -I../ruby/include -I../ruby | |
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/ayumin/tmp/ruby/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_sy |
This file contains hidden or 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
commit 6bff025d9965d500517a810ad8a156e8308e96e9 | |
Author: Ayumu AIZAWA <[email protected]> | |
Date: Wed Aug 3 06:14:47 2011 +0900 | |
Skip test_udp_server when address unreachable | |
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb | |
index b3b6fee..7757f70 100644 | |
--- a/test/socket/test_socket.rb | |
+++ b/test/socket/test_socket.rb |
This file contains hidden or 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
<form action="http://jrubykaigi.doorkeeper.jp/events/128/tickets" method="post"> | |
<div> | |
<label for="email">Email</label> | |
<input name="email" size="30" type="text" /> | |
</div> | |
<div> | |
<input name="commit" type="submit" value="Sign Up" /> | |
</div> | |
</form> |
This file contains hidden or 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/bin/ruby | |
# -*- coding: utf-8 -*- | |
require "optparse" | |
require "yaml" | |
require "kconv" | |
=begin | |
conf = {} | |
OptionParser.new do |opt| | |
opt.on("-p PACKAGES_YML","--packages") do |v| |
This file contains hidden or 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 'kconv' | |
text = "" | |
wrap = false | |
ARGF.each do |line| | |
line.gsub!(/\t/,' ') | |
line.gsub!(/ +/,' ') | |
line.gsub!(%r{\"},%q{\\\"}) | |
line.gsub!(%r{\'},%q{"}) | |
if line =~ /\/\/(.*)$/ | |
line = "/*" + $1 + "*/" |
This file contains hidden or 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/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
KeyWord = case ARGV[0] do | |
when "--cpu" then /^CPU used by this session/ | |
when "--cpu" then /^CPU used by this session/ | |
when "--cpu" then /^CPU used by this session/ | |
when "--cpu" then /^CPU used by this session/ | |
end | |
# カレントディレクトリの末尾".txt"で終わる全てのファイルを抽出する | |
# 抽出したファイルからキーワードにマッチする行のみを出力する |
NewerOlder