Project

General

Profile

Activity

From 03/12/2012 to 03/18/2012

03/18/2012

11:43 PM Bug #6172 (Rejected): Inconsistent behaviour of defined?
The former is analogous to Foo.bar(Misio), while the latter is analogous to Foo.bar("zot").
Object.const_get is mere method call.
nobu (Nobuyoshi Nakada)
07:23 PM Bug #6172 (Rejected): Inconsistent behaviour of defined?
Following behavior is obvious:
irb(main):004:0> Object.const_get("Misio")
NameError: uninitialized constant Misio
from (irb):4:in `const_get'
from (irb):4
from /Users/pawel/.rbenv/versions/1.9.4-dev/bin/irb:12:in `<main>'
irb(...
pkondzior (Paweł Kondzior)
11:14 PM Feature #6173 (Closed): re.cのrb_memsearch()におけるmemchr()の利用
re.cのrb_memsearch()では、m == 1な場合にはfor文で各バイトと比較していますが、memchr()を用いると性能の改善がみられます。
次のようなベンチマークを実行したところ、以下のような結果となりました。
require 'benchmark'
str = "hoge" * 10000 + "\n"
Benchmark.bm do |x|
x.report do
str.index("\n")
end
e...
Glass_saga (Masaki Matsushita)
11:05 PM Feature #3916: Add flag to ruby to make warnings fatal.
Hmm... I just wrote article related to this:
https://github.com/trans/trans.github.com/wiki/2012-02-25-setting-priorities-trumps-warnings
trans (Thomas Sawyer)
06:46 PM Feature #3916 (Assigned): Add flag to ruby to make warnings fatal.
shyouhei (Shyouhei Urabe)
11:01 PM Feature #4151: Enumerable#categorize
I'm sorry, but #categorize has big code smell. Seems like too much functionality is being shoved into one method. It is still not clear to me after reading over explanation many times how #categorize works. So either it is relatively str... trans (Thomas Sawyer)
10:36 PM Feature #5534: Redefine Range class and introduce RelativeNumeric and RelativeRange
More of my crazy ideas. Wouldn't it be nice to be able to write:
a, b = 0.5, 10.5
(a..b).each(Integer) { |n| puts n }
alexeymuranov (Alexey Muranov)
10:11 PM Feature #4102: Proposal for 'let'. A new approach using block-defaults in 1.9
It would conflict with RSpec's definition of #let.
Other then as a teaching tool for block scope what are the use cases? This seems to have very limited use. I find defining a new method is better way to get clean scope.
trans (Thomas Sawyer)
06:46 PM Feature #4102 (Assigned): Proposal for 'let'. A new approach using block-defaults in 1.9
shyouhei (Shyouhei Urabe)
09:53 PM Feature #4553: Add Set#pick and Set#pop
I would expect `Array#pick` to work too. Which then leads one to think Array might support the equivalent of `Set#pop` as well. But since Array already has `#pop` it's not really a good idea to reuse same term, although in the case of Se... trans (Thomas Sawyer)
07:26 PM Feature #4553 (Assigned): Add Set#pick and Set#pop
shyouhei (Shyouhei Urabe)
09:31 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
This is the first time I've seen regular expression groups, so it's interesting.
It occurs to me that with this addition MatchData is both a sort of Array and a sort of Hash. That being so consider `md.to_h`.
trans (Thomas Sawyer)
03:01 PM Feature #1873 (Feedback): MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
This feature itself is acceptable, but proposed method name (API) is not acceptable. naruse (Yui NARUSE)
07:25 PM Feature #4551 (Assigned): uri.set_scheme should downcase schemes
naruse (Yui NARUSE)
07:22 PM Feature #4523: Kernel#require to return the path of the loaded file
I don't think it's useful if it may return false.
What's the use case?
I agree that the way to know the loaded path would be useful sometimes, but this doesn't seem nice.
nobu (Nobuyoshi Nakada)
07:12 PM Feature #4513 (Assigned): allow whitespace following EOL continuation backslash
Regardless it's acceptable or not, we want to check nobu's local patches first. Don't you have that? nahi (Hiroshi Nakamura)
07:08 PM Feature #4483 (Assigned): PStoreをデフォルトで複数のスレッドから扱えるようにしたい
nahi (Hiroshi Nakamura)
07:05 PM Feature #4475 (Assigned): default variable name for parameter
nahi (Hiroshi Nakamura)
07:04 PM Feature #4414 (Rejected): Addition to String.split
Please use unpack instead. shyouhei (Shyouhei Urabe)
07:04 PM Feature #4335 (Rejected): String#split for empty string is always empty array
It's intended feature, and -1 is prepared for your purpose as Nobu said. #3575 nahi (Hiroshi Nakamura)
07:01 PM Feature #4276 (Assigned): Allow use of quotes in symbol syntactic sugar for hashes
nahi (Hiroshi Nakamura)
06:56 PM Feature #4254 (Rejected): Allow method transplanting
nahi (Hiroshi Nakamura)
06:49 PM Feature #4168 (Assigned): WeakRef is unsafe to use in Ruby 1.9
Nobu, can we close this now? nahi (Hiroshi Nakamura)
06:47 PM Feature #4146 (Assigned): Improvement of Symbol and Proc
nahi (Hiroshi Nakamura)
06:46 PM Feature #5096 (Assigned): offer Logger-compatibility for syslog ext
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5073 (Assigned): Ruby 1.9.2 may fail to build ri data when an RDoc plugin is installed
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5011 (Assigned): Add Perl 6-like main method definition support: accept command-line arguments as method arguments
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5010 (Assigned): Add Slop(-like) in stdlib and deprecate current OptionParser API
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4985 (Assigned): Add %S[] support for making a list of symbols
shyouhei (Shyouhei Urabe)
06:46 PM Bug #4974 (Assigned): [ext/tk] ruby_1_9_2@32391 build failure with MinGW
shyouhei (Shyouhei Urabe)
06:46 PM Bug #4971 (Assigned): Module#class_variables
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4938 (Assigned): Add Random.bytes [patch]
shyouhei (Shyouhei Urabe)
06:46 PM Bug #4911 (Assigned): timer_thread_function() が thead unsafe
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4872 (Assigned): REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4831 (Assigned): Integer#prime_factors
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4788 (Assigned): resolv.rb refactoring
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4787 (Assigned): Integer#each_modulo(n)
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4649 (Assigned): Adding parallel constructors to Ruby 2.0
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4614 (Assigned): [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4570 (Assigned): [PATCH v2] io.c (rb_io_close): release GVL if possible
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4521 (Assigned): NoMethodError#message may take very long to execute
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4086 (Assigned): Feature request: add String#contain? and {Enumerable,Array}#contain? methods
shyouhei (Shyouhei Urabe)
06:46 PM Feature #4085 (Assigned): Refinements and nested methods
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3953 (Assigned): TCPSocket / UDPSocket do not accept IPAddr objects.
shyouhei (Shyouhei Urabe)
06:22 PM Feature #3953: TCPSocket / UDPSocket do not accept IPAddr objects.
knu, how do you think? nahi (Hiroshi Nakamura)
06:18 PM Feature #3953: TCPSocket / UDPSocket do not accept IPAddr objects.
If we implement this feature, we need a method for duck type, such as IPAddr#to_ipaddress to convert to IP-address string. akr (Akira Tanaka)
06:46 PM Feature #3946 (Assigned): Array#packのqQ指定子に機種依存サイズフラグ!を追加
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3901 (Assigned): WIN32OLE_VARIANT.new method lacks consistency
shyouhei (Shyouhei Urabe)
06:46 PM Bug #3781 (Assigned): FIBER_USE_NATIVE が有効だと落ちるスクリプトがある
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3731 (Assigned): Easier Embedding API for Ruby
shyouhei (Shyouhei Urabe)
06:06 PM Feature #3731 (Open): Easier Embedding API for Ruby
nahi (Hiroshi Nakamura)
06:46 PM Feature #3620 (Assigned): Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3608 (Assigned): Enhancing Pathname#each_child to be lazy
shyouhei (Shyouhei Urabe)
06:46 PM Bug #3594 (Assigned): URI class doesn't do file URL's properly.
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3479 (Assigned): Array#binary_find et al
shyouhei (Shyouhei Urabe)
05:27 PM Feature #3479: Array#binary_find et al
Endoh-san, how do you think? nahi (Hiroshi Nakamura)
06:46 PM Feature #3450 (Assigned): Format Strings with Named Arguments & Hash#default
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3399 (Assigned): UNC path is not handled properly
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3333 (Assigned): mkmf (have|find)_cxx_header
shyouhei (Shyouhei Urabe)
03:56 PM Feature #3333: mkmf (have|find)_cxx_header
Imported from #3330
うっかりruby-listに投げてしまったきしもとです
[ruby-list:47092] で振ってみた話題に関係して、なのですが(ツリーになりませんでしたが)、
mkmf に C++ のヘッダをチェックする機能を追加するパッチです。
```diff
Index: configure.in
===========================================================...
nahi (Hiroshi Nakamura)
06:46 PM Feature #3328 (Assigned): Kernel#p outputs as default_internal encoding, and so on
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3322 (Assigned): Simple Patch to make ruby copy-on-write-friendly
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3206 (Assigned): Problems manipulating the signal mask with Ruby
shyouhei (Shyouhei Urabe)
06:46 PM Feature #3187 (Assigned): Allow dynamic Fiber stack size
shyouhei (Shyouhei Urabe)
02:36 PM Feature #3187: Allow dynamic Fiber stack size
How about;
```ruby
t = Thread.new(stack_size: 1024)
t.stack_size = 1024
t[:initial_tls_hash] = {}
t.run {
...
}
```
nahi (Hiroshi Nakamura)
06:46 PM Feature #3163 (Assigned): SyntaxError when using variable which is also a method in current scope with a Symbol argument
shyouhei (Shyouhei Urabe)
06:46 PM Feature #2837 (Assigned): Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
shyouhei (Shyouhei Urabe)
06:46 PM Feature #2709 (Assigned): $VERBOSE, $DEBUG and Kernel#sprintf
shyouhei (Shyouhei Urabe)
06:46 PM Feature #2643 (Assigned): test/unit redefinition check of test_* method
shyouhei (Shyouhei Urabe)
03:11 PM Feature #2643: test/unit redefinition check of test_* method
Shota, please handle this. We also added you as a maintainer of test/unit. http://bugs.ruby-lang.org/projects/ruby/wiki/Maintainers nahi (Hiroshi Nakamura)
06:46 PM Feature #2631 (Assigned): Allow IO#reopen to take a block
shyouhei (Shyouhei Urabe)
03:12 PM Feature #2631: Allow IO#reopen to take a block
I don't feel changing `IO#reopen` is great way to solve this issue.
How about `spawn()`?
Since Ruby 1.9, `spawn` provides a primitive for redirection.
It is thread safe.
Apart from that, I think `$stdin`, `$stdout`, `$stderr` c...
akr (Akira Tanaka)
02:58 PM Feature #2631: Allow IO#reopen to take a block
Method name? nahi (Hiroshi Nakamura)
06:46 PM Feature #2324 (Assigned): Dir instance methods for relative path
shyouhei (Shyouhei Urabe)
06:46 PM Feature #2322 (Assigned): [PATCH] Add standard deviation function to Math Module
shyouhei (Shyouhei Urabe)
06:46 PM Bug #1792 (Assigned): Fixnum#& 等が、Rational などを受けつける
shyouhei (Shyouhei Urabe)
06:46 PM Feature #1586 (Assigned): Including a module already present in ancestors should not be ignored
shyouhei (Shyouhei Urabe)
06:46 PM Bug #953 (Assigned): 深い入れ子の配列の取り扱いで落ちる
shyouhei (Shyouhei Urabe)
06:46 PM Feature #6163 (Assigned): Remove syck YAML extension
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6161 (Assigned): Document interpretation of backslashes in string transliterations
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6147 (Assigned): should we check a result returned by fcntl?
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6145 (Assigned): two possible bugs in Onigmo
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6143 (Assigned): Onigmo allows broken regexp: /(?(x.)/
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6141 (Assigned): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6131 (Assigned): Ctrl-C handler do not work from exec process (Windows)
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6124 (Assigned): remove the "spec-only gems" in Ruby 1.9.3 (was What is the purpose of "fake" gems in Ruby)
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6122 (Assigned): OpenSSL::PKCS7 verify
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6120 (Assigned): Float and BigDecimal bug in remainder in corner cases
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6119 (Assigned): Usage of CPPFLAGS during configure result in duplicated values for RbConfig CPPFLAGS information
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6117 (Assigned): Transfers allowed into Fibers that have resumed into other fibers
shyouhei (Shyouhei Urabe)
06:46 PM Feature #6111 (Assigned): Request for making ruby multiarchable
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6107 (Assigned): Documentation Abbrev (stdlib) confusing
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6098 (Assigned): Re: GVL改善案
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6094 (Assigned): [OpenSSL] wrong argument of rsa_generate()
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6090 (Assigned): ruby-mode.el font-lock fails with some interpolated strings
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6087 (Assigned): How should inherited methods deal with return values of their own subclass?
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6086 (Assigned): Number of arguments and named parameters
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6078 (Assigned): The name of a module nested in an anonymous module depends on how it was created
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6067 (Assigned): Conditional assignment of a nested constant raises a SyntaxError
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6066 (Assigned): Fix "control may reach end of non-void function" warnings for clang
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6057 (Assigned): URI - Nonsensical Behavior
shyouhei (Shyouhei Urabe)
06:46 PM Feature #6056 (Assigned): Enhancements to OpenStruct
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6039 (Assigned): lambda vs proc; #to_ary w/ splat bug
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6038 (Assigned): #instance_eval bug
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6030 (Assigned): Thread-local "leak" in rb_exec_recursive*
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6029 (Assigned): Should OpenStruct implement #eql? and #hash?
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6024 (Assigned): Failure to execute test_modify_expand_memory_leak under Windows (MinGW)
shyouhei (Shyouhei Urabe)
06:46 PM Feature #6023 (Assigned): Add "a ?= 2" support for meaning "a = a.nil? ? 2 : a"
shyouhei (Shyouhei Urabe)
06:46 PM Feature #6012 (Assigned): Proc#source_location also return the column
shyouhei (Shyouhei Urabe)
06:46 PM Bug #6011 (Assigned): ruby-1.9.3-p0/lib/webrick/utils.rb:184: [BUG] Segmentation fault
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5993 (Assigned): Thread.new{ Fiber.new { Thread.exit }.resume }.join で例外
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5985 (Assigned): miniruby skews "make benchmark" results
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5954 (Assigned): IO.read_nonblock on IO.pipe generates Errno::EBADF (MinGW)
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5932 (Assigned): gc_mark_children で SEGV が発生
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5930 (Assigned): source_location of blocks incorrect
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5912 (Assigned): Interpreter crashes when trying to invoke implicit block via Binding#eval
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5896 (Assigned): object representation in rb_enc_vsprintf()
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5882 (Assigned): segfault in miniruby in ruby1.9.3 crosscompile for ARM
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5829 (Assigned): /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5828 (Assigned): Non anonymous classes can't be frozen, cloned and then inspected
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5811 (Assigned): Ruby Process Deadlocks With Fork on Mac OS X Lion
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5785 (Assigned): Readline に pre_input_hook, insert_text, redisplay を追加
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5784 (Assigned): Readline.special_prefixes の追加
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5780 (Assigned): test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5774 (Assigned): [PATCH] xmlrpc client handling cookies
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5772 (Assigned): Segmentation Fault on Mac (crash)
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5771 (Assigned): WIN32OLERuntimeError using 1.9.2
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5761 (Assigned): Array#flatten(N) calls to_ary on the (N+1)-level objects
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5759 (Assigned): flatten calls to_ary on everything
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5750 (Assigned): Thread.current local-variables behavior
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5747 (Assigned): Proc#curry doesn't always detect too many arguments
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5746 (Assigned): Proc#curry too strict about lambda's arity.
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5737 (Assigned): WEBrick doesn't support keep alive connections for 204 and 304 responses
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5736 (Assigned): Numeric#quo should convert with #to_r
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5719 (Assigned): Hash::[] can't handle 100000+ args
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5715 (Assigned): +/-1 ** Bignum returns different results than +/-1 ** Fixnum
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5713 (Assigned): Fixnum#** returns Infinity for 0 ** negative Bignum
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5694 (Assigned): Proc#arity doesn't take optional arguments into account.
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5686 (Assigned): compile error for ext/tk/tcltklib.c: ‘ruby_errinfo’ undeclared
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5680 (Assigned): IPPROTO_GGP undeclared when compiling ext/socket/constants.c
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5670 (Assigned): Emacs ruby-mode syntax highlighting issue
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5648 (Assigned): irb does not handle recursive heredocs
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5647 (Assigned): Possible use of uninitialized value in Init_bigdecimal
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5630 (Assigned): Missing custom transfer modes in Net::FTP
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5619 (Assigned): Segfault on OS X
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5618 (Assigned): Exceptions cause DRb connection to be closed
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5608 (Assigned): make -j 16 sometimes fail
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5563 (Assigned): Fix bug in drb tests if hostname does not resolve to a local IP
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5543 (Assigned): rb_thread_blocking_region() API is poorly designed
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5538 (Assigned): ruby memory error running minitests
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5515 (Assigned): Integer#quo(aFloat) の結果が Rational になる
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5511 (Assigned): "make test" failure on HP-UX/PA
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5510 (Assigned): "make test" failure on HP-UX/IA
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5508 (Assigned): Is BigDecimal really not $SAFE?
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5497 (Assigned): Math.log10(10_000) error on HP-UX/PA
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5485 (Assigned): ERB html_escape should follow OWASP recommendations
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5463 (Assigned): PTY or IO.select timing issue results in no EOF
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5437 (Assigned): Using fibers leads to huge memory leak
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5420 (Assigned): RubyGems misleading error message for "update -l"
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5418 (Assigned): Some properties of WEBrick::HTTPRequest could be malformed
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5368 (Assigned): ensure節でsleepするようなThreadがあるとインタプリタが終了しない
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5358 (Assigned): YAML 中のタグの扱いについて
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5355 (Assigned): Sync_mにBug #5195やBug #5258と同様のバグ
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5330 (Assigned): Bug Report: wrong backtrace
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5269 (Assigned): All ThreadError in PStore transaction will be caught and replaced with PStore::Error
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5266 (Assigned): BigDecimal#sqrt で、大きな数の平方根の、要求する精度が低いある範囲のとき、結果がおかしい
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5246 (Assigned): bootstraptest fails on ia64
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5236 (Assigned): Including a module in a superclass after it has been included in a subclass leads to infinite recursion if the module uses `super`
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5214 (Assigned): "not (true)" should not warn "(...) interpreted as grouped expression"
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5199 (Assigned): ext/tk: RB_GC_GUARD seems to be needed in several places
shyouhei (Shyouhei Urabe)
06:46 PM Bug #5179 (Assigned): Complex#rationalize and to_r with approximate zeros
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5174 (Assigned): Export ruby_init_prelude()
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5138 (Assigned): Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
shyouhei (Shyouhei Urabe)
06:46 PM Feature #5133 (Assigned): Array#unzip as an alias of Array#transpose
shyouhei (Shyouhei Urabe)
06:42 PM Feature #4057: FileUtils.copy with FIFOs and Special Devices
I feel following hang is bad behavior.
% mkfifo p
% ruby -v -rfileutils -e 'FileUtils.copy "p", "p2"'
ruby 2.0.0dev (2012-03-16 trunk 35049) [x86_64-linux]
...hang...
However cp also hangs.
% cp p p2
..hang...
...
akr (Akira Tanaka)
06:42 PM Feature #4095: C1 Coverage
Contribution are welcomed... nahi (Hiroshi Nakamura)
06:36 PM Feature #4046 (Feedback): Saving C's **argv and cwd allows Ruby programs to reliably restart themselves
argv[0] is not reliable on some environment.
see "#! - the Unix truth as far as I know it."
http://homepages.cwi.nl/~aeb/std/hashexclam.html
I tried to implement with vendor specific functions.
https://gist.github.com/1129437
...
naruse (Yui NARUSE)
06:26 PM Feature #3995 (Rejected): Hash#update with Enumerable
nobu (Nobuyoshi Nakada)
06:11 PM Feature #3773 (Rejected): Module#parent
I mark this Rejected since Matz rejected it. Sorry for not respecting your extra concern. It would be good to file this as a new issue. nahi (Hiroshi Nakamura)
06:10 PM Feature #3727 (Closed): rb_f_require_relative not included in Ruby API
closing because no feedback.. shyouhei (Shyouhei Urabe)
06:05 PM Feature #3727: rb_f_require_relative not included in Ruby API
I think it is difficult to determine the base directory of relative directory in C. akr (Akira Tanaka)
06:07 PM Feature #3897 (Rejected): Pathname sub_ext! method
Pathname is immutable as commented. akr (Akira Tanaka)
06:07 PM Feature #3715 (Rejected): Enumerator#size and #size=
As matz already rejeted I hereby close this issue. If you still need it, please open a new ticket with revisied AIPs. Thank you. shyouhei (Shyouhei Urabe)
05:57 PM Feature #3688 (Assigned): redef keyword for method redefinition in Ruby 2.0
shyouhei (Shyouhei Urabe)
05:51 PM Feature #3619 (Rejected): \x{XXXX} as an escape sequence of string
naruse (Yui NARUSE)
05:46 PM Feature #3575: String#split is inconsistent with empty string and negative limit
I think Ruby thinks "" has no fields, not one field which have empty string.
So, "".split(",", -1) should return [].
Documentation issue, maybe.
akr (Akira Tanaka)
05:39 PM Feature #3511 (Feedback): rb_path_to_class should call custom const_defined? methods
Aaron, is this hook extension still needed for your usecase? (assuming Rails?)
Not bad but it would affect performance...
nahi (Hiroshi Nakamura)
05:23 PM Feature #6129: String#each_lineにおけるmemmem()の利用
Nobuyoshi Nakada wrote:
>* パラグラフモードでも効果があるか
> ...
パラグラフモードでも効果があるかどうかについてですが、次のようなベンチマークを実行してみました。
require 'benchmark'
rs = "\n" * ARGV.first.to_i
str = "hoge#{rs}fuga" * 10_0000
Benchmark.bm do |x|
x.report do
str.ea...
Glass_saga (Masaki Matsushita)
05:19 PM Feature #3447 (Feedback): argument delegation
* このスレッドの現状をどなたか教えていただけませんか。
* この記法のユースケースをどなたか教えていただけませんか。
shyouhei (Shyouhei Urabe)
05:17 PM Feature #3429 (Closed): Integer#**(large) warns "in a**b, b may be too big" and return Infinity
This issue was solved with changeset r35081.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (rb_big_pow): estimate result bit size more precisel...
nobu (Nobuyoshi Nakada)
04:50 PM Feature #3429: Integer#**(large) warns "in a**b, b may be too big" and return Infinity
mrkn, please handle this. nahi (Hiroshi Nakamura)
04:37 PM Feature #3427 (Rejected): instances of Dir class can't be compared
Marked as Rejected since the original poster agreed that it's less likely to be needed. nahi (Hiroshi Nakamura)
04:34 PM Feature #3426 (Rejected): exec doesn't allow command lines which begin with an env variable assignment
Mark as Rejected since Endoh-san said it's duplicated of #3321, and #3321 is rejected. nahi (Hiroshi Nakamura)
04:28 PM Feature #3388: regexp support for start_with? and end_with?
I think we can cache regexp structure according to regexp source, options, encoding.
If regexp structure is cached, /\A#{pattern}/ and /#{pattern}\z/ is not slow for
second and successive dynamic regexp creation.
If it is not slo...
akr (Akira Tanaka)
04:25 PM Feature #3388: regexp support for start_with? and end_with?
rindex(pattern) would fail to detect proper end_of_string index. It must be /{suffix}\Z/. nahi (Hiroshi Nakamura)
03:49 PM Feature #3300 (Feedback): onig_number_of_captures に相当するメソッド Regexp#ncapture
nahi (Hiroshi Nakamura)
03:37 PM Feature #3001 (Feedback): Ruby stdlib: Benchmark::Tms #memberwise drops labels
nahi (Hiroshi Nakamura)
03:36 PM Feature #2975 (Closed): Kernel.warn always writes despite $VERBOSE value
I mark as Closed since it seems we already have it in docs.
Please file a new ticket for the proposed API change since it's dated...
nahi (Hiroshi Nakamura)
03:28 PM Feature #2824 (Closed): Backtrace from Singleton Classes is Unclear
This issue was solved with changeset r35079.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c: typo fix by Run Paint Run Run.
[ruby-core:283...
akr (Akira Tanaka)
03:22 PM Feature #2715: Optimization to avoid spawning shell in Kernel#system call should check for failure conditions
I feel the optimization (avoid shell when no meta characters) can be removed.
We have many ways to avoid shell such as system(command, arg1, arg2).
And recent computers are fast enough to run command via shell.
akr (Akira Tanaka)
03:21 PM Revision 27c53898 (git): * 2012-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 PM Revision f4aff7fe (git): num2ll and num2ull
* ext/-test-/num2int/num2int.c (print_num2ll, print_num2ull): define
only if long long is available, and use long long printf modifier
checked by configure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35086 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
03:21 PM Revision bd377449 (git): volatile errinfo
* eval_jump.c (rb_exec_end_proc): need volatile to prevent from
setjmp/longjmp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:05 PM Feature #2645: Have a method in StringScanner which returns the position in characters rather than in bytes
gettalong wrote:
> I had a similar problem: I wanted to extract a part of a StringScanner-backed string.
> ...
You can use String#byteslice.
naruse (Yui NARUSE)
02:50 PM Feature #2351 (Rejected): system() hardlinked to /bin/sh
I close this as 'Rejected' since no update given long time. nahi (Hiroshi Nakamura)
02:21 PM Revision e30dbb36 (git): fix condition for free
* gc.c (aligned_free): fix condition for free. memalign() and
posix_memalign() are not defined together normally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:05 PM Feature #1952: cannot stop with Ctrl+C
開発者会議で笹田さんなどと議論したところ、
以下のスクリプトで、2回め以降の ^C で 1 が表示されないのはバグであるという
結論になりました。
% ruby -ve '
Thread.new do
begin
begin
p 1
sleep
ensure
raise
end
rescue
retry
end
end...
akr (Akira Tanaka)
01:50 PM Feature #1952: cannot stop with Ctrl+C
現在の挙動。
% cat foo.rb
Thread.new do
begin
begin
p :sleep
sleep
ensure
p :raise
raise
end
rescue
p :retry
retry
end
end.join
% ruby foo.rb
:sleep
^C:raise
:retry
:sleep...
nahi (Hiroshi Nakamura)
01:38 PM Feature #3908 (Closed): private constant
Closing as implemented at 1.9.3. nahi (Hiroshi Nakamura)
11:16 AM Bug #6168 (Assigned): Segfault in OpenSSL bindings
MartinBosslet (Martin Bosslet)
05:21 AM Bug #6168 (Third Party's Issue): Segfault in OpenSSL bindings
Hello,
A few days ago I updated my Arch Linux server to OpenSSL 1.0.1-1 and Ruby 1.9.3_p125-2. Since then I have been experiencing an odd service failure where a Ruby TLS service of mine would disconnect users with "invalid MAC" excep...
amasal (Nguma Abojo)
11:15 AM Revision 1d006f35 (git): * gc.c (aligned_malloc, aligned_free): added fallback implementations
for platforms like OSX Leopard.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:06 AM Feature #5422: File.fnmatch != Dir.glob # {no,sets}
Works for me if it works for the API.
trans (Thomas Sawyer)
10:45 AM Revision 3175fbf1 (git): * win32/Makefile.sub: put an empty line between stub and script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:20 AM Bug #5544: Lookup scope for class variables in class_eval'd procs changed in 1.9.3
I suppose so long as it is documented, the difference is ok. I think this can be closed in that case. jballanc (Joshua Ballanco)
09:10 AM Feature #6166: Enumerator::Lazy#pinch
Happy St. Patty's Day ;)
I don't seen any green on this site... *pinch*
trans (Thomas Sawyer)
12:47 AM Feature #6166 (Rejected): Enumerator::Lazy#pinch
In previous issue #6158 it has been determined that Enumerator::Lazy#take should be lazy. But an eager form of #take would still be useful.
To this end I'll suggest `Enumerator::Lazy#pinch`. Examples of usage:
e.lazy.pinch 1
...
trans (Thomas Sawyer)
08:17 AM Revision ed4c5f38 (git): * bignum.c (rb_big_pow): estimate result bit size more precisely.
[ruby-core:30735][Feature #3429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:17 AM Revision 2555f3f5 (git): * gc.c (free_method_entry_i): method entry may be in
unlinked_method_entry_list. [ruby-core:43383][Bug #6171]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
I thought about that...it would still be better to add EWOULDBLOCKReadable,
etc, than to pay the .extend toll every time.
On Mar 17, 2012 10:28 AM, "Tanaka Akira" <akr@fsij.org> wrote:

> 2012/3/16 Charles Nutter <headius@headiu...
headius (Charles Nutter)
06:28 AM Revision 7e78f6f5 (git): * compile.c: typo fix by Run Paint Run Run.
[ruby-core:28368] [Bug #2824]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:09 AM Bug #6170 (Rejected): Compile error: "implicit declaration of function 'pthread_get_stackaddr_np'", "'pthread_get_stacksize_np'"
=begin
When compiling Ruby 1.9.3 (I've tested 1.9.3p0 and 1.9.3p125), (({thread_pthread.c})) produces a compile error.
The following is the GCC output for the error:
compiling thread.c
In file included from thread.c:204:
thread...
tw (Ted Wing)
06:00 AM Bug #6169: Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"
=begin
This is fixed by removing lines 111-116 from (({process.c})), reproduced here:
#ifdef BROKEN_SETREUID
#define setreuid ruby_setreuid
#endif
#ifdef BROKEN_SETREGID
#define setregid ruby_setregid
#endif
Edit: forgot to menti...
tw (Ted Wing)
05:58 AM Bug #6169 (Closed): Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"
=begin
When compiling Ruby 1.9.3 (I've tested 1.9.3p0 and 1.9.3p125), process.c produces a compile error
The following is the GCC output for the error:
compiling process.c
process.c: In function 'p_sys_setreuid':
process.c:41...
tw (Ted Wing)
05:26 AM Revision 58f269d0 (git): merge revision(s) 34433: [Backport #6153]
* encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string
is ascii only string. [ruby-core:42354] [Bug #5968]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:02 AM Bug #6167: String#count: wrong result for multiple complements of multi-byte characters
Other incorrect results:
>> "\u0100\u0101".count("a", "\u0100")
=> 1
> ...
=> 1
Both should be 0.
john_firebaugh (John Firebaugh)
02:37 AM Bug #6167 (Closed): String#count: wrong result for multiple complements of multi-byte characters
>> "\u0100\u0101".count("^\u0100", "^\u0101")
=> 2
Since multiple arguments are intersected, the expected result is 0. Compare:
> ...
=> 0
This takes a different path through tr_setup_table and returns the correct result.
An...
john_firebaugh (John Firebaugh)
01:03 AM Revision ef4ea58c (git): * 2012-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:03 AM Revision 42c18fe7 (git): * lib/profiler.rb: support calling singleton methods of
an instance of BasicObject.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)

03/17/2012

10:35 PM Bug #6158: Enumerator::Lazy#take: should it be lazy?
matz:
> use #first. map! etc. do not conform other bang method naming convention.
Thank you for taking the decision.
Shugo:
I understand the use, so I also think it's worth having some form of lazy #take.
However, I think many...
Eregon (Benoit Daloze)
10:02 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
use #first. map! etc. do not conform other bang method naming convention. matz (Yukihiro Matsumoto)
07:36 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
=begin
Same for me - at first was thinking about having take evaluating makes sense.
But having ability to continue building the lazy chain looks more logical.
Having something like #pinch totally makes sense.
However I'm thinkin...
gregolsen (Innokenty Mikhailov)
12:55 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
Both "takes" on this seem valid. Could there be a special method similar to take for de-lazying and taking a segment of the enumeration? e.g. maybe #pinch ?
e.lazy.pinch(3)
e.lazy.pinch(4..6)
e.lazy.pinch(2, 4)
trans (Thomas Sawyer)
05:59 PM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
On Fri, Mar 16, 2012 at 7:24 PM, Eric Wong <normalperson@yhbt.net> wrote:
>> The only cases that break are cases that check e.class == EAGAIN,
>> which is probably not a good pattern anyway.
>
> I also noticed some test failures wit...
headius (Charles Nutter)
09:29 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
Charles Nutter <headius@headius.com> wrote:
> I should have mentioned that JRuby has been running this way for a
> while (on master) and we have had no reports of incompatibility. The
> concrete subclass is_a EAGAIN and is_a WaitR...
normalperson (Eric Wong)
10:23 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hi,

In message "Re: [ruby-core:43357] [ruby-trunk - Bug #6155] Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each"
on Sat, 17 Mar 2012 06:42:22 +0900, Marc-Andre Lafortune <ruby-core@marc-...
matz (Yukihiro Matsumoto)
06:42 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hi,
Shugo Maeda wrote:
> I doubt that this behavior of Enumerable#flat_map is reasonable.
> ...
I understand your point of view. This behavior was clearly intended in Matz's original commit, though (r25456). Changing this could also...
marcandre (Marc-Andre Lafortune)
12:48 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
> > [1, 2, 3].flat_map { |n| n }.to_a
> ...
I was writing rubyspec for Enumerable::Lazy#flat_map had the same behaviour as Enumerable#flat_map (besides the obvious differences in return value). Here is what I was using as a basis: htt...
dkubb (Dan Kubb)
10:23 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,

In message "Re: [ruby-core:43358] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)"
on Sat, 17 Mar 2012 07:13:17 +0900, Marc-Andre Lafortune <ruby-core@marc-andre.ca> writes:

|E...
matz (Yukihiro Matsumoto)
10:08 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
> "Repeating myself, unlike other classes in the table, Hash does not have "natural" conversion from set of values, so that I don't think it's worth provide to_h method."
> ...
I see, you were referring to Enumerable#to_h and meant t...
trans (Thomas Sawyer)
07:13 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,
Yukihiro Matsumoto wrote:
> Repeating myself, unlike other classes in the table, Hash does not
> ...
Thanks for taking the time to reply.
Even if you will not accept Enumerable#to_h, how about `to_h` for Hash, Struct, OpenSt...
marcandre (Marc-Andre Lafortune)
08:31 AM Feature #6163 (Closed): Remove syck YAML extension
=begin
The syck extension should be removed for the following reasons:
Syck only supports YAML 1.0
Syck is not YAML 1.0 compliant.
Syck is not easy to maintain, and many of the bugs existing in it have not been fixed.
Psych ...
drbrain (Eric Hodel)
04:24 AM Bug #6151: ArgumentError of lambda shows wrong location
How can that be by design? What kind of design criteria says that "instance_eval should blow up if a lambda is passed to it"?
So you are saying that instance_eval passes the receiver into the Proc as an argument? Why would it do this...
trans (Thomas Sawyer)
03:18 AM Bug #6151: ArgumentError of lambda shows wrong location
Just the location was fixed. The error is "by design" -- as you discovered, you will need to use Proc.new (or lambda {|*| ... }). john_firebaugh (John Firebaugh)
03:16 AM Bug #6151: ArgumentError of lambda shows wrong location
Just to be clear, where both issues fixed? i.e. the fact that an error was raised in this case at all, as well as the location of lambda errors?
trans (Thomas Sawyer)
02:19 AM Bug #6161 (Closed): Document interpretation of backslashes in string transliterations
=begin
The transliteration string accepted by String#tr, #delete, #squeeze, and #count has its own backslash escape syntax (on top of that provided by string literals), but it isn't documented.
A backlash character escapes the subseq...
john_firebaugh (John Firebaugh)
01:49 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
This issue was solved with changeset r35073.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (trnext): fix bug with string ending with '\\'.
...
znz (Kazuhiro NISHIYAMA)
01:40 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
r35069 の変更の影響でクリーンビルドすると
../tool/transcode-tblgen.rb:758:in `delete': empty string (ArgumentError)
で止まります。
再現条件を絞り込んだところ '\\'.delete('\\') で ArgumentError になりました。
znz (Kazuhiro NISHIYAMA)
12:35 AM Bug #6159: Enumerable::Lazy#inspect
Benoit Daloze wrote:
> So something like: #<Enumerator::Lazy: 1..5:each> or #<Enumerator::Lazy: #<Enumerator: 1..5:each>>
> ...
I agree that It would be nice. However, unlike Enumerator, Enumerator::Lazy doesn't have enough informatio...
shugo (Shugo Maeda)

03/16/2012

11:22 PM Bug #6158 (Assigned): Enumerator::Lazy#take: should it be lazy?
Hello,
Benoit Daloze wrote:
> I noticed #take is now defined on Enumerator::Lazy, and it has lazy behavior:
> ...
At first, I had the same opinion, but lazy take is sometimes useful.
For example, the following code consume much mem...
shugo (Shugo Maeda)
08:49 PM Bug #6158 (Closed): Enumerator::Lazy#take: should it be lazy?
Hello,
I noticed #take is now defined on Enumerator::Lazy, and it has lazy behavior:
(1..1000).lazy.select(&:even?).take 3 # => #<Enumerator::Lazy ...>
I would expect #take to not be lazy and always produce an Array, like th...
Eregon (Benoit Daloze)
10:05 PM Revision 30c0db4a (git): follow r35040
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:57 PM Revision db3bce11 (git): * object.c: Fix indentation of Class#inherited example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
08:59 PM Bug #6159 (Closed): Enumerable::Lazy#inspect
Hello,
Enumerable::Lazy#inspect is undefined right now and relies on Enumerator#inspect:
(1..5).lazy # => #<Enumerator::Lazy: #<Enumerator::Generator:0x00000101a2f9e8>:each>
I think it would be nice to be similar to (direct)...
Eregon (Benoit Daloze)
08:06 PM Bug #6156 (Closed): String#tr fails on UTF-16
This issue was solved with changeset r35069.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (trnext): should advance char-wise.
[ruby-core:43335...
nobu (Nobuyoshi Nakada)
03:05 PM Bug #6156 (Closed): String#tr fails on UTF-16
>> "b".encode("utf-16le").tr("a-z".encode("utf-16le"), "*".encode("utf-16le"))
ArgumentError: invalid byte sequence in UTF-16LE
from (irb):91:in `tr'
from (irb):91
from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>...
john_firebaugh (John Firebaugh)
07:41 PM Bug #6107: Documentation Abbrev (stdlib) confusing
Previous patch is bunk, please disregard.
Attached patch removes the sort from the example and updates the example output with the actual hash.
zmack (Andrei Bocan)
04:49 PM Revision ea6511c6 (git): * string.c (trnext): fix bug with string ending with '\\'.
[ruby-dev:45374][Bug #6160]
* test/ruby/test_string.rb (TestString#test_delete): test for
above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:36 PM Bug #6157 (Closed): Enumerable::Lazy#select does not handle multiple yield arguments
Dan Kubb wrote:
> When the #each method yields more than one argument, Enumerable::Lazy#select only accepts the first argument, e.g.:
The bug has already been fixed in r35043. Please try the latest revision.
shugo (Shugo Maeda)
03:23 PM Bug #6157 (Closed): Enumerable::Lazy#select does not handle multiple yield arguments
When the #each method yields more than one argument, Enumerable::Lazy#select only accepts the first argument, e.g.:
class MultiYield
include Enumerable ...
dkubb (Dan Kubb)
03:30 PM Revision 2cab78a9 (git): remove a trailing space [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:20 PM Revision 9a4c2a98 (git): * 2012-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:20 PM Revision 25755e38 (git): remove a trailing space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:19 PM Bug #6155 (Assigned): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
shugo (Shugo Maeda)
03:19 PM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hello,
Dan Kubb wrote:
> The following statement will raise "NoMethodError: undefined method `each' for 1:Fixnum":
> ...
I doubt that this behavior of Enumerable#flat_map is reasonable.
flat_map is designed to concatenate multiple ...
shugo (Shugo Maeda)
02:53 PM Bug #6155 (Closed): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
The following statement will raise "NoMethodError: undefined method `each' for 1:Fixnum":
[1, 2, 3].lazy.flat_map { |n| n }.to_a
It appears as if Enumerable::Lazy#flat_map is calling #each on every element, regardless of whether ...
dkubb (Dan Kubb)
02:42 PM Bug #5544: Lookup scope for class variables in class_eval'd procs changed in 1.9.3
Joshua Ballanco wrote:
> While I prefer the behavior in 1.9.3 (it is more consistent with constant lookup rules), the inconsistency between 1.9.2 and 1.9.3 is unsettling.
It is intended, so I've fixed the documentation of class_eval....
shugo (Shugo Maeda)
02:38 PM Bug #5544 (Closed): Lookup scope for class variables in class_eval'd procs changed in 1.9.3
This issue was solved with changeset r35057.
Joshua, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_eval.c (rb_mod_module_eval): fix the documentation of
cl...
shugo (Shugo Maeda)
02:33 PM Bug #5777: class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
George MacKerron wrote:
> Yehuda, thanks for the response. I understand that the lookup rules were changed between 1.9.1 and 1.9.2 -- that's not the issue I'm raising.
> ...
It is intended behavior, because a block closes the environme...
shugo (Shugo Maeda)
02:28 PM Bug #5777 (Closed): class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
This issue was solved with changeset r35056.
George, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_eval.c (rb_mod_module_eval): fix the documentation of
cl...
shugo (Shugo Maeda)
02:23 PM Bug #5570: Encoding of environment variables on Windows
On Thu, Mar 15, 2012 at 05:16, Nikolai Weibull <now@bitwi.se> wrote:
> On Thu, Mar 15, 2012 at 02:51, U.Nakamura <usa@garbagecollect.jp> wrote:
>> Hello,
>>
>> In message "[ruby-core:43237] [ruby-trunk - Bug #5570][Feedback] Encodin...
now (Nikolai Weibull)
12:46 PM Bug #5570 (Closed): Encoding of environment variables on Windows
This issue was solved with changeset r35030.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c, include/ruby/win32.h (rb_w32_ugetenv): new AP...
usa (Usaku NAKAMURA)
02:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
On Friday, 16 Mar 2012 at 1:13 PM, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:43310] [ruby-trunk - Feature #5008] Equal
> rights for Hash (like Array, String, Integer, Float)" on Fri, 16 Mar
> 2012 02:58:...
sunaku (Suraj Kurapati)
02:19 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
"Repeating myself, unlike other classes in the table, Hash does not have "natural" conversion from set of values, so that I don't think it's worth provide to_h method."
What does that even mean?
From a practical vantage, I use #to_...
trans (Thomas Sawyer)
01:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,

In message "Re: [ruby-core:43310] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)"
on Fri, 16 Mar 2012 02:58:04 +0900, Suraj Kurapati <sunaku@gmail.com> writes:

|Request #3131 ...
matz (Yukihiro Matsumoto)
12:18 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
I approve `to_h` as explicit conversion to a Hash.
It should be created and implemented for NilClass, Hash, Enumerable, Struct, OpenStruct.
It would also pave the way for more generic hash splat if the proposal is accepted (see [ru...
marcandre (Marc-Andre Lafortune)
02:58 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
=begin
Request #3131 was fulfilled, so here is the updated feature matrix:

| | Kernel | Implicit | Explicit | NilClass |
| Class | method | conversion | conversion | conversion |
| --------- | ...
sunaku (Suraj Kurapati)
02:12 PM Bug #5616 (Closed): * /lib/net/imap.rb exception in IMAP.new when get_response returns nil
This issue was solved with changeset r35055.
Edsard, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb (initialize): raise Net::IMAP::Error when the...
shugo (Shugo Maeda)
01:56 PM Bug #5620 (Closed): (Net::IMAP::ResponseParseError) unexpected token LBRA (expected SPACE)
This issue was solved with changeset r35054.
art , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb (rfc822_text): ignore [] after RFC822.
[ruby-...
shugo (Shugo Maeda)
01:06 PM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
Related: http://bugs.ruby-lang.org/issues/6154 headius (Charles Nutter)
01:05 PM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
I should have mentioned that JRuby has been running this way for a while (on master) and we have had no reports of incompatibility. The concrete subclass is_a EAGAIN and is_a WaitReadable, so all typical exception-handling patterns work ... headius (Charles Nutter)
01:02 PM Feature #6154 (Closed): Eliminate extending WaitReadable/Writable at runtime
The nonblocking IO operations started extending WaitReadable or WaitWritable into the Errno::EAGAIN instance some time during the 1.9 series. This has a rather high cost, since a singleton class must be created and the global method cach... headius (Charles Nutter)
12:42 PM Bug #6151: ArgumentError of lambda shows wrong location
The reason it raises an error is that instance_eval yields one argument (the receiver), and lambdas are strict about arity -- see #2476. john_firebaugh (John Firebaugh)
12:30 PM Bug #6151 (Closed): ArgumentError of lambda shows wrong location
fixed in r35051-r35053. nobu (Nobuyoshi Nakada)
11:59 AM Bug #6151: ArgumentError of lambda shows wrong location
You need to indent with spaces, before tabs. nobu (Nobuyoshi Nakada)
06:13 AM Bug #6151: ArgumentError of lambda shows wrong location
That's fun, go to report a bug in Ruby and hit a bug in Ruby's Bug tracker.
Try again, this time with no RD crap.
Given:
#
class BlockParser < BasicObject
def initialize(data={}, &block)
@data = ...
trans (Thomas Sawyer)
06:08 AM Bug #6151 (Closed): ArgumentError of lambda shows wrong location
=begin
Perhaps there is a reason, but it sure seems like a bug to me. Given this simple class:
#
class BlockParser < BasicObject
def initialize(data={}, &block)
@data = data
instance_eval...
trans (Thomas Sawyer)
12:07 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
Thomas Sawyer wrote:
> A touch OT, but is Brian Candler being involved in the development of this? I don't know of anyone who has discussed and worked on this topic more over the years than Brian and I think it would be most prudent to ...
shugo (Shugo Maeda)
12:03 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
Innokenty Mikhailov wrote:
> a = (1..3).lazy.zip('a'..'z')
> ...
I agree that the current behavior is confusing, and the attached patch fixes it in the above case, but the patch cannot fix it in the following case:
a = (1..3).la...
shugo (Shugo Maeda)
11:25 AM Bug #6152 (Closed): Enumerator::Lazy#take
Nobuhiro IMAI wrote:
> 以下はテストにある Step クラスですが、
(snip)
> ...
正しくないですね。takeの方のバグだったので修正しました。
shugo (Shugo Maeda)
09:13 AM Bug #6152 (Closed): Enumerator::Lazy#take
=begin
以下はテストにある Step クラスですが、
class Step
include Enumerable
attr_reader :current, :args

def initialize(enum)
@enum = enum
@current = nil
@args = nil
end

def each(*args)
@args = args
...
no6v (Nobuhiro IMAI)
11:06 AM Revision ba20fe62 (git): * string.c (trnext): should advance char-wise.
[ruby-core:43335][Bug #6156]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:42 AM Revision 7af3e9f0 (git): fix unreachable warning line number
* parse.y (block_append_gen): fix unreachable warning line number.
should warn at the code, not jump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision be2dc443 (git): fix typo
* test/ruby/test_module.rb (test_method_redefinition): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 2b906bf2 (git): verbose_warning
* test/ruby/envutil.rb (verbose_warning): should not hide execptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision d19e5328 (git): suppress warning.
* test/ruby/envutil.rb: suppress warnings.
* test/ruby/test_exception.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 36ada1b3 (git): fix indent
* test/ruby/test_exception.rb (test_exception): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 9faa9109 (git): Tempfile#open
* test/ruby/test_exception.rb (test_systemexit_new,
test_exception_in_exception_equal): use Tempfile#open.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 62cdd6e6 (git): fix argument order
* test/ruby/test_parse.rb (test_void_expr_stmts_value): expected value
comes first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision a87f0aa0 (git): bug number
* test/ruby/test_syntax.rb (test_keyword_rest): give the bug number to assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:33 AM Revision 19451891 (git): * enum.c (enum_take): allocate buffer array before iteration, as well
as enum_first did.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:02 AM Revision a920c29c (git): * enum.c (enum_first): remove duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:45 AM Revision a157c85a (git): * load.c (ruby_init_ext): don't free the given pointer itself.
It is not guaranteed even that the pointer is on heap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
05:38 AM Revision 58d1b85c (git): * vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention class variable lookup. [ruby-core:40649]
[Bug #5544]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:28 AM Revision a377ef5e (git): * vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention constant lookup. [ruby-core:41718]
[Bug #5777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:12 AM Revision 6853b44a (git): * lib/net/imap.rb (initialize): raise Net::IMAP::Error when the
connection is closed without a greeting response.
[ruby-core:40938] [Bug #5616]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:56 AM Revision ed07df5a (git): * lib/net/imap.rb (rfc822_text): ignore [] after RFC822.
[ruby-core:40945] [Bug #5620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
03:34 AM Feature #6150 (Rejected): add Enumerable#grep_v
Please add a grep_v() method to Enumerable that behaves like the opposite of grep().
For example, if Enumerable#grep() was implemented like this:
module Enumerable
def grep pattern
select {|x| pattern =~ x }
end
end
...
sunaku (Suraj Kurapati)
03:27 AM Feature #5422: File.fnmatch != Dir.glob # {no,sets}
What if we pass a File::FNM_EXTGLOB flag to the File.fnmatch methods?
File.fnmatch? '{.g,t}*', '.gem', File::FNM_EXTGLOB
The name "extglob" comes from the Bash/Zsh option for extended globbing.
sunaku (Suraj Kurapati)
03:15 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
Hello Steve,
I'm glad my patch fixed the problem for you. :)
Regarding what changed in Ruby 1.9 to cause this problem, see this earlier response:
https://bugs.ruby-lang.org/issues/2294#note-3
And to really understand the probl...
sunaku (Suraj Kurapati)
03:09 AM Revision 5308538b (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:00 AM Revision 817eb7d1 (git): * vm_insnhelper.c (argument_error): use line number at the beginning
of lambda, not the first code ob its body.
[ruby-core:43314][Bug #6151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:00 AM Revision e2ca7837 (git): * iseq.c (rb_iseq_first_lineno): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:29 AM Feature #1122: request for: Object#try
> How about just `respond` ?
>
>    foo.respond(:bar)

I like it.
-r
Anonymous
02:24 AM Feature #1122: request for: Object#try
How about 'can'?
user.can(:talk)
Just my two cents.
andhapp (Anuj Dutta)
12:26 AM Feature #1122: request for: Object#try
How about just `respond` ?
foo.respond(:bar)
And really, there's no reason it can't support delegation style *too*.
foo.respond.bar
This later form will be slower of course because it has to create an intermediate del...
trans (Thomas Sawyer)
02:22 AM Revision 29f73009 (git): * enumerator.c (lazy_take): don't enumerate an extra value.
[ruby-dev:45370] [Bug #6152]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:43 AM Bug #6144: regexec may allocate extra memory?
> ただ、なぜわざわざ一度 char* 型の変数に代入しているのかはよく分かりません。
あ、stk_alloc の計算のために char* 型でなければならないのを見落としていました。
k_takata (Ken Takata)
12:36 AM Bug #6144: regexec may allocate extra memory?
alloc_addr は、その後 OnigStackIndex* にキャストされて、OnigStackIndex の配列として使用されています。
OnigStackIndex は intptr_t の typedef ですので、xalloca で割り当てるサイズは合っています。
ただ、なぜわざわざ一度 char* 型の変数に代入しているのかはよく分かりません。
alloc_addr = (OnigStackIndex* )xalloca(sizeof(On...
k_takata (Ken Takata)
12:21 AM Bug #6144 (Assigned): regexec may allocate extra memory?
うーん、何か変えるとしたら、以下のような感じですかねぇ。
diff --git a/regexec.c b/regexec.c
index 2587cd9..9e31c71 100644
--- a/regexec.c
+++ b/regexec.c
@@ -446,16 +446,16 @@ onig_region_copy(OnigRegion* to, OnigRegion* from)
#define STACK_INIT(alloc_ad...
naruse (Yui NARUSE)

03/15/2012

11:30 PM Bug #6143: Onigmo allows broken regexp: /(?(x.)/
Onigmoのmasterブランチには修正を入れました。
https://github.com/k-takata/Onigmo/commit/35f530676970e42b83b5d6789dd5820101e430d7
現在のOnigmoは、条件式の条件には番号または名前による後方参照しか使えないのですが、それ以外のものをエラーではじいていませんでした。
k_takata (Ken Takata)
09:30 PM Revision a1f4163d (git): * enumerator.c (lazy_zip_func): variadic argument needs explicit cast
on the platforms where VALUE is longer than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:29 PM Revision 641e9e7b (git): * enumerator.c (lazy_init_iterator): no need to check overflow twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:57 PM Bug #6107: Documentation Abbrev (stdlib) confusing
Patch to fix this on trunk. zmack (Andrei Bocan)
08:53 PM Revision 25ac2aaf (git): * 2012-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:53 PM Revision 5e726766 (git): * enumerator.c (lazy_init_iterator): Fix type error (int vs long).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:25 PM Feature #1122 (Rejected): request for: Object#try
Matz still hate "try", so I'll close this ticket.
Please reopen this ticket if you have good name which convince matz.
Thanks.
authorNari (Narihiro Nakamura)
05:53 PM Feature #6070 (Rejected): The scope of for loop variables
Koichi Sasada wrote:
> (2012/03/05 16:10), Shugo Maeda wrote:
> ...
Matz has the same opinion, so I'll close this ticket.
shugo (Shugo Maeda)
05:16 PM Revision 815d88b5 (git): * 2012-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:16 PM Revision a8182419 (git): * version.h: Increase patch level [Issue 6148]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
04:53 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Thu, Mar 15, 2012 at 05:24, Nikolai Weibull <now@bitwi.se> wrote:
> 2012/3/15 U.Nakamura <usa@garbagecollect.jp>:
>> Hello,
>>
>> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() do...
now (Nikolai Weibull)
04:43 PM Bug #5486 (Closed): rb_stat() doesn’t respect input encoding
naruse (Yui NARUSE)
02:59 PM Bug #5486: rb_stat() doesn’t respect input encoding
2012/3/15 Trevor Wennblom <trevor@well.com>:
> try compiling an updated version of trunk from this repository:
>  svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_3

It is ruby_1_9_3 branch, not trunk.
For trunk,
svn ...
naruse (Yui NARUSE)
02:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On 3/14/12 11:24 PM, Nikolai Weibull wrote:
> 2012/3/15 U.Nakamura<usa@garbagecollect.jp>:
>> Hello,
>>
>> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() doesn’t respect input en...
Anonymous
01:29 PM Bug #5486: rb_stat() doesn’t respect input encoding
2012/3/15 U.Nakamura <usa@garbagecollect.jp>:
> Hello,
>
> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() doesn’t respect input encoding"
>    on Mar.13,2012 18:03:04, <now@bitwi.se>...
now (Nikolai Weibull)
04:53 PM Bug #6148 (Closed): ruby_1_9_3 revision conflict
Generally, people who want to backport should use tool/merger.rb.
It increment patch level.
naruse (Yui NARUSE)
06:11 AM Bug #6148: ruby_1_9_3 revision conflict
For backport commits, yes. I also believe rdoc-only clarifications are important and worthy of backporting.
IMO it's not a good thing to have the same A.B.Cpxyz revision available at two different points in history, especially on rele...
jonforums (Jon Forums)
04:54 AM Bug #6148: ruby_1_9_3 revision conflict
This is because I backported a small documentation change.
Should the version info be changed in those cases too?
I'm assuming it's ok to backport rdoc changes only, although I see that there was no reply to Eric Hodel's request [r...
marcandre (Marc-Andre Lafortune)
04:47 AM Bug #6148 (Closed): ruby_1_9_3 revision conflict
Please remember to update the version info when backporting. Currently there are two 1.9.3p163's that can be built from ruby_1_9_3:
ruby 1.9.3p163 (2012-03-06 revision 34932) [i386-mingw32]
ruby 1.9.3p163 (2012-03-14 revision 350...
jonforums (Jon Forums)
04:23 PM Bug #6146 (Closed): three possible bugs by nobu
r35033,r35034,r35035 nobu (Nobuyoshi Nakada)
04:15 PM Bug #6149 (Third Party's Issue): Object#tap does not return the object it is called on in some cases
nobu (Nobuyoshi Nakada)
03:06 PM Bug #6149 (Rejected): Object#tap does not return the object it is called on in some cases
drbrain (Eric Hodel)
01:11 PM Bug #6149: Object#tap does not return the object it is called on in some cases
I see that now. I'm going to close this. rjspotter (Randall Potter)
01:06 PM Bug #6149: Object#tap does not return the object it is called on in some cases
HTTParty::Response inherits from BasicObject, which doesn't define tap. So the tap method you are calling is provided by HTTParty, not by Ruby core. john_firebaugh (John Firebaugh)
12:35 PM Bug #6149 (Third Party's Issue): Object#tap does not return the object it is called on in some cases
# gem install httparty
# then in an irb console enter :
require 'httparty'
class Foo
include HTTParty
base_uri 'http://example.com'
end
Foo.get('/').class # => HTTParty::Response
Foo.get('/').tap {|x| }.class # => String # ...
rjspotter (Randall Potter)
02:20 PM Revision 2baeb782 (git): * enum.c (rb_enum_values_pack): rename from enum_values_pack, and
remove static.
* enumerator.c (lazy_init_iterator, lazy_init_yielder,
lazy_select_func, lazy_reject_func, lazy_grep_func): handle
multiple values correctly.
* enumerator.c (lazy_grep): change the behavior when a block is
given, t...
shugo (Shugo Maeda)
01:23 PM Bug #5570: Encoding of environment variables on Windows
On Thu, Mar 15, 2012 at 02:51, U.Nakamura <usa@garbagecollect.jp> wrote:
> Hello,
>
> In message "[ruby-core:43237] [ruby-trunk - Bug #5570][Feedback] Encoding of environment variables on Windows"
>    on Mar.12,2012 06:44:04, <nobu...
now (Nikolai Weibull)
10:14 AM Revision d135138f (git): * enumerator.c (lazy_zip): rescue StopIteration returned by
Enumerator#next.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
09:25 AM Revision 032861ad (git): * enumerator.c (lazy_zip, lazy_cycle): Enumerator::Lazy#{zip,cycle}
should be eager when a block is given, to be consistent with
Enumerable#{zip,cycle}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
08:47 AM Revision ff1f6107 (git): * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to
Enumerator::Lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
07:38 AM Revision 4a1db362 (git): * enumerator.c (enumerator_lazy): added cycle to the documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:37 AM Revision bf87ec4e (git): * parse.y (parser_yylex): fix warning line number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:24 AM Revision b30c4aa8 (git): * test/ruby/test_m17n.rb (assert_warning): use common method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:19 AM Revision fbdce669 (git): * enumerator.c (lazy_cycle): check argument number overflow before
creating temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:16 AM Bug #6085 (Closed): Treatment of Wrong Number of Arguments
Hi,
Martin Dürst wrote:
> While we are at it, can we also change the extremely cryptic "for".
> ...
I agree the message could be improved. I'm closing this issue, let's discuss an improved wording in #6086, which also asks the ques...
marcandre (Marc-Andre Lafortune)
06:10 AM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
Yusuke Endoh wrote:
> You know, making parsing easy is not the purpose or the right way.
> ...
Agreed.
> Looks good to me.
> ...
Thank you for reviewing my patch!
> I noticed some minor issues below.
> ...
Ok, fixed.
...
marcandre (Marc-Andre Lafortune)
06:04 AM Revision a258d6f4 (git): * util.c (ruby_strtod): no need to check same digit for hexdigit
twice. [ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:04 AM Revision 375aedbf (git): * parse.y (sym_check_asciionly): check ascii compatibility before
scanning for code range.
* parse.y (intern_str): set to us-ascii if ascii only.
[ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:03 AM Revision 36f6ce40 (git): * file.c (ruby_enc_find_basename): allow NULL as alllen.
[ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:49 AM Revision 65fcaf41 (git): * string.c (rb_str_conv_enc_opts): default to original encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:49 AM Revision f59caa29 (git): * hash.c (env_str_new, rb_f_getenv, env_fetch): use rb_str_conv_enc()
instead of rb_str_encode() to simplify the code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:57 AM Revision fcaee4bd (git): * win32/win32.c, include/ruby/win32.h (rb_w32_ugetenv): new API to
accept and to return UTF-8 strings.
* win32/win32.c (rb_w32_getenv): follow above change.
* win32/win32.c (rb_w32_get_environ): returns UTF-8 environment area.
* hash.c (env_str_new, rb_f_getenv, env_fetch): follow above changes.
[B...
U.Nakamura
03:31 AM Revision c6671f10 (git): * adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:00 AM Revision d18dc746 (git): * enumerator.c (lazy_cycle): add Enumerable::Lazy#cycle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
01:39 AM Revision c037f1f6 (git): * adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:31 AM Revision 9f9201b8 (git): * test/ruby/test_arity.rb (TestArity#err_mess): use assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

03/14/2012

10:31 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
A touch OT, but is Brian Candler being involved in the development of this? I don't know of anyone who has discussed and worked on this topic more over the years than Brian and I think it would be most prudent to seek his consul on these... trans (Thomas Sawyer)
06:25 PM Bug #6142 (Closed): Enumerable::Lazy#zip doesn't rewind internal enumerators
All enumerables passed to Enumerable::Lazy#zip are converted into lazy enumerators.
When result evaluated - ruby iterates over this enumerators while calling #next to retrieve the next value.
But those enumerators are not rewinded:
...
gregolsen (Innokenty Mikhailov)
10:12 PM Revision 724e683e (git): * vm_eval.c (check_funcall): Raise ArgumentError if respond_to?
requires more than three arguments. [Bug #6000]
* test/ruby/test_object.rb (class TestObject): Test for respond_to?
requiring more than three arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35025 b2dd03c...
drbrain (Eric Hodel)
09:23 PM Bug #6085: Treatment of Wrong Number of Arguments
Let's focus on error message consistency of WNA :-)

We'd better discuss about anything else in another thread.
Stretching a story will make the whole proposal stall.

--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:04 PM Bug #6085: Treatment of Wrong Number of Arguments
Martin Dürst wrote:
> While we are at it, can we also change the extremely cryptic "for".
> ...
I second this.
When I was new to Ruby years ago, I struggled with this "for". I'm not a native English speaker and it always kept me wonder...
mfn (Markus Fischer)
05:53 PM Bug #6085: Treatment of Wrong Number of Arguments
While we are at it, can we also change the extremely cryptic "for".
Whenever I see an error message of the form "wrong number of arguments
(X for Y)". Is it X arguments given for Y arguments expected, or X
arguments expected fo...
duerst (Martin Dürst)
09:10 PM Revision 73163024 (git): * include/ruby/intern.h: Add rb_check_arity, rb_error_arity [#6085]
* array.c: Use rb_check_arity / rb_error_arity
* class.c: ditto
* enumerator.c: ditto
* eval.c: ditto
* file.c: ditto
* hash.c: ditto
* numeric.c: ditto
* proc.c: ditto
* process.c: ditto
* random.c: ditto
* re.c: ditto
* sign...
Marc-Andre Lafortune
09:10 PM Revision 35c356ea (git): * vm_insnhelper.c: improve number of arguments error in case of
optional parameters (issue #6085)
* include/ruby/intern.h: define UNLIMITED_ARGUMENTS
* test/ruby/test_arity.rb: test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
08:07 PM Bug #6147 (Closed): should we check a result returned by fcntl?
たぶん kosaki さん (それともささださん?)
thread_pthread.c の rb_thread_create_timer_thread で
fcntl(timer_thread_pipe[1], F_SETFL, oflags);
の返り値チェックしなくていいの?ほかの fcntl の呼び出しでは
全部チェックしてるよ?って Coverity Scan さんが言ってます。
ユーザランドの開発者的にはここで fcntl で...
mame (Yusuke Endoh)
08:00 PM Bug #6146 (Closed): three possible bugs by nobu
なかださん
なかださんの変更が関わってそうな箇所で Coverity Scan が教えて
くれたことを 3 つほど送ります。
1 つめ。file.c について、r34372 の変更で
3566 end = name + *alllen;
という *alllen のデリファレンスがされるようになりましたが、その
あとに
3615 if (alllen)
3616 *alllen = n;
とあるよう...
mame (Yusuke Endoh)
07:51 PM Bug #6141: rails-3.2.2+1.9.3p125 の環境で SEGV が発生
=begin
Extracted backtrace from the dump;
-- C level backtrace information -------------------------------------------
/var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17ce58) [0x7fa1e47c3e58] vm_dump.c:796
/va...
nahi (Hiroshi Nakamura)
06:05 PM Bug #6141 (Rejected): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
表題の環境で selenium のテストを実行している最中に net/http の先の何処かで SEGV が発生しました。
スタックトレースを添付します。
hsbt (Hiroshi SHIBATA)
07:48 PM Bug #6145 (Closed): two possible bugs in Onigmo
naruse さん、k-takata さん
遠藤です。
Coverity Scan さんが見つけてくれたバグの可能性 2 つです。
(ただし false positive の可能性は高い)
1 つめ。regcomp.c の compile_length_enclose_node という関数で
1222 if (node->target) {
1223 tlen = compile_length_tree(node->targe...
mame (Yusuke Endoh)
07:44 PM Bug #6144 (Closed): regexec may allocate extra memory?
naruse さん、k-takata さん
遠藤です。
多分鬼車の問題なんですが、regexec.c に
alloc_addr = (char* )xalloca(sizeof(char*) * (ptr_num));\
という行があります。(#define STACK_INIT 内)
前後見てませんが、
alloc_addr = (char* )xalloca(sizeof(char) * (ptr_num));\
または
...
mame (Yusuke Endoh)
07:40 PM Bug #6143 (Closed): Onigmo allows broken regexp: /(?(x.)/
naruse さん、k-takata さん
遠藤です。
Onigmo の条件式正規表現のパースでエラーチェックが足りないようです。
$ ./miniruby -e 'p /(?(x.)/'
/(?(x.)/
マッチさせると、未初期化変数を使って分岐とかしてしまうようです。
$ valgrind ./miniruby -e '"x"[/(?(x)/]'
(略)
==25802== Conditional jump or move depen...
mame (Yusuke Endoh)
07:17 PM Feature #5607: Inconsistent reaction in Range of String
Yui NARUSE wrote:
> What is your plan?
Short version: Make it work the way Matz described it in http://bugs.ruby-lang.org/issues/5607#note-7.
I haven't yet looked at the code, but Benoit provides some good pointers. I hope to ha...
duerst (Martin Dürst)
05:30 PM Bug #6124: remove the "spec-only gems" in Ruby 1.9.3 (was What is the purpose of "fake" gems in Ruby)
Here is another issue:
If a gem package wants to depend on a gemified piece of standard library, it should also have it in its gemspec, right? As Vit has already mentioned, we had completely unbundled the fake-gems, but we are getting a...
Anonymous
05:29 PM Bug #6140 (Rejected): test
naruse (Yui NARUSE)
05:28 PM Bug #6140 (Rejected): test
Redmineを1.3.2にしたのでテスト naruse (Yui NARUSE)
04:00 PM Revision 74bdcfe8 (git): * 2012-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:00 PM Revision 552adf8c (git): * enumerator.c (enumerable_lazy): fix the documentation of
Enumerable#lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
01:52 PM Revision 0562e3ff (git): * ChangeLog: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:04 PM Revision c8860b50 (git): * enumerator.c (lazy_init_iterator): break when Qundef is returned
to make obj.drop(3).take(2) work properly.
* enumerator.c (lazy_take_while): add Enumerable::Lazy#take_while.
* enumerator.c (lazy_drop): add Enumerable::Lazy#drop.
* enumerator.c (lazy_drop_while): add Enumerable::Lazy#drop_while.
*...
shugo (Shugo Maeda)
10:29 AM Revision 0b35e9e5 (git): * enumerator.c (lazy_take): add Enumerable::Lazy#take.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
09:41 AM Revision 0d94434e (git): * enumerator.c: use long for array indices.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
09:26 AM Revision 449c8a2b (git): * enumerator.c: moved the comment of StopIteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
08:56 AM Revision cc3d03b1 (git): * numeric.c (flodivmod): must through the same pass if HAVE_FMOD or not.
this is a bugfix of r35013.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:42 AM Revision 005953a1 (git): * test/test_tmpdir.rb (TestTmpdir#test_world_writable): skip on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:10 AM Revision 4c2e2d8b (git): * numeric.c: fix flodivmod for cornercases [Bug #6044]
add ruby_float_mod
* insns.def (opt_mod): use ruby_float_mod
* internal.h: declare ruby_float_mod
* test/ruby/test_float.rb: tests for above
* test/ruby/envutil.rb: create helper assert_is_minus_zero
git-svn-id: svn+ssh://ci.ruby-la...
Marc-Andre Lafortune
05:16 AM Bug #6137: openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
Oh, thanks for the hint! Yes, now it makes sense why MD5 was used. I still think we don't need a crypto-strength hash just to simply bound a value by length, especially if it's not critical to security otherwise. We could use Object#hash... MartinBosslet (Martin Bosslet)
03:58 AM Bug #6137: openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
SHA-1 would work too - for a few years, until it's cryptographically broken enough to no longer be FIPS approved, like MD5 is. But if you could do it without hashing, that would quash the problem forever.
Ah - here's why to hash it: h...
jared.jennings.ctr (Jared Jennings)
02:25 AM Bug #6137 (Assigned): openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
Thank you for your detailed analysis! Judging from OpenSSL's documentation [1] the parameter can potentially be any binary data and should not be critical for the overall security, so it might be possible to just use no hash at all. I'll... MartinBosslet (Martin Bosslet)
12:43 AM Bug #6137 (Closed): openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
=begin
I've got a host configured to be compliant with ((<U.S. Federal Information Processing Standard 140-2|URL:http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf>)) (FIPS 140-2). On this host, the OpenSSL library refuses to...
jared.jennings.ctr (Jared Jennings)
04:49 AM Revision 4bb729a2 (git): * 2012-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:49 AM Revision 45086d1b (git): merge revision(s) 35010:
* variable.c: Simplify rdoc for remove_const [Bug #5354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:48 AM Revision 092db4dc (git): * variable.c: Simplify rdoc for remove_const [Bug #5354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:29 AM Revision 4bce9fc7 (git): more GCable
* test/test_weakref.rb (make_weakref): more GCable, probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Bug #6134: Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Alright, so it is caused by something in 1.9.3. Thanks, that already helps a lot! MartinBosslet (Martin Bosslet)
01:44 AM Revision cb1d2908 (git): * enumerator.c (lazy_grep_func): should use === instead of =~, as
well as Enumerable#grep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 8f30190d (git): InitVM_Enumerator
* enumerator.c (InitVM_Enumerator): split from Init_Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 8cdfe403 (git): Init_Enumerator
* enumerator.c (Init_Enumerator): initialize method IDs first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 48f9f0bd (git): method_ids
* template/id.h.tmpl (method_ids): define at once predefined method IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/13/2012

11:16 PM Revision 6b452591 (git): * enumerator.c (lazy_zip_func): use each for non-Array objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
11:08 PM Revision 22434473 (git): * enumerator.c (lazy_zip): add Enumerable::Lazy#flat_map.
* enumerator.c (lazy_lazy): just returns self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
10:56 PM Revision f24d9fcd (git): * ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:34 PM Bug #6134: Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
I don't believe OpenSSL has been upgraded, but, running "openssl version" gives me:
OpenSSL 0.9.8r 8 Feb 2011
I reinstalled 1.9.2-p318 (and 1.9.2-p180) and everything worked as expected (same as before - no segfault). I then reinstalle...
mattv (Matt Venables)
05:35 AM Bug #6134 (Assigned): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Thank you for reporting this issue. Could you please verify that your (native) OpenSSL library has not been upgraded in the meantime? If it was, could you please additionally check if the problem still does not occur when using a re-inst... MartinBosslet (Martin Bosslet)
01:44 AM Bug #6134 (Closed): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Reproducing steps:
Run the following script in 1.9.3-p125 (it is attached to the issue as well)
require 'openssl'
contents = File.read(__FILE__)
begin
OpenSSL::PKCS7.new(contents)
puts "OK"
rescue => e
puts "Error!"
p...
mattv (Matt Venables)
10:00 PM Bug #5989 (Closed): Keyword spash is syntax error when there are no explicit keyword arguments
This issue was solved with changeset r34999.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (iseq_set_arguments): keyword rest arg without keywor...
nobu (Nobuyoshi Nakada)
09:59 PM Bug #5989 (Open): Keyword spash is syntax error when there are no explicit keyword arguments
nobu (Nobuyoshi Nakada)
03:17 PM Bug #5989 (Closed): Keyword spash is syntax error when there are no explicit keyword arguments
This issue was solved with changeset r34998.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (block_param, f_args): add rules for the case arguments...
nobu (Nobuyoshi Nakada)
08:53 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello,

2012/3/13, Marc-Andre Lafortune <ruby-core@marc-andre.ca>:
> Eric Hodel wrote:
>> Much like NameError#name and LoadError#path, why not
>> ArgumentError#expected and ArgumentError#given? Also,
>> ArgumentError#method...
mame (Yusuke Endoh)
08:53 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello,

> On Mon, Mar 12, 2012 at 10:31 AM, Yui NARUSE <naruse@airemix.jp> wrote:
>> Use one of follwing:
>> * https://github.com/marcandre/ruby/compare/rb_arity_check
>> * https://github.com/marcandre/ruby/compare/rb_arity_ch...
mame (Yusuke Endoh)
12:05 PM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
Eric Hodel wrote:
> Much like NameError#name and LoadError#path, why not ArgumentError#expected and ArgumentError#given? Also, ArgumentError#method could return the method name called.
We could have something similar to that,...
marcandre (Marc-Andre Lafortune)
07:27 AM Bug #6085: Treatment of Wrong Number of Arguments
Much like NameError#name and LoadError#path, why not ArgumentError#expected and ArgumentError#given? Also, ArgumentError#method could return the method name called.
This eliminates the need for parsing of the error message, but the n...
drbrain (Eric Hodel)
05:58 AM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
On Mon, Mar 12, 2012 at 8:07 AM, Yusuke Endoh <mame@tsg.ne.jp> wrote:
> One concern: I'm afraid if this change affects people who parses
> ...
The error type is part of the language specs, but I feel like error messages are not ...
marcandre (Marc-Andre Lafortune)
06:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Sun, Mar 11, 2012 at 22:41, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> Issue #5486 has been updated by Nobuyoshi Nakada.
>
> Category changed from core to M17N
> Status changed from Assigned to Feedback
> Priority c...
now (Nikolai Weibull)
03:26 PM Revision db68d5ba (git): * 2012-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 08d81f26 (git): fix ripper
* parse.y (new_args_gen, new_args_tail_gen): fix ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:06 PM Bug #595 (Assigned): Fiber ignores ensure clause
naruse (Yui NARUSE)
01:03 PM Bug #5568 (Closed): IO#set_encoding ignores internal when the same as external only when specified as "ext:int"
This issue was solved with changeset r34997.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (io_encoding_set): always warn if external encoding and i...
naruse (Yui NARUSE)
01:00 PM Revision 8fe3fb4c (git): * compile.c (iseq_set_arguments): keyword rest arg without keyword args.
* node.c (dump_node): dump kw_rest_arg too.
* parse.y (block_param, f_arg): more kwrest patterns.
[ruby-core:42455][Bug #5989]
* parse.y (new_args_gen): no extra kw_rest_arg if no keyword rest arg.
git-svn-id: svn+ssh://ci.ruby-lang....
nobu (Nobuyoshi Nakada)
12:37 PM Bug #5350 (Closed): WeakRef で謎の NoMethodError
This issue was solved with changeset r34995.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Bug #5350
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][B...
nobu (Nobuyoshi Nakada)
11:15 AM Bug #4814 (Rejected): minitest 2.2.x and test/unit do not get along
Rejecting because of no feedback and I can't reproduce in my environment.
(if this issue is still reproducible, please reopen)
sorah (Sorah Fukumori)
11:06 AM Bug #4434 (Feedback): make test-all "-j10000" のように大きな並列数を与えると異常終了
r34968 の変更で IO.popen による worker プロセスの起動に失敗した時に
>ERROR: Failed to launch job process - Errno::EMFILE: Too many open files - ./miniruby
と表示されるようになったので make test-all TESTS="-j10000" で現在チケットに書いてあるような
分かりにくい異常終了の仕方にはなってないのですが問題無いでしょうか。...
sorah (Sorah Fukumori)
10:59 AM Bug #5238 (Closed): installation failure if --with-sitedir=no or --with-vendordir=no
This issue was solved with changeset r34993.
Sakuro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/rbinstall.rb (prepare): skip if basedir is not defined.
...
nobu (Nobuyoshi Nakada)
09:25 AM Feature #6136 (Rejected): Add gpg signatures whenever releasing ruby source tarballs
I was one of the unfortunate people quick enough to grab the buggy version of ruby that contained bug #6040 as announced here:
http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/
Someone notified me that the md5s...
td123 (Thomas Dziedzic)
07:10 AM Bug #6132 (Rejected): Assignments don't happen correctly in "if" modifiers
This is a feature of ruby.
Ruby parses left to right, so it see "lo" on the assignment side of the if. Since no local variable "lo" has been encountered yet it must be a method. Ruby then encounters the assignment to lo and creates ...
drbrain (Eric Hodel)
06:17 AM Revision d6a977f6 (git): * parse.y (block_param, f_args): add rules for the case arguments
begin with kwrest. [ruby-core:42455][Bug #5989]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
Nathaniel Talbott wrote:
> FYI, this does seem to break compatibility if you're using a fingerprint of the key for something, since (I just learned) key fingerprints are dependent on the format the key is stored in (since the fingerprin...
MartinBosslet (Martin Bosslet)
01:32 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
FYI, this does seem to break compatibility if you're using a fingerprint of the key for something, since (I just learned) key fingerprints are dependent on the format the key is stored in (since the fingerprint is based on the MD5 of the... ntalbott (Nathaniel Talbott)
04:03 AM Revision db83618d (git): * io.c (io_encoding_set): always warn if external encoding and internal
encoding are identical. [ruby-core:40727] [Bug #5568]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:03 AM Revision 272d72ef (git): Fix error and show given message and match message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:37 AM Revision df058ea0 (git): Bug #5350
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350]
* lib/weakref.rb: use WeakMap instead of _id2ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:34 AM Revision 826cdd67 (git): assert_warn, assert_warning
* test/ruby/envutil.rb (assert_warn): add optional message argument.
* test/ruby/envutil.rb (assert_warning): moved from test_io_m17n.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:59 AM Revision 7e82db2e (git): * tool/rbinstall.rb (prepare): skip if basedir is not defined.
[ruby-core:39135][Bug #5238]
* tool/rbinstall.rb (CONFIG.[]): check for mandatory
configurations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:59 AM Revision 8a8936cb (git): re-configure
* Makefile.in (reconfig, config.status): re-configure for version numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:35 AM Bug #5493 (Feedback): Commit r33357 breaks build on Debian/sparc
I cannot reproduce it on sparc Solaris 10.
ngoto (Naohisa Goto)
12:17 AM Feature #6133 (Assigned): SSLSocketをshutdownできない
http://www.openssl.org/docs/ssl/SSL_shutdown.html
に対応するメソッドがないので、送信の終わりを送れません。ただし微妙にshutdown(2)とインターフェースが違ってます。
kik (Masashi Kikuchi)

03/12/2012

11:52 PM Bug #6132 (Rejected): Assignments don't happen correctly in "if" modifiers
This works:
if lo = 3
la = lo
end
but this does not:
(la = lo) if (lo = 3)
It raises "NameError: undefined local variable or method `lo' for main:Object." But if you look at the values afterwards you get lo -> 3, la -> nil.
ibrahimtencer (Ibrahim Tencer)
11:31 PM Bug #6085: Treatment of Wrong Number of Arguments
Yusuke Endoh wrote:
> Hello, Marc-Andre
> ...
Use one of follwing:
* https://github.com/marcandre/ruby/compare/rb_arity_check
* https://github.com/marcandre/ruby/compare/rb_arity_check.diff
* https://github.com/marcandre/ruby/compar...
naruse (Yui NARUSE)
09:23 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello, Marc-Andre

Sorry I was missing this ticket. Your proposal looks smart to me.

I'd like to try and review your patch, but unfortunately, I seem
to be too old to find the actual changes from github interface :-(
Could...
mame (Yusuke Endoh)
11:07 PM Bug #6131 (Closed): Ctrl-C handler do not work from exec process (Windows)
Hello,
Originally reported to TheCodeShop group: https://groups.google.com/forum/?fromgroups#!topic/thecodeshop/ZI9FY-RKYgs
The usage of "rails server" uses `exec` to spawn another process to run a server, and that process do not h...
luislavena (Luis Lavena)
09:20 PM Bug #5493: Commit r33357 breaks build on Debian/sparc
Hello,
I can't check this ticket because I have no sparc machine.
Goto-san, could you check it?
r33357 itself looks simple and benign. But it is also big
and tedious, so there may be a careless mistake.
--
Yusuke Endoh <mam...
mame (Yusuke Endoh)
07:23 PM Bug #5567 (Closed): IO#set_encoding ignores one invalid encoding unless a second argument is passed
This issue was solved with changeset r34986.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* encoding.c (rb_find_encoding): new function find encoding from...
nobu (Nobuyoshi Nakada)
04:53 PM Bug #5570: Encoding of environment variables on Windows
On Sun, Mar 11, 2012 at 22:44, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> Issue #5570 has been updated by Nobuyoshi Nakada.
>
> Status changed from Assigned to Feedback
> Target version set to 2.0.0
>
> Which codepage shoul...
now (Nikolai Weibull)
06:44 AM Bug #5570 (Feedback): Encoding of environment variables on Windows
Which codepage should be used there, ACP or OEMCP? nobu (Nobuyoshi Nakada)
12:10 AM Bug #5570: Encoding of environment variables on Windows
Correct,
A example that reproduces the issue:
luislavena (Luis Lavena)
12:05 AM Bug #5570 (Assigned): Encoding of environment variables on Windows
Ah, you are saying "use Wide API". naruse (Yui NARUSE)
03:17 PM Revision 7f199d12 (git): Add missing assert_warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:12 PM Revision 6c698654 (git): * 2012-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:12 PM Revision f0f777bc (git): * enumerator.c (enumerable_lazy): added the documenation of Enumerable#lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
02:56 PM Bug #5847 (Closed): Old Ruby 1.8 state flag for yield node appears to be unused
This issue was solved with changeset r34984.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* node.h (NEW_YIELD), parse.y (new_yield_gen): array-values fla...
nobu (Nobuyoshi Nakada)
01:49 PM Feature #6129: String#each_lineにおけるmemmem()の利用
=begin
確認したい点があります。
* パラグラフモードでも効果があるか
* マルチバイト文字の途中にマッチした場合はどうなるか
また、追加されたコードが既存のコードとかなり重複しているように見えます。
重複を減らすのは難しいでしょうか。
=end
nobu (Nobuyoshi Nakada)
12:54 PM Bug #5833 (Closed): [mingw] trivial patch for thread.c build warning
nobu (Nobuyoshi Nakada)
12:47 PM Bug #5829: /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
Seems like a bug in the test code. nobu (Nobuyoshi Nakada)
12:44 PM Bug #5473 (Closed): Raise in method_missing causes infinite loop
This issue was solved with changeset r34983.
Peter, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_method.c (Init_eval_method): copy basic methods to Exceptio...
nobu (Nobuyoshi Nakada)
11:19 AM Revision b681457f (git): * lib/tmpdir.rb (Dir::tmpdir): test the current directory suitable for
temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:09 AM Revision 5e3009aa (git): * lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue
clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:24 AM Bug #5374 (Feedback): Weird SecurityError with ruby1.9, File.stat/Dir.glob and $SAFE=1
Does this happen with recent versions? nobu (Nobuyoshi Nakada)
10:23 AM Revision 33ceea5c (git): * encoding.c (rb_find_encoding): new function find encoding from
arbitrary object as a pointer to rb_encoding, and return NULL if
not found.
* io.c (io_encoding_set): just warn unsupported encodings, but not
exception. [ruby-core:40726] [Bug #5567]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
10:03 AM Revision c60602ac (git): * vm_method.c (Init_eval_method): respond_to? and
respond_to_missing? are public.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:21 AM Feature #6130 (Closed): inspect using to_s is pain
Every time I define #to_s on a class I have to remember to also redefine #inspect. It's annoying and has led me to waste hours debugging b/c the errors that can occur from it often seem strange and unrelated.
I think #inspect should h...
trans (Thomas Sawyer)
06:41 AM Bug #5486 (Feedback): rb_stat() doesn’t respect input encoding
Does this issue still occur? nobu (Nobuyoshi Nakada)
05:56 AM Revision c5feeb9a (git): * node.h (NEW_YIELD), parse.y (new_yield_gen): array-values flags
has been already obsolete. patch by Thomas Enebo.
[ruby-core:41929][Bug #5847]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:44 AM Revision a2229db3 (git): * vm_method.c (Init_eval_method): copy basic methods to Exception.
[ruby-core:40287][Bug #5473]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:13 AM Revision b19f3a8a (git): * eval_jump.c (rb_exec_end_proc): remember the latest exit status.
[ruby-core:43173][Bug #5218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:32 AM Revision 90b7ddb8 (git): Exclude json/add/complex.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
 

Also available in: Atom