Activity
From 08/11/2013 to 08/17/2013
08/17/2013
-
10:54 PM Feature #8765: Literal for symbol with interpolation
- > tenderlovemaking
What is your intention? -
09:23 PM Feature #8781: Use require_relative() instead of require() if possible
- Em 17-08-2013 01:16, Aaron Patterson escreveu:
> ...
>> I don't really think using require to allow such hacks is a good
>> enough reason to favor require instead of require_relative... After
>> all, Ruby already allows you to o... -
09:23 PM Feature #8781: Use require_relative() instead of require() if possible
- (13/08/17 13:13), Aaron Patterson wrote:
> First, it *is* a real use case (as in, people actually use it in *real*
> projects):
>
> [aaron@higgins ruby (trunk)]$ git grep require_relative | grep '\.\.' | wc -l
> 45
> ... -
08:51 PM Feature #8781: Use require_relative() instead of require() if possible
- But it doesn't matter *if* it is downward, b/c it is relative to the internal structure. If I move something around in my internal structure, that I might have alter a require statement is to be expected. In your example, if we move `foo...
-
01:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On Fri, Aug 16, 2013 at 09:35:04AM -0300, Rodrigo Rosenfeld Rosas wrote:
> Em 16-08-2013 03:24, Aaron Patterson escreveu:
> >On Fri, Aug 16, 2013 at 03:00:59PM +0900, SASADA Koichi wrote:
> >>(2013/08/16 14:21), Aaron Patterson wr... -
01:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On Sat, Aug 17, 2013 at 07:17:50AM +0900, trans (Thomas Sawyer) wrote:
>
> Issue #8781 has been updated by trans (Thomas Sawyer).
>
>
> > $ echo "require_relative '../../foo'" > lib/foo/bar/baz.rb
>
> Seriously? That i... -
07:17 AM Feature #8781: Use require_relative() instead of require() if possible
- > $ echo "require_relative '../../foo'" > lib/foo/bar/baz.rb
Seriously? That is not a real use case. Proper use of require_relative is downward, not upward. -
05:23 AM Feature #8781: Use require_relative() instead of require() if possible
- Thank you, Aaron, that was what I was trying to say, but put much better. <3
-
08:23 PM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- (2013/08/16 10:47), normalperson (Eric Wong) wrote:
> eventfd is a cheaper alternative to pipe for self-notification (signals) on Linux
>
> I will submit patches in the next few days/weeks unless there are objections
> (or some... -
06:53 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- Ignore my first patch, eventfd_compat function should have void return, not int.
Sorry for the confusion -
06:40 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- [PATCH] thread_pthread: use eventfd under Linux for timer thread
The timer thread is an ideal use case for eventfd because it is
only used to signal wakeups and not transfer data.
From eventfd(2) manpage:
Applications can us... -
07:20 PM Bug #8737: [BUG] Bus Error
- Ok, clear. Will work on an example.
-
06:04 PM Bug #8737: [BUG] Bus Error
- nijikon (Tomasz Pajor) wrote:
> Did anybody had a look at this? Is the backtrace enough?
It's not enough.
Please give us the code to reproduce your problem.
-
06:21 PM Revision c106d194 (git): * bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:48 PM Revision 517c201e (git): * 2013-08-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:48 PM Revision 908e7312 (git): * bignum.c (BIGDIVREM_EXTRA_WORDS): Redefine to 1.
- (bigdivrem_num_extra_words): Removed.
(bigdivrem_normal): Simplefied.
(big2str_karatsuba): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:47 PM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- I wonder what the correct behavior should be here? Recursive data structures are always tricky for serialization.
Edit: I should also mention that I just verified this bug's existence on 2.0.0-p0. -
02:25 PM Revision f79aeb60 (git): * test/ruby/test_time.rb: use the in_timezone() helper
- and define it at the top with other helpers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 PM Revision 43b80e09 (git): * test/ruby/test_time.rb (#in_timezone): fix typo of r42596
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:40 PM Revision 9b4e9244 (git): * ChangeLog: more description a bit. [Bug #8795]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:20 PM Revision 5685abe6 (git): time.c: ignore invalid data
- * time.c (time_mload): ignore invalid offset and zone.
[ruby-core:56648] [Bug #8795]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:23 AM Revision 61313ade (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:13 AM Revision ce34fce8 (git): * process.c: [DOC] MACH_ABSOLUTE_TIME_CLOCK_MONOTONIC is an
- available emulation for a monotonic clock on Darwin.
https://developer.apple.com/library/mac/qa/qa1398/_index.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:53 AM Feature #8796: Use GMP to accelerate Bignum operations
- 2013/8/17 Eric Wong <normalperson@yhbt.net>:
> Is there more performance improvement without the conversion?
>
> How about push the conversion cost to legacy C API users to make
> Bignum faster for pure-Ruby use in a future p... -
04:53 AM Feature #8796: Use GMP to accelerate Bignum operations
- "akr (Akira Tanaka)" <akr@fsij.org> wrote:
> If a user don't want to use GMP, a configure option, --without-gmp,
> disables this feature.
> Since GMP is licensed as LGPL, some people would need it.
> However I think most people ... -
04:10 AM Feature #8796 (Closed): Use GMP to accelerate Bignum operations
- How about using GMP to accelerate Bignum operations?
GMP: The GNU Multiple Precision Arithmetic Library
http://gmplib.org/
I wrote a simple patch to use GMP to accelerate Bignum multiplication.
If a user don't want to use GMP, ... -
08:24 AM Revision 2a0482b4 (git): * process.c: revert r42591. Only an emulation is available on Darwin.
- [ruby-core:56672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:22 AM Feature #8793 (Feedback): Ruby 2.0 and Threads under HPUX
- Does pthread_attr_init() set the current thread info?
-
01:25 AM Bug #8785 (Assigned): backport r42282 for 2.0 and 1.9.3
- r42590 で ruby_2_0_0 へバックポートしました。
担当者を変更しておきます。 -
01:03 AM Feature #8700: Integer#bitsize (actually Fixnum#bitsize and Bignum#bitsize)
- akr (Akira Tanaka) wrote:
> * bitsize may be used to estimate the time or space cost of an algorithm.
> ...
I found another reason bit_length is preferable over Math.log2.
Math.log2(n) returns Infinity when n is not representable ... -
12:40 AM Bug #8746: TestWEBrickCGI#test_cgi fails with mswin64 on English version of Windows
- r42421 およびその ChangeLog の追記である r42422 を r42589 で ruby_2_0_0 ブランチにバックポートしました。
-
12:37 AM Bug #8750: unit test fix for CVE-2013-4073 seems to be incomplete
- Backported to ruby_2_0_0 branch at r42588.
08/16/2013
-
11:33 PM Bug #8778: lib/test/ documentation is too weak
- Sorry for late reply,
This is okay for me, if there is no objection.
Does anyone have objection for this? -
09:53 PM Feature #8781: Use require_relative() instead of require() if possible
- Since we were discussing the design perspective, you just demonstrated how the design of using require can become much worse than using require_relative. When you're reading code you can be sure where to look for the files being loade...
-
03:29 PM Feature #8781: Use require_relative() instead of require() if possible
- On Fri, Aug 16, 2013 at 03:00:59PM +0900, SASADA Koichi wrote:
> (2013/08/16 14:21), Aaron Patterson wrote:
> > If you move the file, then all calls to `require_relative` in that file
> > must be changed. If you had just used `re... -
03:23 PM Feature #8781: Use require_relative() instead of require() if possible
- (2013/08/16 14:21), Aaron Patterson wrote:
> If you move the file, then all calls to `require_relative` in that file
> must be changed. If you had just used `require`, the file can be moved
> without changes.
Which case?
... -
02:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On Tue, Aug 13, 2013 at 07:38:01AM +0900, SASADA Koichi wrote:
> (2013/08/13 2:25), drbrain (Eric Hodel) wrote:
> > For files in the standard library, replacing a file loaded by require_relative that is not part of a gem is more dif... -
07:28 PM Bug #8794 (Closed): Ruby on Rails
- /Users/zx/.rvm/gems/ruby-1.9.3-p362/gems/json-1.8.0/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.4.0]
-- Control frame information ----------------------------------... - 04:55 PM Revision 99ed3420 (git): * 2013-08-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:55 PM Revision 1a5b74a2 (git): * process.c (rb_clock_gettime): document CLOCK_REALTIME and
- CLOCK_MONOTONIC are now available on Darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:22 PM Revision 12b80db8 (git): merge revision(s) 42282: [Backport #8785]
- * parse.y: fix build error with bison-3.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:01 PM Feature #8793 (Closed): Ruby 2.0 and Threads under HPUX
- Use of Threads under HPUX currently raise rb_eNotImpError ("ruby engine can initialize only in the main thread") since the STACKADDR_AVAILABLE is not available.
This brings basic support for the get_stack() under HPUX.
This patch a... -
03:59 PM Bug #8792 (Closed): HP-UX needs sys/pstat.h for missing/setproctitle.c
- HP-UX needs sys/pstat.h for missing/setproctitle.c
Check for HAVE_SYS_PSTAT_H is already in place so only request to check for sys/pstat.h in configure.
Should be backported to 1.9 and 2.0. -
03:39 PM Revision 98905e22 (git): merge revision(s) 42421,42422: [Backport #8746]
- * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):
mswin is not only mswin32 but also mswin64.
mswin is not only mswin32 but also mswin64. [Bug #8746]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... -
03:37 PM Revision d15c1d10 (git): merge revision(s) 42429: [Backport #8750]
- * test/openssl/test_ssl.rb: Fix test for CVE-2013-4073.
Patch by Antonio Terceiro. [Bug #8750] [ruby-core:56437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:35 PM Revision cbf98166 (git): * lib/rubygems: update to RubyGems 2.0.6. the patch by drbrain.
- [ruby-core:56633] [Backport #8787]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 PM Feature #8777: Process.mach_absolute_time
- On Fri, Aug 16, 2013 at 02:43:33PM +0900, naruse (Yui NARUSE) wrote:
>
> Issue #8777 has been updated by naruse (Yui NARUSE).
>
> Status changed from Open to Closed
>
> Oops, I didn't notice this ticket.
>
> I commit... -
02:43 PM Feature #8777 (Closed): Process.mach_absolute_time
- Oops, I didn't notice this ticket.
I committed mach_absolute_time at r42573 as a part of get_clocktime with Process::CLOCK_MONOTONIC
http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html
https://developer.app... -
02:23 PM Feature #8777: Process.mach_absolute_time
- On Sun, Aug 11, 2013 at 09:46:41PM +0900, Tanaka Akira wrote:
> 2013/8/11 tenderlovemaking (Aaron Patterson) <tenderlove@ruby-lang.org>:
> > Feature #8777: Process.mach_absolute_time
> > https://bugs.ruby-lang.org/issues/8777
> ... -
03:22 PM Bug #8737: [BUG] Bus Error
- Did anybody had a look at this? Is the backtrace enough?
-
03:22 PM Bug #8790 (Closed): r41424 以降、Solaris と gdbm 1.1.10 にて TestGDBM#test_s_open_lock が終わらない
- r41424以降、Solarisにて make test-all すると、 TestGDBM#test_s_open_lock がブロックして、いつまで待っても make test-all が終わらなくなっています。この現象は、下記のように、Solaris以外でも、flockは無いがlockfは存在する環境では同様に発生すると思われます。
Solarisにて gdbm 1.1.10 を ./configure したときのログの一部を抜粋します。
check... -
03:09 PM Bug #8789 (Closed): File.expand_path(File.dirname(__FILE__)) return wrong encoded result
- A test.rb in a nonascii path with the follow content:
```ruby
puts File.expand_path(File.dirname(__FILE__)).encoding
```
Run it with utf-8 as internal encoding.
expect result: UTF-8
actual result:US-ASCII
Tested on windows ... -
10:47 AM Feature #8788 (Feedback): use eventfd on newer Linux instead of pipe for timer thread
- eventfd is a cheaper alternative to pipe for self-notification (signals) on Linux
I will submit patches in the next few days/weeks unless there are objections
(or somebody else wants to do it sooner). I'd also like to cleanup some o... -
09:12 AM Revision ff377d9e (git): * test/profile_test_all.rb: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:10 AM Revision 55251d0c (git): * test/profile_test_all.rb: remove space characters from test names.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:46 AM Revision 769715bd (git): * test/profile_test_all.rb: refactoring memory profiling tool for
- test-all.
Add profiling targets /proc/meminfo and /proc/self/status.
* test/runner.rb: accept other than 'true'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:15 AM Revision d51138dd (git): process.c: downcast
- * process.c (rb_clock_gettime): downcast for I32 environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:04 AM Revision 3ea0a5bd (git): vm_eval.c: suppress warning
- * vm_eval.c (eval_string_with_cref): move cref inside EXEC_TAG block
to suppress a warning that 'cref' might be clobbered by 'longjmp',
on gcc 4.7 or later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42582 b2dd03c8-39d4-4d8f-... - 06:36 AM Revision 768cfdd5 (git): merge revision(s) 36620: [Backport #8791]
- * ext/date/date_{core,strftime}.c: [ruby-core:46990].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:20 AM Revision 564f77ca (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:19 AM Revision 85afb17b (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:19 AM Revision eee30c68 (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:53 AM Feature #8780: DBM#to_h alias for #to_hash
- Matz what do you think?
On the feature and adding tanaka as dbm maintainer :) - 02:26 AM Revision f2e870c9 (git): * file.c (rb_file_size, rb_file_flock): improve parformance of Winodws.
- * file.c (rb_file_truncate): removed unnecessary #ifdef.
* test/test_file.rb (TestFile#test_truncate_size): added an assertion
for File#size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:53 AM Bug #7492: Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
- The patch seems good, but I cannot test without a windows env.
On Aug 15, 2013, at 10:42 AM, "phasis68 (Heesob Park)" <phasis@gmail.com> wrote:
>
> BTW, I do not want to be called as -san because I am not a Japanese.
Oh, sorry!... -
01:11 AM Revision dcd4832d (git): * bignum.c (bigdivrem_single1): Renamed from bigdivrem_single. Add
- x_higher_bdigit argument.
(bigdivrem_single): Just call bigdivrem_single1.
(bigdivrem_restoring): Use bigdivrem_single1 to avoid memmove.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:19 AM Revision 9f6c62ad (git): * bignum.c (bary_small_rshift): Specify the higher BDIGIT instead of
- sign bit.
(big_shift3): Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:08 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- I have just realized that "#|=" cannot be a name for "#reverse_merge!" because "#|=" cannot modify the receiver in place.
08/15/2013
-
11:42 PM Bug #7492: Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
- Yes, of course. I can reproduce it with snapshot still.
Why you ignore my patch?
BTW, I do not want to be called as -san because I am not a Japanese. -
04:58 AM Bug #7492: Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
- park-san can you reproduce this still?
-
10:33 PM Feature #8786 (Open): Process.clock_gettime(:realtime)
- Socket や IO#seek のように Process.clock_gettime の第一引数も Symbol で :realtime などを受け付けると良いのではないでしょうか。
-
08:19 PM Bug #8785 (Closed): backport r42282 for 2.0 and 1.9.3
- ruby_2_0_0 と ruby_1_9_3 ブランチが bison-3.0 でビルド出来なくなっているようなので、r42282 のバックポートをお願いします。
-
05:24 PM Revision d0b5d201 (git): * bignum.c (bary_mul_toom3): Reduce a branch.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:18 PM Revision b26f8003 (git): * process.c (rb_clock_gettime): add CLOCK_MONOTONIC support on OS X.
- http://developer.apple.com/library/mac/qa/qa1398/_index.html
[Feature #8658]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:47 PM Revision 6df786c7 (git): * bignum.c (bigdivrem_single): Use shift when y is a power of two.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:16 PM Revision 49e8387b (git): * bignum.c (bigdivrem_restoring): Use bigdivrem_single if non-topmost
- BDIGITs of y are zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:36 PM Revision 7fc4142a (git): * bignum.c (rb_big2str1): Truncate topmost zeros of x.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 PM Revision 02b6f663 (git): * bignum.c (bary_divmod): Simplify an expression.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:01 PM Revision 0c031824 (git): * 2013-08-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:01 PM Revision 942a3c99 (git): * bignum.c (bigdivrem_normal): Remove a local variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:25 PM Revision d94fc786 (git): * bignum.c (big2str_karatsuba): Use bigdivrem_restoring directly to
- reduce working buffer and memory copy.
(rb_big2str1): Allocate working buffer for big2str_karatsuba here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 PM Feature #8780: DBM#to_h alias for #to_hash
- This is an API issue.
There is no maintainer for dbm.
http://bugs.ruby-lang.org/projects/ruby/wiki/Maintainers
So, ask matz.
-
01:42 PM Bug #8749: Readline.readline stops STDOUT?
- no6v (Nobuhiro IMAI) wrote:
>
> ...
readline_getc で、rl_getc を呼び出すか、rb_io_getbyte を呼び出すかという条件判断が問題で、
前者なら GVL を離さないので他のスレッドは動けず、後者なら動けます。
r42525 で直ったのは、ifp->stdio_file に代入したので、readline_getc 内の
if (rl_instream != ifp->stdio_file) r... -
12:10 PM Bug #8749: Readline.readline stops STDOUT?
- > 読み込みでブロックしている時に GVL を解放していなくて他のスレッドが動けないようです。
ありがとうございます。出力じゃなくメインスレッド自体が止まっていたんですね。
> ...
今回問題にした挙動は r42525 で一旦直って r42527 でまた壊れはしたものの
r42528 でまた直っているようです。これはたまたまでしょうか。
もちろん attachment:readline-release-gvl.patch を当てても動きます。
(... - 12:38 PM Revision ce3ca270 (git): * test/ruby/test_file.rb (TestFile#test_truncate_size): test for
- above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 PM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- Yep. :)
-
07:53 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- On Aug 14, 2013, at 3:37 PM, trans (Thomas Sawyer) wrote:
> So, yea +1 for #<<. But it is not the exact same thing as #merge, or even #merge!.
Do you mean that it is not the exact same thing as #merge! because it would accept obje... -
07:37 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- Actually I think #<< is good too. But it's definition needs to be a bit more flexible than just merge. That's because it needs to do this:
h = {}
h << [:a,1]
h << [:b,2]
h #=> {:a=>1, :b=>2}
Which is very useful polymor... -
03:23 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- On Aug 14, 2013, at 10:41 AM, alexeymuranov (Alexey Muranov) wrote:
> The #<< operator does quite a different thing than either #merge or #reverse_merge:
>
> [1,2] << [3,4] #=> [1, 2, [3, 4]]
Arrays are quite a different thing... -
02:41 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- =begin
david_macmahon (David MacMahon) wrote:
> I think Hash#<< would be a good alias for Hash#merge! (the in place form, since Array#<< and String#<< both modify the receiver in place).
The #<< operator does quite a different t... -
12:03 PM Bug #6386 (Rejected): URI.parse should raise an error for invalid uri 'http:/'
- "http:/foo" is valid absolute-URI.
see http://tools.ietf.org/html/rfc3986
absolute-URI = scheme ":" hier-part [ "?" query ]
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
hier-part = "//" authority p... -
12:03 PM Bug #6983 (Rejected): URI:HTTP accepts invalid uri
- "http:/foo" is valid absolute-URI.
see http://tools.ietf.org/html/rfc3986
absolute-URI = scheme ":" hier-part [ "?" query ]
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
hier-part = "//" authority p... - 11:53 AM Revision d6af2a2b (git): * io.c, internal.h (rb_io_flush_raw): new function to select calling
- fsync() (on Windows).
* io.c (rb_io_flush_raw): use above function.
* file.c (rb_file_truncate): use above function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:09 AM Revision 12a0b0c8 (git): parse.y: simplify
- * parse.y (f_label): extract from f_kw and f_block_kw.
* parse.y (f_opt, f_block_opt): use f_norm_arg to simlify actions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:41 AM Revision f653019d (git): * win32/win32.c (clock_gettime): improve precision when freq is less
- than and nearly equals 10**9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:46 AM Revision 5cd2fb2e (git): * gc.c (gc_lazy_sweep): remove heap_increment() here because heap_inc
- may be 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:01 AM Revision bc08992a (git): * io.c (rb_io_rewind): remove fsync() for Windows to improve the
- performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:32 AM Revision 9972c18c (git): * test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):
- FileUtils.rmdir ignores Errno::ENOTEMPTY, so, in such cases, this
assertion is nonsence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:00 AM Feature #8639: Add Queue#each
- Thanks! I'm off to a conf this week, it probably would have been a awhile
before I got around to it.
--
Avdi Grimm
http://avdi.org
I only check email twice a day. to reach me sooner, go to
http://awayfind.com/avdi -
06:00 AM Feature #8639: Add Queue#each
- Attaching the patch from Avdi's pull request on github, thank you!
-
06:50 AM Revision 1c9df374 (git): * process.c (rb_clock_gettime): [DOC] FreeBSD 7.1 supports
- CLOCK_THREAD_CPUTIME_ID.
http://www.freebsd.org/releases/7.1R/relnotes.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:32 AM Revision 866cee61 (git): * include/ruby/win32.h, win32/Makefile.sub, win32/win32.c
- (clock_gettime): [experimental] emulates clock_gettime(2) of posix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:12 AM Bug #6312: Psych needlessly noisy parsing string node starting with number-ish string
- I get a NameError exception when I try to run your example on trunk:
Exception `NameError' at /Users/zzak/.rubies/ruby-trunk/lib/ruby/2.1.0/psych/core_ext.rb:29 - method `yaml_as' not defined in Module
Exception `NameError' at /Users... -
05:06 AM Bug #6400: dl/callback with fiddle occurs SEGV on NetBSD amd64
- Is this related to #6592?
-
05:05 AM Feature #8726 (Rejected): Class#source_location
- とりあえず一回Rejectするので、諦めてない人は理由を整理して再チャレンジしてください。
Timeoutが意図通り動いてない(フィルターでちゃんとフィルターされてない)は、バグだと思うのでこちらで直しておきます。
Timeoutでフィルターするのを外したらどうか、という提案は別件だと思うので必要と思う人が別チケットをオープンしてください。
-
05:05 AM Bug #6592: test_call_double(DL::TestDL) fails on ARM HardFP
- Aaron did you ever port these tests when you were merging bits of DL into Fiddle?
-
04:56 AM Feature #7518: Fiddle::Pointer#to_str and Fiddle::Pointer#to_int should be removed
- Perhaps they are there for DL compat?
-
04:54 AM Bug #7760: "-\n2000-01-02 03:04:05".to_yaml raise ArgumentError
- I cannot reproduce this with trunk:
ruby -v -rpsych -e 'p "-\n2000-01-02 03:04:05".to_yaml'
ruby 2.1.0dev (2013-08-02 trunk 42318) [x86_64-darwin12.4.0]
"--- |-\n -\n 2000-01-02 03:04:05\n"
Try to update your installation of Ps...
08/14/2013
-
10:36 PM Feature #8726: Class#source_location
- ko1 (Koichi Sasada) wrote:
> ちょっと追えていないのですが、元の提案自体は reject という感じでしょうか。
Class#source_location が欲しい状況って言うのはあり得るとは思いますが、
少なくとも timeout の件はユースケースとして妥当ではないように感じました。
Class#source_location 提案を粘るか、timeout 改善に切り替えるかはお任せしますが、
timeout 改善を本... - 05:34 PM Revision 3670ca43 (git): * 2013-08-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:34 PM Revision 7c5dc219 (git): * hash.c (rb_hash_aset): [DOC] Document key dup patch by @kachick
- [Fixes GH-382] https://github.com/ruby/ruby/pull/382
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 PM Feature #7738 (Rejected): Deprecate Set#+ as an alias of Set#|, use it for symmetric difference. Introduce Hash#| for Hash#reverse_merge in Rails.
- Case frozen until someone comes up with real use cases and a proposal as the solution to them.
-
02:35 PM Feature #3753 (Closed): value of def-expr
- This issue was solved with changeset r42551.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (rb_mod_define_method): now they return the symbols of ... -
02:25 PM Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
- Yes,you are right,maybe my problem couse by the other reason.
-
12:26 PM Bug #8774 (Rejected): rb_file_dirname return wrong encoding string when dir is "."
-
12:25 PM Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
- rb_usascii_str_new2() makes a string in US-ASCII, which is 7bit.
-
09:37 AM Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
- I did not write clear,the ".' having the encoding ascii-8bit not ascii-7bit,so it will be some problem.
Why ruby's default encoding is ascii-8bit not ascii-7bit,will we need the 8bit in there some condition? -
11:53 AM Bug #8784 (Closed): CSV - Empty fields are discarded when col_sep is a space
- When using space as column delimiter, empty fields are discarded.
With other delimiters, like comma, empty fields are correctly retrieved.
The following code reproduces the problem:
**************************************************... - 11:16 AM Revision a66d5685 (git): * test/test_pstore.rb
- (PStoreTest#test_pstore_files_are_accessed_as_binary_files): need more time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:16 AM Revision e3488fce (git): get detailed ps data to debug
- add -L/-H/-M to get thread info
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:59 AM Revision e74a9c06 (git): * test/test_pstore.rb
- (PStoreTest#test_pstore_files_are_accessed_as_binary_files): changed because
vc10-x64 CI fails with timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:35 AM Revision a28d1eff (git): * proc.c (rb_mod_define_method): now they return the symbols of the
- defined methods, not the methods/procs themselves.
[ruby-dev:42151] [Feature #3753]
* NEWS: documents about above change and def-expr (see r42337).
* test/ruby/test_module.rb: tests about above change.
git-svn-id: svn+ssh://ci.ruby... -
04:53 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- I think Hash#<< would be a good alias for Hash#merge! (the in place form, since Array#<< and String#<< both modify the receiver in place).
That does not preclude Hash#| being used for reverse_merge functionality.
Dave
On Aug 13... -
04:21 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- This wouldn't head towards any polymorphic approach, but isn't << a better operator for merging? It fells like you're shoving all the contents of the argument to the receiver hash. I think it represents better the functionality of the me...
-
03:29 AM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
- On Aug 10, 2013, at 7:46 PM, trans (Thomas Sawyer) wrote:
> Based on this line of reasoning I formally request the Hash#| be an alias of Hash#merge.
Issue #7739 is similar, but requests that Hash#| be added an alias for ActiveSupp... -
03:48 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
alexeymuranov (Alexey Muranov) wrote:
> Update: Also, `#reverse_merge!` can be replaced with `#|=`.
This would make the "default values for options" idiom (shown in the example in the reverse_merge! documentation) both clea... - 12:59 AM Revision ca90e7d8 (git): merge revision(s) 36948,41777,41779 [Backport #8593]
- * lib/mkmf.rb (have_framework): insert a space between options.
add just one -ObjC option.
* lib/mkmf.rb (have_framework): allow header file to check.
[ruby-core:55745] [Bug #8593]
git-svn-id: svn+ssh://ci.... -
12:53 AM Feature #8781: Use require_relative() instead of require() if possible
- (2013/08/13 19:25), Trans wrote:
>
> FYI: with Akira (Matsuda-san), we compare performance of require and
> require_relative to load thousands of files.
>
> Without Bundler, require_relative is good performance.
... -
12:10 AM Revision d551b78d (git): test_dir_m17n.rb: fixed encoding file system on OS X
- * test/ruby/test_dir_m17n.rb (test_filename_as_bytes_extutf8),
(test_filename_bytes_euc_jp, test_filename_euc_jp),
(test_filename_ext_euc_jp_and_int_utf_8): Mac OS X also has fixed
encoding file system.
git-svn-id: svn+ssh://ci.ru...
08/13/2013
-
11:40 PM Feature #6225: Hash#+
- I think this operator is really doesn't fit for Hash operation. While in a glance it might make sense, using `#merge` like what we're doing right now actually make more sense when you see the code. You're merging two hashes (dictionaries...
-
05:38 PM Feature #6225: Hash#+
- I can imagine that would cause serious confusion among users. Raising exception might be better (but only just).
Matz.
-
05:19 PM Feature #6225: Hash#+
- Just a thought about `Hash#+`: maybe it can be used for merging only hashes with disjoint sets of keys, and return `nil` otherwise?
-
06:26 AM Feature #6225: Hash#+
- A use of `Hash#|` is proposed in #7739.
There is however a typo in the proposal: it should be
~~~ruby
{ :a => 1, :b => 2 } | { :b => 1, :c => 2 } # => { :a => 1, :b => 2, :c => 2 }
~~~
-
10:32 PM Feature #7738: Deprecate Set#+ as an alias of Set#|, use it for symmetric difference. Introduce Hash#| for Hash#reverse_merge in Rails.
- As i said, i will probably be surprised if this proposal is accepted :). However, i would like to answer:
1. 1 / x returns a result if x = 1, but raises an exception if x = 0.
2. I was proposing to change the behavior of Set#+, an... -
08:32 PM Feature #7738: Deprecate Set#+ as an alias of Set#|, use it for symmetric difference. Introduce Hash#| for Hash#reverse_merge in Rails.
- =begin
I think it is unusual in ruby for an operator to raise an exception depending on the combination of the values of operands.
It is like (({x + 1})) raising an exception when (({x})) is (({3})) while it successfully returns (({5... -
06:05 PM Feature #7738: Deprecate Set#+ as an alias of Set#|, use it for symmetric difference. Introduce Hash#| for Hash#reverse_merge in Rails.
- I can hardly come up with a meaningful example that would use the symmetric difference of sets. So i propose to consider instead redefining Set#+ as the *disjoint union* of sets: it would return the union of sets if the sets are disjoin...
-
10:05 PM Feature #8781: Use require_relative() instead of require() if possible
- Actually, to be completely honest, I use none of them in my Rails projects since they don't play well in development mode with auto-reloading. That's why most people using Rails nowadays will use require_dependency (from active_support/d...
-
07:29 PM Feature #8781: Use require_relative() instead of require() if possible
- On Tue, Aug 13, 2013 at 6:14 AM, SASADA Koichi <ko1@atdot.net> wrote:
> (2013/08/12 15:35), ko1 (Koichi Sasada) wrote:
> > Advantage:
> > * require_relative() is faster than require() especially with many gems.
>
> FYI: wit... -
07:23 PM Feature #8781: Use require_relative() instead of require() if possible
- (2013/08/12 15:35), ko1 (Koichi Sasada) wrote:
> Advantage:
> * require_relative() is faster than require() especially with many gems.
FYI: with Akira (Matsuda-san), we compare performance of require and
require_relative to l... -
06:53 PM Feature #8781: Use require_relative() instead of require() if possible
- ko1 (Koichi Sasada) wrote:
> (2013/08/13 2:25), drbrain (Eric Hodel) wrote:
> ...
I doubt many users do this.
For my part I always track the project under some version control and edit the file directly
(except for the smallest cha... -
08:08 AM Feature #8781: Use require_relative() instead of require() if possible
- Even if a switch from require to require_relative is unsuitable for the standard library, we certainly can update the documentation for require and require_relative with recommended use and caveats.
-
07:53 AM Feature #8781: Use require_relative() instead of require() if possible
- (2013/08/13 2:25), drbrain (Eric Hodel) wrote:
> For files in the standard library, replacing a file loaded by require_relative that is not part of a gem is more difficult. To alter net/http/request.rb loaded by require_relative you m... -
02:25 AM Feature #8781: Use require_relative() instead of require() if possible
- Following an IRC conversation with Koichi I don't believe this bug proposes to eliminate require_relative outright, instead it is for investigating if require_relative should be used more in the standard library and in gems. The optimiza...
-
07:44 PM Bug #8483: SEGV under high concurrency
- We found the problem, was a recursive call that was generating the problem. I think it's really a bug that it segfaults in a recursive call when we had less memory, but I really can't reproduce the error in a more restrict test case, so ...
-
05:08 PM Feature #7435: Exceptions should have backtrace_locations
- Why is this issue closed? Is this problem solved? I think it is a very important feature that is missing.
-
03:54 PM Revision 38be07f8 (git): * bignum.c (bigdivrem_restoring): xn argument removed.
- (bigdivrem_normal): Follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 PM Revision 02d1a121 (git): Remove a trailing space.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:21 PM Revision 888a9f03 (git): * 2013-08-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 PM Revision f069f26b (git): * bignum.c (big_div_struct): Remove xn and j field. Add zn field.
- (bigdivrem1): Follow the above change.
(bigdivrem_restoring): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:43 PM Revision 26e69a89 (git): * bignum.c (big_div_struct): ynzero field removed.
- (bigdivrem1): Follow the above change.
(bigdivrem_restoring): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 PM Revision adaa5650 (git): * bignum.c (bigdivrem_restoring): Extracted from bigdivrem_normal.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:13 PM Revision 26feae39 (git): random.c: coerce before check negative
- * random.c (rb_random_ulong_limited): coerce before check negative.
[Fixes GH-379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:52 PM Revision 944c620d (git): object.c: undef Module#prepend_features on Class
- * object.c (Init_Object): undef Module#prepend_features on Class, as
well as Module#append_features. [Fixes GH-376]
* test_class.rb: Added test for above. And ensure type checking
on similar methods as module_function.
git-svn-id: ... -
11:56 AM Bug #8783 (Closed): ruby 1.9/2.0 crash on exit on FreeBSD/powerpc64
- On FreeBSD/powerpc64, ruby 1.9 and 2.0 segfault. I traced this to the default stack being too small (12K). A larger stack is required, 4 pages is sufficient.
-
11:05 AM Bug #8775: Dir.getwd's encoding is wrong
- Maybe I did not speake clearly,When we write ruby code,we should consider the string create is internal encoding by default,and if internal encoding != filesystem encoding when we use the File.getwd result with other strings that will be...
-
10:20 AM Bug #8775: Dir.getwd's encoding is wrong
- If the filesystem encoding is not UTF-8.
From when did you think it is always UTF-8? -
10:50 AM Bug #8758: Add initial documentation for SSLServer
- @lisukorin For #to_io I would say "..passed as the first argument to ::new"
I also think 'start_immediately' is implementation and should just be :nodoc:'d
Can you show me how to use your example in the overview? I tried a few ways... -
08:57 AM Bug #8758 (Assigned): Add initial documentation for SSLServer
- Feel free to assign doc patches to me, I love them!
-
12:13 AM Revision 5611362c (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:13 AM Revision 6bdcaacf (git): fix a typo
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/12/2013
- 11:54 PM Revision 57d68cb2 (git): * 2013-08-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:54 PM Revision 077fa248 (git): * doc/syntax/literals.rdoc: [DOC] String literal concat by @cknadler
- [Fixes GH-380] https://github.com/ruby/ruby/pull/380
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:35 PM Feature #8781: Use require_relative() instead of require() if possible
- Steve, from my point of view, using require_relative helps us to structure our projects rather than the opposite. That's actually the main reason for my +1, not the speed improvements one.
It helps us avoiding issues that might happen... -
11:16 PM Feature #8781: Use require_relative() instead of require() if possible
- require_relative makes sense for "packages", i.e. where you have a main file that loads a bunch of subordinate files. In other words, the subordinate files could have all been in the main file, but are split out for better organization. ...
-
10:47 PM Feature #8781: Use require_relative() instead of require() if possible
- Isn't require_relative generally considered worse because it makes your file structure more brittle? From a code design standpoint, not from a speed standpoint.
-
09:47 PM Feature #8781: Use require_relative() instead of require() if possible
- +1
-
07:21 PM Feature #8781: Use require_relative() instead of require() if possible
- Strongly agreed, and it would ensure a whole library is loaded, not by accident a part of it and some other files which happen to have the same structure above in $LOAD_PATH.
-
03:35 PM Feature #8781 (Closed): Use require_relative() instead of require() if possible
- I wrote a attached small script rrc.rb, stand for "RequireRelativeChecker".
This small script points out that require() can be replaced with require_relative().
"Detecting replace-able require()" algorithm is easy (and not perfect)... -
11:31 PM Feature #8643: Add Binding.from_hash
- For that tiny script, this is true, Koichi, but usually we get a binding from some class, so all methods would be available as well as other intermediary local variables in the method calling `erb#results`.
Like this:
```ruby
clas... -
11:27 PM Feature #8643: Add Binding.from_hash
- Koichi then replied with:
I'm not sure what methods and variables are leaks.
For example, only "make_binding" mathod is leaked.
```ruby
def make_binding(hash)
__b = binding
hash.each{|k, v|
__b.local_variable_set(k, ... -
11:26 PM Feature #8643: Add Binding.from_hash
- I didn't notice I replied only to Koichi Sasada when replying to the ruby-core list. Is it possible to set it up so that the reply-to field is set to ruby-core?
Here is some discussion from us from those e-mails so that everyone could... -
09:18 PM Feature #8643: Add Binding.from_hash
- Koichi-san, that's correct:
eval 'p a, b', Binding.from_hash(a: 1, b: 2) #=> 1, 2 -
12:55 AM Feature #8643: Add Binding.from_hash
- nobu (Nobuyoshi Nakada) wrote:
> `Binding.from_hash` ?
Yes.
-
09:21 PM Bug #8749: Readline.readline stops STDOUT?
- 何通か書いたメールが redmine に登録されていないので redmine で書きます。
(メールは (化けてますが) https://www.ruby-forum.com/topic/4416224 で見れます。)
読み込みでブロックしている時に GVL を解放していなくて他のスレッドが動けないようです。
readline_getc は Ruby 1.8 時代の名残りか、
Ruby の IO 読み込み関数 (rb_io_getbyte) を使うことに... -
04:50 PM Bug #8776: script_name's encoding is wrong
- In this call flow
rb_f_load -> rb_load_internal -> rb_load_file_str -> load_file -> load_file_internal -> rb_parser_compile_string_path
When load a utf-8 encoded path will be considered a filesystem encoded path and load failure. -
03:55 PM Bug #8776: script_name's encoding is wrong
- I have seen the error handling code and don't know how to fix the error.
I once think ruby will do the encode work at the boundary of the external system as soon as possible,And keep the internal system clear with the internal encodi... -
12:31 PM Bug #8776: script_name's encoding is wrong
- It's not right.
> What is the right opportunity to encode the path and fix the exception's calltack's encoding error?
At the error handling, probably. -
12:24 PM Bug #8776: script_name's encoding is wrong
- But the external file path should encoded into internal encoding when it is used in ruby system, is it right?
What is the right opportunity to encode the path and fix the exception's calltack's encoding error? -
04:31 PM Bug #8782 (Closed): Don't set rl_getc_function on editline
- r42402 以来 OS X 等の editline 環境では #define rl_getc(f) EOF が使われるようになってしまって残念なことになっていたわけですが、
そもそも editline の readline wrapper は non ASCII に対応していません。
(editline 自体には UTF-8 のみの対応が入ったが、readline wrapper は src/readline.c の _getc_function を経由するので ... -
03:31 PM Bug #8775: Dir.getwd's encoding is wrong
- You mean the code
File.getwd+'some utf-8 file name'
Should raise encoding compitable error?
Where I can see the ruby's internal design principle for encoding?When encode to internal encoding?When do not?
The doc:http://www.ruby-doc.org... -
12:29 PM Bug #8775: Dir.getwd's encoding is wrong
- It's not.
Path name is not the target of automagical conversion. -
12:14 PM Bug #8775: Dir.getwd's encoding is wrong
- Maybe my solution is wrong.
But Dir.getwd should encoded into internel encoding,am I right? - 02:09 PM Revision da3d79d2 (git): * gc.c (gc_marks_test): inhibit gc for st's operation.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:26 PM Feature #8780 (Closed): DBM#to_h alias for #to_hash
- I wonder if DBM should have #to_h, same as #to_hash.
tanaka-san, what do you think?
If accepted, I could write the patch. -
01:01 PM Feature #8779 (Closed): Binding#yourself
- Blockの内部のコンテクストにアクセスするために Binding#eval が利用する機会がありますが、
eval を多用するのは効率が悪いので、Binding#eval('self') を返すことに特化した
Binding#yourself の実装を提案いたします。
yourself にアクセスできれば、素の eval を呼ぶ必要がほとんどなくなるので効率化が期待できます。
# ちなみに yourself の名付け親は @ko1 さんです :)
(Se... -
12:22 PM Bug #8778 (Closed): lib/test/ documentation is too weak
- sora-san when you are well-fed and well-rested: what do you propose for lib/test/ documentation?
I suggest 'nodoc' the majority of it adding a note about 'compatibility layer' to top-level module.
However, I realize there may be so... -
12:12 PM Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
- The rb_file_dirname should not return diffrent encoding string value just because the string's content diffrent.
And some other function like rb_file_expand_path will return the value with the input paramter's incoding,and the result is... -
11:12 AM Bug #8760 (Closed): irb automatically exits after opening
- Closed by r42525 and r42527
Weird, that commit should have closed this maybe a bug @naruse-san?
-
10:01 AM Bug #8760: irb automatically exits after opening
- This was fixed by https://github.com/ruby/ruby/commit/874dc2562d92a52a5f8795747e512f0deecf9065.
Please close it. -
06:59 AM Revision c48b4209 (git): parse.y: CR in middle
- * parse.y (parser_whole_match_p): treat CR in middle of a line as a
mere whitespace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:19 AM Revision 9af743fe (git): * class.c (rb_prepend_module): make T_ICLASS object shady because
- this T_ICLASS object seems to share method table with other class
objects. It was causes WB miss.
TODO: need to know the data structure.
* test/ruby/test_module.rb: add a test for WB miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
04:48 AM Revision 7f0a26e2 (git): * process.c: [DOC] RDoc formatting of Process.clock_gettime
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:29 AM Revision 8b95e932 (git): * lib/yaml/dbm.rb: [DOC] Document call-seq for YAML::DBM
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:59 AM Revision d075c430 (git): * ext/dbm/extconf.rb: [DOC] Hide from RDoc
- Some libraries might want to document extconf.rb so RDoc treats it
like any other ruby program. However, DBM users shouldn't care about
these methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42531 b2dd03c8-39d4-4d8f-98ff-... -
03:54 AM Revision eadb8b58 (git): * ext/dbm/dbm.c: [DOC] Reformat headings of DBM class
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:49 AM Revision 8a896179 (git): * lib/yaml.rb, lib/yaml/: [DOC] Document YAML::DBM#key and add
- references to similar methods with more detail. This patch brings
lib/yaml to 100% documentation coverage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:07 AM Bug #8767: IO.copy_stream should write in binary mode.
- normalperson (Eric Wong) wrote:
> "godfat (Lin Jen-Shin)" <godfat@godfat.org> wrote:
> ...
Yes, thank you for your support. I've added a test for this
and updated the patch in the attachment.
The updated commit on Github is located... -
02:25 AM Revision 4852e7e6 (git): fix r42527 again; [Bug #8760] [ruby-dev:47608] [ruby-dev:47609]
- Remove check rl_instream != ifp->stdio_file.
rl_instream is made from duped fd and we cannnot compare.
This fix seems still buggy when rl_instream is manually changed from
other extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.or... -
01:04 AM Revision 0e2a3ccc (git): refix r42525 set stdio_file only if stdio
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/11/2013
-
10:57 PM Bug #8764 (Closed): Test failure introduced by r42468
- This issue was solved with changeset r42523.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_require.rb: __FILE__ encoding on Windows
* test/ruby/test_r... -
08:25 AM Bug #8764: Test failure introduced by r42468
- Issue still present in recent builds:
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/1764/console
-
10:36 PM Feature #8738: Integer#single_bit? (Actually Fixnum#single_bit? and Bignum#single_bit?)
- matz (Yukihiro Matsumoto) wrote:
> I don't see the use-case of this method. Is there any case that happens so frequently to have build-in method (maybe performance-wise)?
My intended use case is assists Integer#bit_length to determi... -
09:53 PM Feature #8777: Process.mach_absolute_time
- 2013/8/11 tenderlovemaking (Aaron Patterson) <tenderlove@ruby-lang.org>:
> Feature #8777: Process.mach_absolute_time
> https://bugs.ruby-lang.org/issues/8777
> This is related to #8658. `mach_absolute_time` will give us a monotoni... -
06:23 PM Feature #8777 (Closed): Process.mach_absolute_time
- Hi,
This is related to #8658. `mach_absolute_time` will give us a monotonic clock on OS X. I'm not sure if this fits in to `clock_gettime`, so I've added a new function for getting the absolute time and another function for converti... -
07:31 PM Feature #7106: FileUtils.touch should allow touching the symlink itself rather than the file the link points to
- In the grand scheme of things FileUtils could be a gem (especially, since it lacks a maintainer now), yes. This probably would turn to be good for it, actually.
As per your suggestion, I am going to do my best and maintain this as a gem... -
07:11 PM Bug #8731: Problems when parsing notation decl and entity decl with REXML::Parsers::SAX2Parser
- 報告ありがとうございます。
SAX2Listener#entitydeclは引数を1つだけ受け取るようにしました。非互換な変更になりますが、ドキュメントには引数は配列1つと書いているので、実装のバグだと判断しました。
notationdeclの方は引数の数が固定だったので、配列ではなく個々の引数として受け取るようにしました。こっちはSAX2Listnerが提供するデフォルトのイベントハンドラーメソッドのバグで、呼ばれ方は変更がないので非互換ではないという判断... -
06:01 PM Bug #8731 (Closed): Problems when parsing notation decl and entity decl with REXML::Parsers::SAX2Parser
- This issue was solved with changeset r42513.
Ippei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* NEWS (REXML::Parsers::SAX2Parser): Add about this change.
* li... -
06:21 PM Bug #8776 (Rejected): script_name's encoding is wrong
- External file path is expected filesystem encoding by default.
-
04:17 PM Bug #8776 (Rejected): script_name's encoding is wrong
- there's some wrong encoded string in exception's callstack couse by the script_name;s encoding is wrong .
-
06:19 PM Bug #8775 (Rejected): Dir.getwd's encoding is wrong
- That's filesystem encoding.
ospath is to interface with the system. -
03:33 PM Bug #8775 (Rejected): Dir.getwd's encoding is wrong
- See the patch.
I do't know is this the right way,please check it . -
06:16 PM Bug #8774 (Feedback): rb_file_dirname return wrong encoding string when dir is "."
- "." is 7bit only, it has no differences.
Why do you consider it wrong? -
03:28 PM Bug #8774 (Closed): rb_file_dirname return wrong encoding string when dir is "."
- When File.dirname()'s value is ".", the value is wrong encoded.
- 05:58 PM Revision 4e742f4b (git): * 2013-08-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:58 PM Revision 874dc256 (git): * ext/readline/readline.c (readline_s_set_input): on OS X with editline,
- Readline.readline doesn't work because readline_get doesn't use
rl_getc. The difference is introduced by r42402 [ruby-dev:47509]
[Bug #8644]. Before it rb_io_stdio_file set ifp->stdio_file.
Therefore add manually setting the value.... -
03:52 PM Feature #8773: Binding#local_variables should work like #local_variable_set and #local_variable_get
- I left a typo in the description field of this issue. The very last line of code in the example should read:
get_all_local_variables(binding) #=> [1, 2]
-
03:21 PM Feature #8773 (Closed): Binding#local_variables should work like #local_variable_set and #local_variable_get
- With the addition of Binding#local_variable_get and Binding#local_variable_set the following seemed reasonable:
def get_all_local_variables(bind)
lvars = bind.send(:local_variables)
# `lvars` should equal [:x, :y], b... -
03:19 PM Bug #8677: $LOAD_PATH did not encoded into the "internal encoding"
- Submit a patch to use rb_str_encode_ospath encode $LOADPATH
-
02:27 PM Revision 86398999 (git): file.c: OSX path encoding
- * file.c (rb_str_encode_ospath): OS path encoding on Mac OS X is also
fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:59 PM Feature #8765: Literal for symbol with interpolation
- On Sat, Aug 10, 2013 at 10:59:24PM +0900, sawa (Tsuyoshi Sawada) wrote:
>
> Issue #8765 has been reported by sawa (Tsuyoshi Sawada).
>
> ----------------------------------------
> Feature #8765: Literal for symbol with inter... -
03:39 AM Feature #8765: Literal for symbol with interpolation
- =begin
There are `:" "` and `:' '` notations, whose existence indicate that symbol literals with and without interpolation are used. A typical use case for symbol literal is to create symbols from a list of words with a common prefix. ... -
01:00 AM Feature #8765 (Feedback): Literal for symbol with interpolation
- Do you need this in an actual program? There is %q and %Q because there is '' and "", and that's because interpolation in Strings is very frequent. Interpolation for Symbols is very rare, as far as I know.
-
01:57 PM Revision 7cb53ed3 (git): test_require.rb: __FILE__ encoding on Windows
- * test/ruby/test_require.rb (assert_require_nonascii_path): OS path
encoding on Windows is fixed, so encoding of __FILE__ should be it.
[ruby-core:56498] [Bug #8764]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42523 b2dd03c8-3... -
01:46 PM Feature #8377 (Rejected): Deprecate :: for method calls in 2.1
- Hi,
Matz rejected this here:
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809#Deprecate-for-method-calls-8377
So I'm closing this. :-) -
12:13 PM Feature #8658 (Closed): Process.clock_gettime
- I committed r42504 to implement Process.clock_gettime method.
This is result of the meeting:
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809
This doesn't mean that high level API is rejected.
Feel free to di... -
11:46 AM Feature #8772 (Open): Hash alias #| merge, and the case for Hash and Array polymorphism
- Ideally Hash and Array would be completely polymorphic in every manner in which it is possible for them to be so. The reason for this is very simple. It makes a programmer's life easier. For example, in a recent program I was working on,...
-
11:39 AM Bug #8770: [PATCH] process.c: avoid EINTR from Process.spawn
- Oops, attached
-
09:11 AM Bug #8770: [PATCH] process.c: avoid EINTR from Process.spawn
- patch please
-
06:11 AM Bug #8770 (Closed): [PATCH] process.c: avoid EINTR from Process.spawn
- (send_child_error): retry write on EINTR
(recv_child_error): retry read on EINTR
I've been getting occasional Errno::EINTR from Process.spawn with
just the prog name in the error message. This is probably the cause
of it, as I hav... -
10:21 AM Feature #8771 (Assigned): Start does not use proxy configuration form ENV variables
-
06:57 AM Feature #8771 (Closed): Start does not use proxy configuration form ENV variables
- =begin
* Start a fake proxy in a separate window: (({nc -l 8089}))
* (({export http_proxy=http://localhost:8089}))
* (({irb -r net/http}))
* (({Net::HTTP.start('google.com').get('/')}))
* Note that the above http request was not pro... - 10:12 AM Revision bd2b8d26 (git): * test/rexml/parser/test_sax2.rb: Expand abbreviated class name.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:08 AM Revision 45222164 (git): * lib/rexml/sax2listener.rb (REXML::SAX2Listener#notationdecl): Fix
- wrong number of arguments in the template listener.
[Bug #8731] [ruby-dev:47582]
Reported by Ippei Obayashi.
* test/rexml/parser/test_sax2.rb: Add tests for parsing notation
declarations with SAX2 API.
git-svn-id: svn+ssh://ci.ru... - 09:44 AM Revision 1864d578 (git): * lib/rexml/sax2listener.rb (REXML::SAX2Listener#elementdecl): Fix wrong
- examples. [Bug #8731] [ruby-dev:47582]
Reported by Ippei Obayashi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:42 AM Revision 8328d8a2 (git): * lib/rexml/parsers/sax2parser.rb
- (REXML::Parsers::SAX2Parser#handle_entitydecl): Extract.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:41 AM Revision 7e0022bc (git): * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
- Fix wrong "%" position in parameter entity declaration event argument.
* test/rexml/parser/test_sax2.rb: Add tests for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:18 AM Revision e0fff0d2 (git): * ChangeLog: Fix wrong description about entity declarations.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:10 AM Bug #8769: [PATCH] process.c (rb_fork_internal): remove cloexec setting
- Seems reasonable.
-
05:49 AM Bug #8769 (Closed): [PATCH] process.c (rb_fork_internal): remove cloexec setting
- The close-on-exec flag is already set via:
pipe_nocrash -> rb_pipe -> rb_cloexec_pipe
Calling fcntl here is redundant. - 09:09 AM Revision f61f11a9 (git): * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
- Support NDATA in external entity declaration.
* test/rexml/parser/test_sax2.rb: Add tests for the above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:08 AM Revision 3e5f5f5c (git): * lib/rexml/parsers/baseparser.rb
- (REXML::Parsers::BaseParser#pull_event): Support optional NDATA
in parameter entity declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:07 AM Feature #6225: Hash#+
- I think new method proposal should be a new ticket.
- 09:01 AM Revision ce89dedd (git): * NEWS (REXML::Parsers::SAX2Parser): Add about this change.
- * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
Fix wrong number of arguments. Document says "an array of the
entity declaration" but it passes two or more arguments.
This is a bug but it break backward compat... - 09:01 AM Revision 7e8b4368 (git): * NEWS (REXML::Parsers::SAX2Parser): Add about this change.
- * lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
Fix wrong number of arguments. Document says "an array of the
entity declaration" but it passes two or more arguments.
This is a bug but it break backward compat... - 08:43 AM Revision 99ed561b (git): * test/rexml/parser/test_sax2.rb: Add SAX2 API test.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:53 AM Revision e315aa0c (git): Revert r42502 "ext/-test-/*/depend: TEST_INIT_FUNCS"
- Makefiles should be re-configured by extract_makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:31 AM Revision 49826b4b (git): file.c: internal function
- * file.c (rb_str_normalize_ospath0): make the internal function
static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:11 AM Revision c6282e9b (git): parse.y: non-local/const attrset
- * parse.y (rb_enc_symname_type): allow ID_ATTRSET for ID_INSTANCE,
ID_GLOBAL, ID_CLASS, ID_JUNK too. [Bug #8756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:56 AM Bug #8766 (Closed): RDoc documentation bug: Symbol literal - This issue was solved with changeset r42500.
Tsuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/syntax/literals.rdoc: Use single quotes instead of doub... -
04:59 AM Bug #8767: IO.copy_stream should write in binary mode.
- "godfat (Lin Jen-Shin)" <godfat@godfat.org> wrote:
> This patch makes `IO.copy_stream' always copy in binary mode,
I think your patch makes sense.
> fixing the following scenario:
>
> require 'tempfile'
> requ... -
03:02 AM Bug #8767 (Closed): IO.copy_stream should write in binary mode.
- This patch makes `IO.copy_stream' always copy in binary mode,
fixing the following scenario:
require 'tempfile'
require 'stringio'
Encoding.default_internal = 'UTF-8'
out = Tempfile.new('out')
out.binmode
... -
04:41 AM Bug #8768 (Closed): [PATCH] tempfile: undefine finalizer on unlink
- * lib/tempfile.rb (Tempfile#unlink): undefine finalizer
running the finalizer on an unlinked Tempfile leads to a confusing
"removing ...done" message when using --debug. We can rely on
normal GC to close. rb_io_fptr_finalize w... - 04:23 AM Revision dc548ba0 (git): * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this
- should be sufficient to represent all the encodings Ruby supports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:04 AM Revision bf2ed963 (git): * file.c (rb_str_normalize_ospath): fix mixed code and declaration warning
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:43 AM Revision cef46a5e (git): [DOC] update doc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:10 AM Revision f4670f73 (git): ML ref. added.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:59 AM Revision 93bb4899 (git): * process.c (rb_clock_gettime): New method.
- This is accepted in the meeting:
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809
This method is accepted as a CRuby feature.
I.e. Other Ruby implementations don't need to implement it.
git-svn-id: svn+ssh... -
01:44 AM Revision 2e04bc77 (git): * lib/time.rb: [DOC] Correcting rdoc visibility of time.rb constants
- Reported by Tanaka Akira [ruby-core:56517]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e