- @nagachika
- CRuby committer
- Ruby 2.0.0 ブランチメンテナ
- Ruby 2.0.0-p195 リリースしました
- ruby-trunk-changes 編者
- Sound.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
| require 'active_support/dependencies' | |
| ActiveSupport::Dependencies.autoload_paths << File.expand_path('../lib', __FILE__) |
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 'bundler/setup' | |
| require 'active_record' | |
| require 'logger' | |
| namespace :db do | |
| desc "Migrate the database through scripts in db/migrate. Target specific version with VERSION=x" | |
| task :migrate => :environment do | |
| ActiveRecord::Migrator.migrate('db/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil ) | |
| end |
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
| load 'deploy' if respond_to?(:namespace) | |
| load 'config/deploy' | |
| require "capistrano_colors" | |
| set :stages, %w(sample_stage) | |
| set :default_stage, "sample_stage" | |
| require 'capistrano/ext/multistage' |
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
| # Running tests: | |
| [21/27] TestRequire#test_require_to_path_redefined_in_load_path = 0.07 s | |
| 1) Failure: | |
| test_require_to_path_redefined_in_load_path(TestRequire) [/Users/nagachika/opt/ruby-trunk/src/ruby/test/ruby/test_require.rb:504]: | |
| [ruby-core:47970]. | |
| <[":ok"]> expected but was | |
| <["[:ng, [\"/Users/nagachika/opt/ruby-trunk/src/build\", \"/Users/nagachika/opt/ruby-trunk/src/build/.ext/common\", \"/Users/nagachika/opt/ruby-trunk/src/build/.ext/x86_64-darwin12.2.0\", \"/Users/nagachika/opt/ruby-trunk/src/ruby/lib\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/site_ruby/2.0.0\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.2.0\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/site_ruby\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/vendor_ruby/2.0.0\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin12.2.0\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/vendor_ruby\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/2.0.0\", \"/Users/nagachika/opt/ruby-trunk/lib/ruby/2.0 |
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
| class Husband | |
| attr_accessor :affair | |
| def say | |
| puts "I love my wife." | |
| end | |
| end | |
| module Secret | |
| refine Husband do | |
| def say |
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 2.0.0-p195 is released. This is the first patchlevel release of 2.0.0. | |
| And there're many bug-fixes and some optimization, and documentation fixes. | |
| # Downloads | |
| ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.bz2 | |
| SIZE: 10807456 bytes | |
| MD5: 2f54faea6ee1ca500632ec3c0cb59cb6 | |
| SHA256: 0be32aef7a7ab6e3708cc1d65cd3e0a99fa801597194bbedd5799c11d652eb5b |
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 | |
| module Svn | |
| class Revision | |
| def initialize(str) | |
| unless /r(\d+) \| (\S+) \| (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \S+)/ =~ str | |
| raise "unrecognized svn log message #{str}" | |
| end | |
| @revision = Regexp.last_match(1) | |
| @developer = Regexp.last_match(2) |
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
| diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb | |
| index 25a4608..fcf89bf 100644 | |
| --- a/test/ruby/test_fiber.rb | |
| +++ b/test/ruby/test_fiber.rb | |
| @@ -52,6 +52,7 @@ class TestFiber < Test::Unit::TestCase | |
| (1..100).map{|ti| | |
| Thread.new{ | |
| max.times{|i| | |
| +IO.select([$stdin], nil, nil, 0) # print "" でも可。Thread.pass ではタイムアウト | |
| Fiber.new{ |
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
| function echo_and_exec() { | |
| echo $* | |
| $* | |
| ST=$? | |
| if [ $ST -ne 0 ]; | |
| then | |
| echo "エラー: exitstatus: ${ST}" | |
| return 1 | |
| fi | |
| } |