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
module M | |
refine(Fixnum) do | |
def foo | |
:foo | |
end | |
end | |
end | |
using M | |
p([0].map{|i| i.foo}) |
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
68,69c68,69 | |
< CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/include $(DEFS) ${cppflags} $(INCFLAGS) | |
< LDFLAGS = $(CFLAGS) -L. -fstack-protector -L/usr/local/lib | |
--- | |
> CPPFLAGS = -Idummy/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) ${cppflags} $(INCFLAGS) | |
> LDFLAGS = $(CFLAGS) -L. -fstack-protector | |
76c76 | |
< DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/lib $(XLDFLAGS) $(ARCH_FLAG) | |
--- | |
> DLDFLAGS = $(XLDFLAGS) $(ARCH_FLAG) |
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
TestRubyOptions#test_kanji = 0.05 s | |
1) Failure: | |
TestRubyOptions#test_kanji [/Users/nagachika/opt/ruby-trunk/src/ruby/test/ruby/test_rubyoptions.rb:131]: | |
<["EUC-JP"]> expected but was | |
<[]>. | |
--- | |
<[]> expected but was | |
<["/Users/nagachika/opt/ruby-trunk/src/ruby/lib/rubygems/specification.rb:710:in `[]': invalid byte sequence in EUC-JP (ArgumentError)", | |
"\tfrom /Users/nagachika/opt/ruby-trunk/src/ruby/lib/rubygems/specification.rb:710:in `block in each_gemspec'", | |
"\tfrom /Users/nagachika/opt/ruby-trunk/src/ruby/lib/rubygems/specification.rb:709:in `each'", |
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
p "in bar.rb" |
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
source "https://rubygems.org" | |
#gem "activesupport", "~> 3.2.18" | |
gem "activesupport", "~> 4.1.1" |
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
module A | |
class << self | |
def foo | |
p B | |
end | |
end | |
B = "A::B" | |
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
% make prereq | |
making srcs under enc | |
make[1]: Nothing to be done for `srcs'. | |
generating transdb.h | |
transdb.h unchanged | |
generating ../ruby/ext/ripper/ripper.c | |
extracting ripper.y from ../../parse.y | |
id.h not found in ["../.."] | |
make[1]: *** [ripper.y] Error 1 | |
make: *** [../ruby/ext/ripper/ripper.c] Error 2 |
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
class A | |
Const = lambda{ p [ :in_lambda, self, @foo ] } | |
define_method(:meth) do | |
p [:in_method, self, @foo] | |
Const.call | |
end | |
def initialize | |
@foo = 72 |
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
gem 'activesupport' | |
require "psych" | |
p Psych.respond_to?(:load_file) # => should print "true" but print "false" when psych-2.0.11.gem was installed |
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
source "https://rubygems.org" | |
gem "google-api-client", "0.8.3" |