Activity
From 10/13/2012 to 10/19/2012
10/19/2012
-
10:53 PM Bug #7050: encoding of String#unpack for 'H', 'h', 'B' and 'b'
- On 19 October 2012 07:47, naruse (Yui NARUSE) <naruse@airemix.jp> wrote:
> Eregon (Benoit Daloze) wrote:
>> Ping!
>>
>> I would like to merge this.
>> If there are no objections, may I merge this in a week?
>
> OK, here yo... -
10:13 PM Bug #7050 (Closed): encoding of String#unpack for 'H', 'h', 'B' and 'b'
- This issue was solved with changeset r37269.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
set encoding to ASCII for appropriate String#unpack modifiers
... -
02:47 PM Bug #7050: encoding of String#unpack for 'H', 'h', 'B' and 'b'
- Eregon (Benoit Daloze) wrote:
> Ping!
> ...
OK, here you go -
09:23 PM Bug #6548: Rake doesn't ignore arguments after --
- Thanks for pointing me out to the documentation, Jim, but just knowing
about this feature existence was enough for me to get it working
yesterday night:
https://github.com/rosenfeld/oojs_assets_enabler/commit/a38f67278821a4d7... -
12:18 PM Bug #6548: Rake doesn't ignore arguments after --
- Actually, the post Eric refers to is a bit out of date. Look for the section "Tasks with Arguments" in the Rakefile writeup on GitHub: https://github.com/jimweirich/rake/blob/master/doc/rakefile.rdoc
-
10:12 AM Bug #6548: Rake doesn't ignore arguments after --
- Great! Thank you so much, Eric! I'll give it a try as soon as I find some time to work on this again.
-
09:25 AM Bug #6548: Rake doesn't ignore arguments after --
- Use rake task arguments:
http://rubyforge.org/pipermail/rake-devel/2007-December/000352.html
See also:
http://lmgtfy.com/?q=rake+task+arguments -
09:16 AM Bug #6548: Rake doesn't ignore arguments after --
- Here is my use case. I've developed some gems for testing client-side code, including oojs. I've created an example on how to use it even for non-Ruby/Rails applications.
Then I created a task like "rake oojs:spec -- --name=shopping_c... -
04:09 AM Bug #6548: Rake doesn't ignore arguments after --
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> It is not a matter of respect. I do respect Jim's opinion, but this is how I see this.
> ...
More accurately, in most unix programs, "--" denotes that everything after is treated as an argum... -
03:24 AM Bug #6548: Rake doesn't ignore arguments after --
- It is not a matter of respect. I do respect Jim's opinion, but this is how I see this.
Clearly this is not expected behavior for any script (in Unix, -- means that additional options should be ignored).
Now if rake was independent ... -
03:12 AM Bug #6548: Rake doesn't ignore arguments after --
- With all due respect to matz, the final decision should be Jim's.
Jim wrote rake and rake has supported the current behavior for many years. Please respect Jim's decision. -
02:49 AM Bug #6548: Rake doesn't ignore arguments after --
- It seems Jim Weirich doesn't believe this is a bug actually. I'd like to open up this for further discussion on ruby-core list.
Matz, do you have any opinion about how rake should handle "--" in arguments list? - 09:20 PM Revision 167c4781 (git): * 2012-10-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:20 PM Revision fb03eb91 (git): * hash.c (initialize_copy): unset the default proc if there isn't one
- for the target hash, call to_hash, check frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:20 PM Feature #7132: Alternation between named / ordered method arguments and aliases for method arguments.
- =begin
def new_thief(n = "John Doe", name: n, hp: 9, dex: 11, hit_points: hp, dexterity: dex)
=end -
10:05 AM Feature #7132: Alternation between named / ordered method arguments and aliases for method arguments.
- =begin
I can't imagine anyone wanting to implement this. Your use case for the named aliases is way too niche (and to be honest, unconvincing; why can't your colleagues just learn the interface) and just adds unnecessary complexity. As ... -
02:59 PM Bug #7184: --disable-gems commandline parameter does not show up with ruby -h
- On 2012/10/19 12:02, U.Nakamura wrote:
> Hello,
>
> In message "[ruby-core:48081] [ruby-trunk - Bug #7184] --disable-gems commandline parameter does not show up with ruby -h"
> on Oct.19,2012 11:41:49,<nobu@ruby-lang.org> ... -
12:23 PM Bug #7184: --disable-gems commandline parameter does not show up with ruby -h
- Hello,
In message "[ruby-core:48081] [ruby-trunk - Bug #7184] --disable-gems commandline parameter does not show up with ruby -h"
on Oct.19,2012 11:41:49, <nobu@ruby-lang.org> wrote:
> Yes, another idea is adding a new opti... -
11:41 AM Bug #7184: --disable-gems commandline parameter does not show up with ruby -h
- Yes, another idea is adding a new option to show all.
-
09:12 AM Bug #7184: --disable-gems commandline parameter does not show up with ruby -h
- There are many options that do not show up with --help including all of the --disable-feature options.
I believe that historically --help hasn't show all of the options ruby supports in order to allow --help to fit on one screen.
Y... -
06:15 AM Bug #7184 (Closed): --disable-gems commandline parameter does not show up with ruby -h
- The --disable-gems commandline parameter, as documented in The Ruby Programming Language, is not listed when exploring the options with 'ruby -h'.
-
01:22 PM Revision 2fe13f62 (git): vm.c: pass through thrown objects
- * vm.c (rb_vm_jump_tag_but_local_jump): pass through thrown objects.
[ruby-dev:46234] [Bug #7185]
* vm_eval.c (rb_eval_cmd): if state is non-zero, val should be nil and
rb_vm_jump_tag_but_local_jump() just jump tag.
git-svn-id: svn... -
01:13 PM Revision b0e40509 (git): set encoding to ASCII for appropriate String#unpack modifiers
- * pack.c (pack_unpack): set encoding of the
'H','h','B' and 'B' modifiers to US-ASCII.
* test/ruby/test_pack.rb: tests for the above.
[ruby-core:47653][Bug #7050]
* test/test_securerandom.rb: tests for SecureRandom.hex
from tenderl... -
01:11 PM Bug #7163 (Assigned): Chomp problem in pkg_config of mkmf.rb (ruby 1.9.3 P286)
-
01:09 PM Bug #7172 (Closed): [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
- Already backport at r37155.
-
10:38 AM Revision f4dbc7a3 (git): * method.h (rb_method_cfunc_t::invoker): add new field (func ptr)
- `invoker'. `invoker' function invoke cfunc body
(rb_method_cfunc_t::func).
`invoker' is set at method definition timing.
With this change, the big `switch' (branch) in `call_cfunc()'
is no longer needed.
However, the performanc... -
10:29 AM Feature #7114: New classes: `HumanTime::LocalTime`, `HumanTime::Duration`
- Personally, I find Ruby's whole Time API to be lack-luster and frustrating. It's probably the thing I like least about Ruby. I'd be in favor of a total redesign of Ruby's Time classes. A certain number of improvements could be made witho...
-
10:11 AM Feature #7121: Extending the use of `require'
- I personally don't mind your suggestion. It makes sense to me. I can't think of any potential negative side effects. On that note, I think the return value should always be a boolean, instead of a boolean OR an array of booleans dependin...
-
07:57 AM Revision 0fc7f4bb (git): * eval.c, vm_eval.c: use TH_PUSH_TAG() instead of PUSH_TAG().
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:31 AM Revision 9b1d0762 (git): merge revision(s) 37242: [Backport #7120]
- * configure.in (opt-dir): allow multiple directories separated by
$PATH_SEPARATOR as well as dir_config in mkmf.rb. [ruby-core:47868]
[Bug #7120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37266... -
03:54 AM Feature #7106: FileUtils.touch should allow touching the symlink itself rather than the file the link points to
- Hey,
Small updates regarding this :) Support for nanoseconds in Linux kernel for VFS and stat(2) was added around 2.5.38[1]. Then, adding support of lutimes(3) was already mentioned here: http://bugs.ruby-lang.org/issues/4052
Said ... -
02:15 AM Revision e99989bf (git): * benchmark/driver.rb: remove unexpected `output'.
- (commit miss)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Bug #7168: File.join trips over string encodings
- You are right that Darwin doesn't have this problem, as far as I know. As I pointed out the problem was originally found on Windows, where the filesystem uses UTF-16.
Why is the behavior that I expected (that File.join can work with a... -
01:24 AM Revision 3daa9b9f (git): * vm_insnhelper.c (vm_search_method): remove needless local variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:23 AM Revision f2a9c42c (git): * benchmark/bmx_temp.rb: removed.
- This file should not be in repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:22 AM Revision 0801dba3 (git): * 2012-10-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:22 AM Revision a31d53ec (git): * benchmark/driver.rb: add new option `--ruby-arg [ARG]'
- which is passed as a launch parameter for each ruby's execution.
($ ruby [ARG] [File])
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/18/2012
-
09:55 PM Bug #7182 (Rejected): bug with Array#sort ?
-
09:54 PM Bug #7182: bug with Array#sort ?
- ご説明ありがとうございます。
非常に勉強になりました、お騒がせしてしまい申し訳ございません。
-
09:38 PM Bug #7182: bug with Array#sort ?
- > case 2,3,6は["1", "2", "3", "4", "10", "11", "23"]が期待値だと思うのですがどうでしょう。
これは、
p(ary.sort) do |a, b|
a.to_i <=> b.to_i
end
と解釈されて、ブロックは p に渡したと解釈されて、無視されています。
() を使うか、ブロックを {} で書くか、一旦別の変数に代入すると、期待する通りに動くと思います。
p(ary.sort do... -
09:35 PM Bug #7182: bug with Array#sort ?
- do..endの優先度が低くてpの引数扱いされてるんですね。
失礼いたしました。 bugではありませんでした。
-
08:39 PM Bug #7182: bug with Array#sort ?
- case 2,3,6は["1", "2", "3", "4", "10", "11", "23"]が期待値だと思うのですがどうでしょう。
-
08:36 PM Bug #7182 (Rejected): bug with Array#sort ?
- Array.sortにコードブロックを与え、出力した際( p ary.sort do |a,b| .. end )にコードブロックでのソート条件が無視されて出力される
# case 1
ary = ["1", "2", "10", "11", "3", "4", "23"]
p ary.sort
# result: ["1", "10", "11", "2", "23", "3", "4"]
#case 2
ary = ["1", "2", "1... -
09:47 PM Bug #7183 (Closed): Resolv::DNS::getresources throws Errno::EACCES: Permission denied - bind(2) on solaris
- we have ruby running on Solaris. sometimes one of our tools fails with exception Errno::EACCES while calling Resolv::DNS::getresources. This only happens one out of thousands of times the tool is used.
After looking into lib/resolv.rb ... -
04:10 PM Feature #6875: Make test/unit default gem
- Hi guys,
Could you please enlighten what this issue solves? Adding .gemspec is not enough to create valid gem. The gem typically consist from following properties:
1) The /usr/bin stub allow to load specified version of gem, e.g. c... -
12:51 PM Feature #7181: New Methods On OpenSSL::OCSP::CertificateId
- Oops, left one extraneous line in a test. Removed in v2.
-
12:43 PM Feature #7181 (Closed): New Methods On OpenSSL::OCSP::CertificateId
- This patch adds 3 new methods to OpenSSL::OCSP::CertificateId. These methods are useful when building an OCSP responder or doing comparison without repeatedly calling OpenSSL::OCSP::CertificateId#cmp_issuer
#issuer_name_hash
#issuer_... -
09:44 AM Revision 7e8f558a (git): * insns.def (opt_send_simple): move the location of
- `opt_send_simple' to the place near `send' definition.
(to take care about icache locality).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:41 AM Revision d0ead208 (git): * insns.def (send): remove unused condition.
- This condition will be true after r37258.
* vm_insnhelper.c (vm_caller_setup_args): remove `UNLIKELY' on
checking blockiseq (it seems `LIKELY').
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37259 b2dd03c8-39d4-4d8f-98ff-823fe69... -
09:35 AM Bug #7180 (Feedback): set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
- =begin
I can't reproduce this. Can you provide a way to reproduce it?
With trunk:
$ time ruby20 -ve 'set_trace_func proc {|event, file, line, id, binding, classname| raise "error"}; loop do 1 + 1 end'
ruby 2.0.0dev (2012-09-... -
02:49 AM Bug #7180: set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
- One workaround:
l = lambda {|event, file, line, id, binding, classname| eval "def invalid syntax"}
set_trace_func proc {|event, file, line, id, binding, classname| begin;l.call(event, file, line, id, binding, classname);rescue SystemExi... -
02:34 AM Bug #7180 (Closed): set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
- Causes 100% cpu usage and cannot ctrl-C to exit (have to kill proc):
set_trace_func proc {|event, file, line, id, binding, classname| raise "error"}
Understand that set_trace_func plays by different rules, but this isn't expected. -
09:17 AM Bug #7166: Speed up Hash#dup by patching Hash#initialize_copy
- I added the call to rehash and tested. It's still faster than using rb_hash_replace, so I'll add the fix.
Sorry I broke the tests! -
08:35 AM Revision 1486b9cf (git): * insns.def (opt_send_simple): introduce new instruction used
- when no need to care about block and splat.
* compile.c: use the `opt_send_simple' instruction.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:44 AM Revision 6be52625 (git): vm_method.c: check arity earlier
- * vm_method.c (rb_add_method_cfunc, rb_add_method_cfunc_frameless):
check arity earlier at definition time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:33 AM Bug #7050: encoding of String#unpack for 'H', 'h', 'B' and 'b'
- Ping!
I would like to merge this.
If there are no objections, may I merge this in a week? -
06:57 AM Revision 60f949e1 (git): ChangeLog: adjust spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:14 AM Revision fea629da (git): * vm_insnhelper.c: add `inline' keyword to several functions.
- Compilers (gcc) are conservative than I expected.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:04 AM Revision cc012cfb (git): * include/ruby/ruby.h: add a decl. of
- `rb_define_frameless_method()'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:33 AM Revision c992cec4 (git): * compile.c (new_callinfo): set a temporary index of callinfo
- (used in `iseq_set_sequence()') to rb_call_info_t::aux::index.
rb_call_info_t::argc is initialiesed by same value of
rb_call_info_t::orig_argc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37253 b2dd03c8-39d4-4d8f-98ff-823fe6... -
05:22 AM Revision 588b73bc (git): * class.c (rb_define_frameless_method): rename from
- rb_define_method_fast(). Defined method with this C API
does not make a method frame. It is bit lightweight than
ordinal C functions. Now only 0 or 1 argc are permitted.
* method.h (VM_METHOD_TYPE_CFUNC_FRAMELESS): rename macro name
... -
03:00 AM Feature #6647: Exceptions raised in threads should be logged
- I started prototyping a callback version and ran into some complexities I could not easily resolve:
* How does abort_on_exception= interact with a callback system?
** I tried implementing abort_on_exception=true to use a builtin call... -
02:35 AM Feature #7148: Improved Tempfile w/o DelegateClass
- JRuby has been running with `Tempfile < File` for a couple years now, and have received only minor bug reports about it. It works very well, and has no delegation cost.
-
01:30 AM Revision 676c01bb (git): parse.y: fail if yyerror
- * parse.y (assignable_gen): fail if yyerror occurred. fix a bug in
r36973.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:29 AM Revision 849c4eaa (git): test_syntax.rb: test_unassignable
- * test/ruby/test_syntax.rb (TestSyntax#test_unassignable): assert
keywords are unassignable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:35 AM Bug #7179 (Closed): IO doc: wrong/misleading text for mode
- affects also 1.9.2, 1.9.1, 1.8.7
http://www.ruby-doc.org/core-1.9.3/IO.html makes the impression
that "b" and "t" are valid on their own, when in fact they're
modifiers and need to be preceded by one of the "real" modes
(a, r, w, a... - 12:24 AM Revision 46a45ca6 (git): * 2012-10-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:24 AM Revision a34a3c2c (git): * hash.c (initialize_copy): duping should rehash the hash.
- * test/ruby/test_hash.rb: added a test to ensure rehash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/17/2012
-
11:22 PM Bug #7166: Speed up Hash#dup by patching Hash#initialize_copy
- Compatibility is important. Call rehash in initialize_copy and see how performance changes.
Matz.
-
11:08 AM Bug #7166 (Assigned): Speed up Hash#dup by patching Hash#initialize_copy
- This introduce imcompatiblity.
A testcase of Sets fails.
I've added a new test to test/ruby/test_hash.rb to clarify the problem
at r37238. -
06:47 AM Bug #7166 (Closed): Speed up Hash#dup by patching Hash#initialize_copy
- Thanks. I've committed this in r37232
-
09:55 PM Feature #6643: io.seek(off, :end)
- 個人的には(1)間違った値と(2)間違っている理由と(3)期待する値が入ったエラーメッセージがあると直す時に嬉しいので、今ある案がまざった"whence must be an Integer or Symbol: %s given"みたいなのがいいんじゃないかと思います!
(自分が書くときは"whence must be an Integer or Symbol: <%s>"みたいに間違った値を「<>」とかの記号で囲んだりします。空文字列だったときにわかりづらいので。。。) -
08:53 AM Feature #6643: io.seek(off, :end)
- Kouhei Sutou wrote:
> "type mismatch: %s given"というエラーメッセージに、「本当はIntegerかSymbolで指定して欲しかったんだよ!」みたいな情報が入っていると、間違ったオブジェクトを指定してしまった時にどうすればうまく動くようにできるかがわかりやすくなってうれしいなぁと思いました!
"%s is not an Integer or Symbol"や、"whence must be an Integer or ... -
09:20 PM Bug #7165 (Closed): mingw make -jN fails when linking rubyw.exe - This issue was solved with changeset r37246.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
extmk.rb: fix mingw make failure with make -jN
* common.mk (W... -
04:38 PM Bug #7168: File.join trips over string encodings
- Use UTF-8.
I don't think Darwin uses wide chars for file systems, though. -
02:28 AM Bug #7168: File.join trips over string encodings
- I don't see how that patch fixes the issue to achieve the behavior that I expected. It looks like it will just raise an explicit error instead of the ArgumentError.
For systems that have multi-byte, fixed-size encodings how is this su... -
04:31 PM Feature #7177 (Closed): Proposal of a new C API
- Hi.
We uses rb_newobj() in CRuby when we allocates any object.
However, this function has no arguments, so we can not change a
internal allocate method depending klass and flags of any object.
So I propose to add following new C ... -
03:43 PM Feature #7145 (Feedback): Add string-based range support to IMAP library
- tonyarkles (Tony Arkles) wrote:
> The imap protocol supports fetching ranges of messages using notation like "1:*" (to fetch all messages). I'd like to support things like: @im.fetch('1:*', 'FULL')@
> ...
You can specify "1:*" like im.... -
03:18 PM Bug #7153 (Closed): IMAP: emails with (BODY ("MIXED")) returned from fetch fail to parse
- This issue was solved with changeset r37240.
Tony, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
mess... -
03:18 PM Bug #7147 (Closed): IMAP: emails with message/rfc822 attachments fail to parse
- This issue was solved with changeset r37240.
Tony, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
mess... -
03:18 PM Bug #7146 (Closed): IMAP: messages with a mime-attachment of type "message/delivery-notification" fail
- This issue was solved with changeset r37240.
Tony, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
mess... -
01:36 PM Revision bff930cc (git): * ChangeLog: fix a typo of r37243.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:20 PM Revision 14d59c12 (git): extmk.rb: fix mingw make failure with make -jN
- * common.mk (WPROGRAM): need same dependencies as PROGRAM.
* cygwin/GNUmakefile.in (uncommon.mk): move include position
below WPROGRAM definition to be defined in uncommon.mk.
* ext/extmk.rb (all, static): fix make rubyw.exe failure ... -
08:37 AM Bug #7175 (Third Party's Issue): unpack('M*') changed behavior between patchlevels
-
07:46 AM Bug #7175: unpack('M*') changed behavior between patchlevels
- FWIW, bug ticket there: https://github.com/mikel/mail/issues/440
-
07:27 AM Bug #7175: unpack('M*') changed behavior between patchlevels
- Second update
I discovered that the Mail gem (https://github.com/mikel/mail) is incorrectly stripping the newline after the "=", which makes it illegal. I'll file a bug there. -
07:01 AM Bug #7175: unpack('M*') changed behavior between patchlevels
- After reading the changelog I see that this changed b/c of bug #5635 (http://bugs.ruby-lang.org/issues/5635).
I still believe that this might be a regression. Looking at our data, the last lines of quoted-printable strings produced by... -
06:25 AM Bug #7175 (Third Party's Issue): unpack('M*') changed behavior between patchlevels
- I'm seeing an important difference in the output of string.unpack between two patchlevels of ruby 1.9.3. The output of patchlevel 194 is expected, and the output of 286 is unexpected.
--- Console 1 ---
>> RUBY_VERSION
=> "1.9.3"
> ... -
07:26 AM Revision aef5f902 (git): * benchmark/bm_vm2_method_missing.rb: add a benchmark to measure
- performance of invoking `method_missing'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:24 AM Revision 000ff5b3 (git): * vm_insnhelper.c (vm_getivar): fix to use `aux.index' instead of
- `aux.opt_pc'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:12 AM Revision 9a82db49 (git): * vm_insnhelper.c (vm_call_method_missing): make a refactoring
- about method_missing process. Use `vm_call_method()' to invoke
`method_missing' method instead of `rb_funcall2()'.
In `vm_call_method()', set fastpath to `vm_call_method_missing()'
if it can be cached.
* vm_core.h (rb_call_info_t):... -
06:33 AM Revision 7254573c (git): configure.in: multiple opt-dir
- * configure.in (opt-dir): allow multiple directories separated by
$PATH_SEPARATOR as well as dir_config in mkmf.rb. [ruby-core:47868]
[Bug #7120]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37242 b2dd03c8-39d4-4d8f-98ff-823fe... -
06:30 AM Revision 0f1e7bce (git): * ChangeLog: add credit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:18 AM Revision bd6bb6c0 (git): * lib/net/imap.rb: fix Net::IMAP::ResponseParser to accept
- message/delivery-status ([ruby-core:47920] [Bug #7146]),
message/rfc822 attachments ([ruby-core:47921] [Bug #7147]), and
(BODY ("MIXED")) ([ruby-core:47951] [Bug #7153]).
* test/net/imap/test_imap_response_parser.rb: related test.
... -
03:55 AM Revision c4e63346 (git): * ChangeLog: use tab for indentation.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:06 AM Revision 38c0b5f0 (git): * test/ruby/test_hash.rb (TestHash#test_dup_equality): added a new test
- to show the problem of r37232.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:50 AM Revision 8f58f606 (git): * vm_insnhelper.c (vm_search_method): fix a build error that occurs
- when OPT_INLINE_METHOD_CACHE is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/16/2012
-
11:47 PM Revision 5e2625ee (git): * benchmark/bm_vm2_dstr.rb: add a benchmark to measure
- performance of dynamic generated string ("foo#{bar}baz").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:46 PM Bug #7173: with-opt-dir flag documentation
- I've made a patch in the following gist: https://gist.github.com/3899727
Assigning this to nobu, since it's not actual documentation. -
11:36 PM Bug #7173 (Closed): with-opt-dir flag documentation
- From #7120:
Current documentation:
--with-opt-dir=DIR add optional headers and libraries DIR
nobu's reply:
--with-opt-dir allows multiple paths separated by File::PATH_SEPARATOR
-
11:38 PM Revision 49371b54 (git): * compile.c (compile_dstr_fragments): use `putobject' instead of
- `putstring' for all of strings used by NODE_DSTR because
ruby users can not grab this string.
For example, the string object of "baz" in "foo#{bar}baz"
is located by `putobject' (users can not touch "baz" object
directly). This c... -
11:03 PM Revision 8addee96 (git): * thread.c (rb_threadptr_interrupt_mask): fix to check interrupt
- after interrupt_mask changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:29 PM Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
- Thanks mpapis for moving the ball forward on this. I rely on
--enable-load-relative for Tokaido, and getting/keeping it working reliably
will make me very happy.
Yehuda Katz
(ph) 718.877.1325
On Tue, Oct 16, 2012 at 9... -
10:14 PM Bug #7172 (Closed): [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
- continuation of http://bugs.ruby-lang.org/issues/6903 and http://bugs.ruby-lang.org/issues/7115
Checked with http://bugs.ruby-lang.org/projects/ruby-193/repository/entry/tool/mkconfig.rb and p286,
there is still missing fix for rbco... -
10:29 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
- Yehuda Katz
(ph) 718.877.1325
On Tue, Oct 16, 2012 at 12:21 AM, gregprice (Greg Price) <price@mit.edu>wrote:
>
> Issue #7158 has been updated by gregprice (Greg Price).
>
>
> trans (Thomas Sawyer) wrote:
> > I b... -
01:21 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
- trans (Thomas Sawyer) wrote:
> I believe a great deal of additional speed could be gained by optimizing
> ...
I'd like to keep this thread focused on speeding up existing code which uses #require. If you're interested in making changes... -
09:49 PM Revision 199fc6a5 (git): * vm_insnhelper.c (vm_call_method): fix to return value immediately.
- Remove CHECK_INTS() after that method dispatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:48 PM Feature #6643: io.seek(off, :end)
- "type mismatch: %s given"というエラーメッセージに、「本当はIntegerかSymbolで指定して欲しかったんだよ!」みたいな情報が入っていると、間違ったオブジェクトを指定してしまった時にどうすればうまく動くようにできるかがわかりやすくなってうれしいなぁと思いました!
-
09:36 PM Feature #6643: io.seek(off, :end)
- IO::SEEK_XXXの値は従来のままとして、whence引数にIntegerもSymbolも受け付けるIO#seekを作ってみました。
Symbolとしては、:set, :cur, :current, :endを大文字小文字を区別せず受け付けます。
これで互換性を崩さずにSymbolも渡せるようになるので良いんじゃないかと思うのですが、いかがでしょうか。 -
08:47 PM Feature #6643: io.seek(off, :end)
- こんにちは。
(Mon, 25 Jun 2012 23:31:12 +0900), SASADA Koichi wrote:
> これ,例えば IO::SEEK_END も値が :end になるんでしょうか(なっちゃいけない理由はあるんかな).
IO::SEEK_XXXの値もSymbolにした上でSymbolを受け付けるIO#seekを作ってみたところ、StringIOで引っかかりました。
ext/stringio/stringio.cのstrio_se... -
09:33 PM Revision b3803cc4 (git): * hash.c (initialize_copy): copy the underlying st_table on dup,
- rather than copying the hash key by key. [ruby-core:48009]
* test/ruby/test_hash.rb: relevant tests for initialize_copy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:20 PM Revision ddb6408f (git): * vm_insnhelper.c (vm_call_iseq_setup_2): separate tailcall and normal
- method frame setup functions.
Add checking interrupts at the tailcall setup function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:40 PM Bug #7171 (Closed): test-all failure on OS X (RubyCI)
- rubyci(http://rubyci.org/)で、LionおよびMountain Lionの一部の構成で以下のようなエラーがずっと出ています。
このエラーが出るものと出ないものがあるのが不気味なのですが、原因はなんでしょう?
test_udp_server(TestSocket):
RuntimeError: no response from #<Addrinfo: fd2e:1e2f:2d52:da8d:e6ce:8fff:fe1f:1c3c>
... -
08:37 PM Revision db3898fe (git): * benchmark/bm_vm1_yield.rb: add a benchmark to measure `yield'
- (invoke empty block) performance.
* benchmark/bm_vm2_method_with_block.rb: add a benchmark to measure
method invocation with empty block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:30 PM Revision 9182dab4 (git): * vm_insnhelper.c (vm_invoke_block): vm_caller_setup_args() can skip
- when splat flag is not set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:54 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- btw, bigdecimal doesn't validate the given arg.
but, nobody is aware of it.
BigDecimal('five million')
#=> #<BigDecimal:8edaba4,'0.0',9(9)>
-
07:48 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- first of all, i'm not a fan of the current parse method.
you already know the reason.
but, this is not a bug.
if you don't admit this, any discussion is meaningless.
lecture? no thanks.
i already wrote a strict parser at 1999. -
07:11 PM Bug #7166: Speed up Hash#dup by patching Hash#initialize_copy
- Go ahead. If we see the problem, it can be easily reverted.
Matz.
-
07:31 AM Bug #7166: Speed up Hash#dup by patching Hash#initialize_copy
- The gain is not so big at me, but it's clearly there (I get 1.4 to 1.6 speed-up).
Note about half of the time is spent in GC. -
02:37 AM Bug #7166 (Closed): Speed up Hash#dup by patching Hash#initialize_copy
- Hash#dup can be sped up. Hash#initialize_copy will iterate over each pair in the hash, inserting in to the new hash. I think we can speed up hash duping by using st_copy and copying the underlying hash table.
Here is the benchmark I... -
06:39 PM Bug #7154: For whatever reason \s doesn't match \u00a0.
- duerst (Martin Dürst) wrote:
> My understanding is that this is a feature. See previous post for explanation. I hope somebody can provide the feedback to http://stackoverflow.com/questions/2588942/convert-non-breaking-spaces-to-spaces... -
05:07 PM Revision db1e99cd (git): * vm_insnhelper.c (vm_getivar, vm_setivar): support index inline cache
- with rb_call_info_t to speedup `attr' getter and setter.
Cached index is stored in rb_call_info_t::aux::index.
`index' == 0 means not cached. `index' > 0 means cached and cached
index is `index - 1'.
* insns.def ((get|set)instancev... - 03:32 PM Revision aedc460f (git): * 2012-10-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:32 PM Revision 0eb6ef5b (git): * method.h(rb_method_definition_struct): remove a comma after the last element
- of enum. fix for r37198.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:26 PM Revision f8c2a968 (git): * benchmark/driver.rb (show_results): Show speedup ratio
- with first executables score at last of results
if two or more executrables are given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:07 PM Revision 64b17511 (git): * benchmark/driver.rb: some refactoring.
- (1) Remove `average differential'.
In this benchmark driver, We should not care about `average'.
We use fastest score because this score should not include
any disturbances (affections of background process, etc).
If you care abo... -
12:44 PM Bug #7085: Subversion → GitHub gateway stops.
- I think it's Evan's move now.
-
06:13 AM Bug #7085: Subversion → GitHub gateway stops.
- Thanks shyouhei for syncing the latest security fixes to the GH mirror.
What's the timeline for bringing the mirror back to life?
While I'm curious as to the new implementation (Evan's colo, single svn/git server, ??) I really just... -
12:19 PM Bug #7170 (Closed): tOP_ASGN and rescue_modifier precedence, with a few confusing examples
-
11:47 AM Bug #7170: tOP_ASGN and rescue_modifier precedence, with a few confusing examples
- Hmm. I think I read parse.y wrong. modifier_rescue has higher precedence than tOP_ASGN.
Sorry about the noise. -
11:38 AM Bug #7170 (Closed): tOP_ASGN and rescue_modifier precedence, with a few confusing examples
- parse.y shows that tOP_ASGN has precedence over modifier_rescue.
So I expect that
a = 1
a += [] rescue 5
should be parsed as "(a += []) rescue 5". Furthermore, it should evaluate to 5, and leave a untouched.
But in r... -
10:54 AM Bug #7168 (Closed): File.join trips over string encodings
- This issue was solved with changeset r37207.
Andrew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
file.c: ASCII-compatible
* file.c (rb_file_join): path names m... -
04:31 AM Bug #7168 (Closed): File.join trips over string encodings
- It seems like `File.join` is unable to handle string encodings that contain null bytes even though the string is properly encoded. This causes it to be unable to process inputs when the filenames on the system are encoded in this manner....
-
09:49 AM Feature #7148: Improved Tempfile w/o DelegateClass
- Hello,
Yukihiro Matsumoto wrote:
> I'd expect it to copy the underlying temporary file.
Is the behavior of #dup you expect like the following?
~~~ruby
def dup
dupe = self.class.new(@basename)
IO.copy_stream(self, dupe, 0... - 08:55 AM Revision 14ddf6c9 (git): * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc): Fix
- a bogus test that would have never passed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:55 AM Revision 6585a304 (git): * 2012-10-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:55 AM Revision 2fa46520 (git): * test/-ext-/test_threadswitch_hook.rb
- (Test_ThreadSwitch#test_threadswitch_init): This test does not
pass because the hook method actually calls rb_add_event_hook()
which does not emit a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37221 b2dd03... - 08:55 AM Revision 2c791e96 (git): Merge r37148 from ruby_1_8_7.
- * error.c (name_err_to_s): we need not infect msg.
* test/ruby/test_exception.rb (TestException#test_exception_to_s_should_not_propagate_untrustedness): test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37220 b... - 08:55 AM Revision 4928543d (git): Merge r35953 from ruby_1_8_7.
- * ext/bigdecimal/bigdecimal.c (VpMemAlloc): Fixes a bug reported by Drew Yao <ayao at apple.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:54 AM Revision 7eb8872b (git): Merge r33999 from ruby_1_8_7.
- * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): initialize
store->ex_data.sk. [ruby-core:28907] [ruby-core:23971]
[ruby-core:18121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37218 b2dd03c8-39d4-4d8f-... - 08:54 AM Revision 71ac625b (git): Merge r32233 and r32320 from ruby_1_8_7.
- * ext/tk/extconf.rb: copy from trunk, as requested by Hidetoshi NAGAI.
* ext/tk/extconf.rb (intptr_t, uintptr_t): support for the latest ActiveTcl with mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@37217 b2dd03c8... -
05:56 AM Revision 9af81022 (git): file.c: ASCII-compatible
- * file.c (rb_file_join): need to check again after any conversion run.
[ruby-core:48012] [Bug #7168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 AM Bug #7156: Invalid byte sequence in US-ASCII when using URI from std lib
- What part of the URL contains the UTF-8 characters?
If it's the domain, you need to decode the UTF-8 into punycode before passing it to Ruby.
It it's in the path, Ruby ought to handle it for IRI compliance, but probably doesn't rig... -
04:02 AM Revision 66141d47 (git): * test/ruby/envutil.rb (Test::Unit::Assertions#assert_file): rename from file_assertion.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:02 AM Revision 41e5fdb2 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:58 AM Bug #7167 (Closed): Segmentation Fault
- I got a segfault trying to install the prawn gem via rubygems on a archlinux box. Please tell me how i can help.
% sudo ruby -v /usr/bin/gem install prawn
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
/usr/lib/ruby/1.9.1... -
02:30 AM Revision 37b8f7b8 (git): file.c: hide result
- * file.c (rb_file_join): hide the result under construction until
return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:27 AM Revision a583f420 (git): file.c: ASCII-compatible
- * file.c (rb_file_join): check nul-byte only for strings, since
FilePathStringValue() does it. [ruby-core:48012] [Bug #7168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:19 AM Revision 772640a2 (git): merge revision(s) 37153: [Backport #6207]
- * lib/mkmf.rb (dir_config, init_mkmf): use configured libdir value as
default library path. [ruby-core:43726] [Bug #6207]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37211 b2dd03c8-39d4-4d8f-98ff-823fe69b... - 02:13 AM Revision 62f6e924 (git): merge revision(s) 36625: [Backport #6831]
- test_etc.rb: remove implicit assumption
* test/etc/test_etc.rb (TestEtc#test_getpwuid): remove implicit
assumption, that getpwuid() would return the first entry in the
order of getpw(), for shared UID. apparently it is not ... - 02:11 AM Revision e9ff4a22 (git): merge revision(s) 36800: [Backport #6377]
- * file.c (rb_find_file_ext_safe, rb_find_file_safe): default to
US-ASCII for encdb and transdb.
* load.c (search_required): keep encoding of feature name. set
loading path to filesystem encoding. [Bug #6377][ruby-core:44750]
* ru... -
02:10 AM Feature #6668: Multiple assignment should not return an Array object
- Method inlining could help if we do it before handing off to the JVM, since we'd see that masgn result is not used...but that's still pretty far away from reality. The JVM might be able to eliminate the array allocation, but it's a very ...
- 01:55 AM Revision ae5930a8 (git): merge revision(s) 34977: [Backport #5661]
- * random.c (random_s_rand): ensure default PRNG is re-initialized
after fork. patched by Eric Wong. [ruby-core:41209][Bug #5661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37208 b2dd03c8-39d4-4d8f-98ff-... -
01:54 AM Revision 7b4f0c0d (git): file.c: ASCII-compatible
- * file.c (rb_file_join): path names must be ASCII-compatible.
[ruby-core:48012] [Bug #7168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:53 AM Revision ad54de2a (git): file.c: check_path_encoding
- * file.c (check_path_encoding): new function to ensure path name
encoding to be ASCII-compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:21 AM Revision 259d9dbc (git): merge revision(s) 37177: [Backport #7157]
- * ruby.c (rb_f_sub, rb_f_gsub): pass the given block.
[ruby-core:47967] [Bug #7157]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:49 AM Revision 535649ee (git): merge revision(s) 37169: [Backport #7169]
- use tty(1) to check if /dev/tty is usable or not
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:48 AM Revision 998a3981 (git): merge revision(s) 37201,37202:
- * test/ruby/test_regexp.rb
(TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): ignoring
warnings are already set in setup method.
* test/ruby/test_regexp.rb
(TextRegexp#test_raw_hyphen_and_tk... - 12:40 AM Revision 5ed8ca14 (git): * test/ruby/test_regexp.rb
- (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): use
Regexp.new instead of literal to ignore a parser warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:31 AM Revision 4ae5081b (git): * test/ruby/test_regexp.rb
- (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): ignoring
warnings are already set in setup method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/15/2012
-
11:30 PM Bug #7165 (Closed): mingw make -jN fails when linking rubyw.exe
- =begin
When I run make -jN with MSYS mingw build, build failed as the following.
sh-3.1$ rm -rf ruby.exe rubyw.exe *.dll *.res.o ext/zlib ext/win32ole
sh-3.1$ gnumake -j6
linking shared-object zlib.so
gnumake[2]: Lea... -
10:53 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- On 15 October 2012 22:48, garysweaver (Gary Weaver)
<garysweaver@gmail.com> wrote:
>
> Issue #7137 has been updated by garysweaver (Gary Weaver).
>
>
> I respectfully ask to reopen this ticket. The problem is that people expect th... -
09:48 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- I respectfully ask to reopen this ticket. The problem is that people expect that Date.parse('Monitoring') to fail or return nil because it isn't a date nor does it contain anything that *should* be interpreted as a date. The problem was ...
-
10:01 PM Bug #1926: Different eval/binding behaviour in 1.9
- Given this change, what is the proper method of setting a local variable in a specific binding?
-
09:45 PM Revision 7c1778d6 (git): * vm_insnhelper.c (VM_CALLEE_SETUP_ARG): fix wrong condition.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:35 PM Revision 3083ad7b (git): * vm_insnhelper.c (vm_call_method): disable CI_SET_FASTPATH() if
- this method call needs splat argument because cahced functions
(vm_call_attrset, vm_call_ivar, vm_call_cfunc_fast_(unary|binary))
do not check an arity.
* bootstraptest/test_method.rb: add a test to check an above issue.
git-svn-i... -
09:24 PM Revision 90a6dce0 (git): * method.h: introduce new method type VM_METHOD_TYPE_CFUNC_FAST.
- This method is similar to VM_METHOD_TYPE_CFUNC methods, but
called cfunc without building new frame (does not push new control
frame). If error is occured in cfunc, the backtrace only shows
caller frame and upper.
This kind of me... -
09:01 PM Bug #6941: ID_H_TARGET no longer created after running make
- nobu (Nobuyoshi Nakada) wrote:
> Now id.h doesn't depend on parse.y since r36864.
Confirmed it's working on my end, too. Thank you! -
06:23 PM Feature #6647: Exceptions raised in threads should be logged
- On 15/10/12 03:24, kosaki (Motohiro KOSAKI) wrote:
>
> Issue #6647 has been updated by kosaki (Motohiro KOSAKI).
>
>
> I think "exception raised" callback is better way because an ideal output (both format and output device) d... -
11:23 AM Feature #6647: Exceptions raised in threads should be logged
- I think "exception raised" callback is better way because an ideal output (both format and output device) depend on an application. It should be passed a raised exception.
-
05:03 AM Feature #6647: Exceptions raised in threads should be logged
- Ping! This came up in JEG's talk at Aloha RubyConf as a recommendation (specifically, set abort_on_exception globally to ensure failed threads don't quietly disappear). Ruby should not allow threads to quietly fail.
-
05:40 PM Revision 747487cd (git): * vm_insnhelper.h (CI_SET_FASTPATH): add new parameter `enabled'.
- If `enable' is 0 then CI_SET_FASTPATH() doesn't work.
And add new configuration option OPT_CALL_FASTPATH. If this macro
was defined by 0, then CI_SET_FASTPATH() doesn't work any more.
* vm_insnhelper.c (vm_call_method): Pass `0' for ... -
05:22 PM Revision a91e91c5 (git): * vm_core.h (VM_CALL_*): rename VM_CALL_*_BIT
- to VM_CALL_* (remove `_BIT' suffix).
Add comments on each macros.
Remove unused macro VM_CALL_TAILRECURSION_BIT.
* compile.c, iseq.c, insns.def, vm_insnhelper.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37196 b2dd0... - 03:45 PM Revision b188d42b (git): * 2012-10-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:45 PM Revision 84cfea70 (git): ChangeLog: fix a typo of r37185.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:29 PM Feature #6668 (Rejected): Multiple assignment should not return an Array object
- Changing return value from massign would be agaist 2.0 compatibility policy. Maybe in 3.0.
Method inlining in JRuby would help compatibility here as well, wouldn't it?
Matz.
-
04:55 AM Feature #6668: Multiple assignment should not return an Array object
- I thought I replied to ko1, but must not have.
I believe MRI is using the same trick JRuby is...specifically, when the masgn's result is not used, it is not created. However, that does not help cases where masgn happens to be the last... -
03:01 PM Bug #7163 (Closed): Chomp problem in pkg_config of mkmf.rb (ruby 1.9.3 P286)
- when compiled the ext packages under mingw64 + MSYS, mkmf reports error like this:
"gcc -o conftest -Ic:/ruby64/include/ruby-1.9.1/x64-mingw32 -Ic:/ruby64/include/ruby-1.9.1/ruby/backward -Ic:/ruby64/include/ruby-1.9.1 -I. -I./.. -D_... -
01:47 PM Feature #7149: Constant magic for everyone. - Not out of the box, only if the user turns it on:
class Fixnum
constant_magic # or constant_magic( true ); or const_magic(); etc.
end
But, oh, do I feel your point. Saying that naming 42 is stupid is not enough.
Giving o... -
08:53 AM Feature #7149: Constant magic for everyone.
- Do you expect the following?
class Foo
Bar = 42
end
p (6*7).name #=> Foo::Bar
-
04:42 AM Feature #7149: Constant magic for everyone. - nobu (Nobuyoshi Nakada) wrote:
> What do you expect if the object is assigned to two or more constants?
Same behavior as with Class and Struct objects. I do not understand the implementation details, but it seems that for these objects ... -
01:14 PM Revision 32569104 (git): envutil.rb: file_assertion
- * test/ruby/envutil.rb (Test::Unit::Assertions#file_assertion):
rewrite file assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:53 PM Revision a17cb167 (git): * benchmark/: add missing spaces around assignment operators (= and +=) for
- consistency.
Approved by ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:29 PM Revision 2780e752 (git): * vm_eval.c: fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:18 AM Bug #6994 (Rejected): yield plus splat unwraps too much
-
05:02 AM Bug #6994: yield plus splat unwraps too much
- This can be closed.
-
09:23 AM Bug #7154: For whatever reason \s doesn't match \u00a0.
- Just forgot to mention that the pickaxe book, for "\s", says "For
Unicode, add Line_Separator codepoints.".
This is wrong because even LINE SEPARATOR itself, \u2028, doesn't match
\s. It would also be wrong in that the result... -
08:56 AM Bug #7154 (Closed): For whatever reason \s doesn't match \u00a0.
- My understanding is that this is a feature. See previous post for explanation. I hope somebody can provide the feedback to http://stackoverflow.com/questions/2588942/convert-non-breaking-spaces-to-spaces-in-ruby.
-
08:53 AM Bug #7154: For whatever reason \s doesn't match \u00a0.
- My understanding is that in Ruby, all the pre-Unicode escapes, and in
particular "\s", still refer only to characters in the ASCII range.
My understanding is that this was done in this way for backwards
compatibility, and on ... -
05:02 AM Feature #905: Add String.new(fixnum) to preallocate large buffer
- I do not believe for a moment that realloc or mremap can in all cases perform the operation in O(1) time, and the docs seem to agree with me...first based on the doc above for realloc, and then for this doc on mremap:
MREMAP_MA... -
04:50 AM Feature #6648: Provide a standard API for retrieving all command-line flags passed to Ruby
- Ping...we'd still like to have this to be able to build a unifying benchmark tool, which needs to be able to report the actual command-line arguments passed to the runtime. Current tricks are too ugly (parsing `ps` output, for example), ...
-
04:49 AM Bug #7037: float formatting inconsistently rounds half to even
- If there's nothing further to do here and we all agree that the details of rounding logic are implementation-dependent, this can be closed.
-
04:35 AM Bug #7161 (Closed): Perf fix: use symbols instead of strings for const/ivar access methods
- From pull request: https://github.com/ruby/ruby/pull/195
Fixes a number of places where literal, non-dynamic strings are used as the first argument for constant and instance variable get, set, and defined? methods. This reduces object... -
03:59 AM Bug #7160 (Closed): "gem rdoc" command outputs a wealth of warnings
- This is fixed but unreleased
-
02:47 AM Bug #7160 (Closed): "gem rdoc" command outputs a wealth of warnings
- =begin
The (({gem rdoc})) command outputs an insane number of warnings:
% sudo gem rdoc --overwrite sinatra
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
... -
02:04 AM Revision f1d3fcec (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:44 AM Revision 4c9ea3c3 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:57 AM Revision c0481015 (git): vm_insnhelper.c: suppress warnings
- * vm_insnhelper.c (vm_callee_setup_arg_complex): suppress
shorten-64-to-32 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:44 AM Revision f9e50b05 (git): * vm_insnhelper.c (VM_CALLEE_SETUP_ARG): skip CI_SET_FASTPATH() if
- it was called from vm_yield_setup_args().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/14/2012
-
10:52 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
- I believe a great deal of additional speed could be gained by optimizing #require_relative (and making use of it, of course). From what I understand, #require_relative ends up calling ordinary #require code, which is inefficient since #r...
-
02:41 PM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
- =begin
I've also made these patches available at https://github.com/gnprice/ruby , in the "fast-require" branch against a recent trunk and in "fast-require-1.9.3p194" against the latest release.
If you use ((<rbenv|URL:https://github... -
01:56 PM Bug #7158 (Closed): require is slow in its bookkeeping; can make Rails startup 2.2x faster
- =begin
Starting a large application in Ruby is slow. Most of the startup
time is not spent in the actual work of loading files and running Ruby
code, but in bookkeeping in the 'require' implementation. I've
attached a patch series ... -
08:59 PM Revision c4457e03 (git): * vm_insnhelper.h CI_SET_FASTPATH: introduce new macro
- `CI_SET_FASTPATH(ci, func)'. This macro set `ci->call' as `func'.
`func' (ci->call) is called at the last of `send'
(and `invokesuper') instruction.
`CI_SET_FASTPATH' does not set `ci->call' when the method
(stored in `ci->me') i... -
07:58 PM Revision 8f08e61b (git): * vm_insnhelper.c: refactoring.
- - move all `call' related functions to the last of file.
- make functions for respective method types in vm_call_method().
(all functions have same function parameters)
* vm_core.h: add `opt_pc' filed in `rb_call_info_t'
as tempora... -
07:40 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- i recommend you to use full year.
so, parse method can detect properly except minority middle endian.
sorry if you are minority.
i also recommend you to use internatinal standard format such as iso 8601.
moreover, parse method is jus... -
06:15 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- @tadf thanks for the explanation. Maybe proper parsing is not really a responsibility of `Date` class. The following also may look surprising:
Date.parse('10/11/12')
=> #<Date: 2010-11-12 ((2455513j,0s,0n),+0s,2299161j)>
@sh... -
06:53 PM Revision fd3b0dec (git): * benchmark/bm_vm1_attr_ivar(_set).rb: added (for method dispatch speed).
- * benchmark/bm_vm1_float_simple.rb: added (for flonum/float).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:54 PM Revision 7f052a72 (git): * vm_eval.c (vm_call0_body): add new function.
- `vm_call0()' makes call_info struct and calls `vm_call0_body()'
with this struct. In near future, `vm_call0()' will be removed
because all of `vm_call0()' users setup call_info struct by itself.
git-svn-id: svn+ssh://ci.ruby-lang.... -
05:20 PM Revision ca968ee4 (git): remove garbage line
- * compile.c (new_insn_send): remove garbage line.
* tool/instruction.rb (sp_increase_c_expr): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:11 PM Feature #7149: Constant magic for everyone.
- May be any hook can be implemented to make it possible in such a way?
on_const_set{|const, obj|
def obj.name
const
end
} - 04:59 PM Revision c84bd9d7 (git): * 2012-10-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:59 PM Revision cbd597e9 (git): * insns.def (send, invokesuper, invokeblock, opt_*), vm_core.h:
- use only a `ci' (rb_call_info_t) parameter instead of using
parameters such as `op_id', 'op_argc', `blockiseq' and flag.
These information are stored in rb_call_info_t at the compile
time.
This technique simplifies parameter pass... -
11:46 AM Bug #7105: Socket documentation fix
- Hello,
I've discussed this with another mri committer, and we've come to the conclusion that the example should use AF_INET, as socket(2) suggests:
"The manifest constants used under 4.x BSD for protocol families are PF_UNIX, PF_I... -
09:34 AM Bug #7032: TestSetTraceFuncの実行に失敗する
- =begin
SEGVの問題について調べてみました。
手元の環境では以下のコードで100%再現します。
# Thread(A)
th = Thread.new { loop { 0 } }
# Thread(B)
loop do
# test_remove_in_trace
func = lambda do |e, f, l, i, b, k|
set_trace_func(nil)
eval("... -
08:52 AM Bug #7156 (Rejected): Invalid byte sequence in US-ASCII when using URI from std lib
- Invalid byte sequence in US-ASCII on ruby 1.9.3
I receive that error when trying to open url with bulgarian text (utf-8: "История"). It seems that the problem is in uri/common.rb from ruby standard library...
adding str.force_encod... -
08:48 AM Bug #7155: Invalid byte sequence in US-ASCII when using open-air
- Sorry, syntax error in title "open-air" =>is URI lib from core library ./src/ruby-1.9.3-p286/lib/uri/common.rb
-
08:45 AM Bug #7155 (Rejected): Invalid byte sequence in US-ASCII when using open-air
- Invalid byte sequence in US-ASCII on ruby 1.9.3
I receive that error when trying to open url with bulgarian text (utf-8: "История"). It seems that the problem is in uri/common.rb from ruby standard library...
adding str.force_encod... -
08:37 AM Bug #7154 (Closed): For whatever reason \s doesn't match \u00a0.
- The problem is already explained here:
http://stackoverflow.com/questions/2588942/convert-non-breaking-spaces-to-spaces-in-ruby
I just hit it today. -
06:11 AM Revision e8c23457 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:31 AM Revision 204692c5 (git): * 2012-10-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:30 AM Revision 9e02550b (git): ruby.c: passing block
- * ruby.c (rb_f_sub, rb_f_gsub): pass the given block.
[ruby-core:47967] [Bug #7157]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/13/2012
-
10:37 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- also the following examples should raise error:
Mon Mon Mon
Mon OR Fri?
Good Friday
Friday Sept 11 2001
Sept 11, 2001 & 2002
the original parsedate written by matz.
once, i rewrote the library with a parser generator.
it seem... -
10:17 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- -1 is not about parsing. Stop messing.
-
09:33 PM Bug #7137: Date.parse overly lenient when attempting to parse Monday?
- IMO this is a bug. For example, Math::sqrt(-1) raises an error and does not assume that -1 is 1.
-
02:16 PM Bug #7137 (Rejected): Date.parse overly lenient when attempting to parse Monday?
- it does not function as a validator.
it believes the given date is valid. -
05:56 PM Bug #7152 (Closed): Is the order of Module#instance_methods intended to be preserved?
- No.
-
02:01 PM Bug #7152: Is the order of Module#instance_methods intended to be preserved?
- I vote no! Imposing order upon the method table requires all implementations to use an ordered data structure here where unordered structures might serve better. Also consider that reflective method access on most other platforms does no...
-
11:58 AM Bug #7152 (Closed): Is the order of Module#instance_methods intended to be preserved?
- https://github.com/jruby/jruby/issues/277 asks this question:
results = 10000.times.map do
chars = ('A'..'Z').map(&:to_sym).shuffle
cls = Class.new do
chars.each do |chr|
define_method(chr) {}
end
end
... - 04:23 PM Revision c3e874d7 (git): merge revision(s) 37175:
- * regparse.c (parse_char_class): should match with a hyphen after a
range in a character class.
* test/ruby/test_regexp.rb (TestRegexp#test_char_class): fixed wrong
test.
* test/ruby/test_regexp.rb (... - 02:23 PM Revision be3a6b8c (git): * regparse.c (parse_char_class): should match with a hyphen after a
- range in a character class.
* test/ruby/test_regexp.rb (TestRegexp#test_char_class): fixed wrong
test.
* test/ruby/test_regexp.rb (TestRegexp#check): now can accept the
error message.
* test/ruby/test_regexp.rb
(TextRegexp#test_... -
01:25 PM Feature #7145: Add string-based range support to IMAP library
- I broke the pull request. https://github.com/ruby/ruby/pull/196 is the fixed one.
-
01:25 PM Bug #7146: IMAP: messages with a mime-attachment of type "message/delivery-notification" fail
- I accidentally broke the pull request. Fixed one at https://github.com/ruby/ruby/pull/196
-
01:24 PM Bug #7147: IMAP: emails with message/rfc822 attachments fail to parse
- I broke the one pull request. Fixed at https://github.com/ruby/ruby/pull/196
-
01:23 PM Bug #7153: IMAP: emails with (BODY ("MIXED")) returned from fetch fail to parse
- Pull request: https://github.com/ruby/ruby/pull/196
-
12:48 PM Bug #7153: IMAP: emails with (BODY ("MIXED")) returned from fetch fail to parse
- OK, the patch for this will have conflicts with the patches for #7145, #7146, and #7147 because it also adds unit tests to test_imap_response_parser.rb. I'm not sure what the best approach is for this... Whether to wait until that pull r...
-
12:35 PM Bug #7153 (Closed): IMAP: emails with (BODY ("MIXED")) returned from fetch fail to parse
- I'm not sure if this is even valid IMAP (I couldn't find a reference to it in the RFC), but Google's IMAP server seems to return these occasionally. Found a message in my Inbox that wouldn't parse because of this.
I've added a test an... -
10:03 AM Feature #7068 (Feedback): ability to deactivate Hash#compare_by_identity()
- =begin
h = {}
h.compare_by_identity = true
h['a'] = 1
h['a'] = 2
h.compare_by_identity = false
What value is returned for (({h['a']}))?
=end
-
09:46 AM Bug #6830 (Closed): test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
-
09:45 AM Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew
- Now tests it if the file exists.
-
03:14 AM Feature #7149 (Feedback): Constant magic for everyone.
- What do you expect if the object is assigned to two or more constants?
-
02:46 AM Feature #7149 (Assigned): Constant magic for everyone. - I noticed that certain objects have constant magic: When they are first assigned to a constant, they acquire a name property equal to the constant name string. I only know about Class and Struct objects behaving this way. I like this beh...
-
12:07 AM Bug #7100: WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
- =begin
私のところでも同様の症状が出ています。そういった警告が出る場合、WEBrick サーバーに IPv6 でアクセスできなくなってしまいます。また、環境によっては http://localhost:3000/ のように localhost を指定してもアクセス不能になってしまいます。(:BindAddress を明示的に指定すれば問題ないのですけれども…)
WEBrick のドキュメントには :BindAddress に関して
デフォルトの ...