全然理解出来てなかったので調べてみた。
function f () {
// Class
}
#!/usr/bin/env zsh | |
if [[ $# -lt 2 ]]; then | |
print -P "%UUsage%u: brew install-version [install options] FORMULA VERSION" | |
exit 1 | |
fi | |
formula= | |
version= | |
install_opts=() |
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable." | |
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion. | |
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope. | |
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident. | |
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular. | |
* Since 1.0 was released with the date in large quantities, the mi |
#!/usr/bin/env ruby | |
# -*- coding:utf-8 -*- | |
raise <<EOS | |
MOVED: https://github.com/todesking/svn-cherry-pick | |
EOS |
#!/usr/bin/env ruby | |
require 'pp' | |
require 'optparse' | |
require 'net/http' | |
require 'json' | |
Version=0.5 | |
class User | |
attr_accessor :atnd_name, :is_regular |
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
=begin | |
空行で区切られた要素に対してgrepする | |
=end | |
if ARGV.length < 2 | |
puts "<usage> ruby multiline_grep.rb [search_file] [search_text1] [search_text2] ..." | |
exit |
# monkey patch for permission problem when installing package including executables from git repository | |
# (Errno::EPERM: Operation not permitted) | |
# for rubygems >= 1.8 | |
# 1. put this file under lib directory. | |
# 2. put below line to top of Gemfile. | |
# | |
# require File.expand_path("lib/gem_installer_eperm_patch", File.dirname(__FILE__)) | |
# | |
require 'rubygems/installer' |
--- a/uri/common.rb | |
+++ b/uri/rfc3986_common.rb | |
@@ -45,9 +45,9 @@ module URI | |
RESERVED = ";/?:@&=+$,\\[\\]" | |
# domainlabel = alphanum | alphanum *( alphanum | "-" ) alphanum | |
- DOMLABEL = "(?:[#{ALNUM}](?:[-#{ALNUM}]*[#{ALNUM}])?)" | |
+ DOMLABEL = "(?:[#{ALNUM}](?:[-_#{ALNUM}]*[#{ALNUM}])?)" | |
# toplabel = alpha | alpha *( alphanum | "-" ) alphanum | |
- TOPLABEL = "(?:[#{ALPHA}](?:[-#{ALNUM}]*[#{ALNUM}])?)" |
Application.configure do | |
config.after_initialize do | |
# Partialの情報をHTMLに埋める | |
# For ActionPack 3.2.8 | |
class ActionView::PartialRenderer | |
def render_with_partial_annotation(*args) | |
setup(*args) | |
path = @path | |
content = "".html_safe |