Project

General

Profile

Activity

From 10/09/2013 to 10/15/2013

10/15/2013

11:23 PM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
(10/15/13 3:30 AM), Tanaka Akira wrote:
> 2013/10/15 kosaki (Motohiro KOSAKI) <kosaki.motohiro@gmail.com>:
>> Issue #9008 has been updated by kosaki (Motohiro KOSAKI).
>>
>>
>> ENOTSUPP
>> Note:
>>
>> 524 mean ENOSUPP.
...
kosaki (Motohiro KOSAKI)
04:53 PM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
2013/10/15 kosaki (Motohiro KOSAKI) <kosaki.motohiro@gmail.com>:
> Issue #9008 has been updated by kosaki (Motohiro KOSAKI).
>
>
> ENOTSUPP
> Note:
>
> 524 mean ENOSUPP.

> Any question?

Is ENOTSUPP related with E...
akr (Akira Tanaka)
03:57 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
One more.
Linux man page agree with OpenGroup spec. see
http://man7.org/linux/man-pages/man2/clock_getres.2.html
> EINVAL The clk_id specified is not supported on this system.
kosaki (Motohiro KOSAKI)
03:52 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
ENOTSUPP
Note:
524 mean ENOSUPP.
CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM uses following code. That says, it's a kernel bug.
linux/kernel/time/alarmtimer.c
---------------------------
/**
* alarm_clock_getres - posix get...
kosaki (Motohiro KOSAKI)
10:33 PM Revision cfe14580 (git): * 2013-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:33 PM Revision 2370e623 (git): * gc.c (gc_mark_roots): rename roots to be categories instead of function names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tmm1 (Aman Karmani)
10:14 PM Feature #9020: Net::HTTPResponse predicate/query methods
What libraries implement the Net::HTTP API that require duck-typing?
Do you have a patch for this feature request?
PS: if you respond via email, trim our the context. We don't need repeated copies of the history in the issue tracker.
drbrain (Eric Hodel)
07:53 PM Feature #9020: Net::HTTPResponse predicate/query methods
Agreed. Class chechinkg is bad, duck typing is elegant and flexible.
On Oct 15, 2013 7:41 AM, "timcraft (Tim Craft)" <redmine@ruby-lang.org>
wrote:

>
> Issue #9020 has been updated by timcraft (Tim Craft).
>
>
> drbrain...
fuadksd (Fuad Saud)
07:41 PM Feature #9020: Net::HTTPResponse predicate/query methods
drbrain (Eric Hodel) wrote:
> Why use === instead of a case statement?
I agree case statements would be more common than === when testing for multiple statuses. I used === in the example because it was testing for just one status (to...
timcraft (Tim Craft)
02:37 PM Feature #9020 (Assigned): Net::HTTPResponse predicate/query methods
=begin
Why use === instead of a case statement?
case response
when Net::HTTPSuccess then
response.body
when Net::HTTPRedirect then
get response['Location']
else
response.value # raises exception
end
=end
drbrain (Eric Hodel)
09:37 PM Feature #9023 (Assigned): Array#tail
FYI:
I made the same proposal in Japanese [ruby-dev:32198]. But matz did not agree with me because "tail" did not look a good name to him. Indeed, it is unnatural that all but "head" is "tail", especially, for those who are not fami...
mame (Yusuke Endoh)
03:58 PM Feature #9023: Array#tail
How about to extend Array#last (and Array#first too) to accept negative size? nobu (Nobuyoshi Nakada)
01:28 PM Feature #9023 (Assigned): Array#tail
I propose the addition of a `tail` method to the Array class that returns all elements but the first. It is a pretty common pattern in functional programming, but not limited to - I use it extensively in all kinds of apps/gems. The imple... fuadksd (Fuad Saud)
08:04 PM Bug #9022: all? method in empty array should return false
Since commenting on the other thread, i have leant that the proposed interpretation of the "for all" quantifier is apparently called "existential import" and apparently was a matter of debate in the 19th century (http://en.wikipedia.org/... alexeymuranov (Alexey Muranov)
02:04 PM Bug #9022 (Rejected): all? method in empty array should return false
nobu (Nobuyoshi Nakada)
12:49 PM Bug #9022: all? method in empty array should return false
This is a duplicate of #8723 phluid61 (Matthew Kerwin)
12:35 PM Bug #9022 (Rejected): all? method in empty array should return false
This is expected:
[].any?(&:whatever?)
# => false
But this is not the behavior which I expect:
[].all?(&:whatever?)
# => true
Do you agree with me?
lucascaton (Lucas Caton)
02:57 PM Bug #7445: strptime('%s %z') doesn't work
felipec (Felipe Contreras) wrote:
> `Time.strptime()` has been fixed in Ruby Core, and Rubinious has fixed `strptime()` in both `Time`, and `DateTime` in rubysl.
I guess the lack of reply means that you won't do the sensible thing he...
felipec (Felipe Contreras)
01:33 PM Feature #8921: Allow select, reject, etc to accept a regex
Hey nobu have you thought about this? I think it's a pretty interesting change to be introduced.
fuadksd (Fuad Saud)
01:30 PM Feature #8772: Hash alias #| merge, and the case for Hash and Array polymorphism
Just pinging. Any more ideas on this matter? fuadksd (Fuad Saud)
01:12 PM Revision 4d949777 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:22 AM Revision f2410168 (git): * gc.h (rb_objspace_reachable_objects_from_root): added.
This API provides information which objects are root objects.
`category' shows what kind of root objects.
* gc.c (gc_mark_roots): separate from gc_marks_body().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43294 b2dd03c8-39d4-4...
ko1 (Koichi Sasada)
10:18 AM Bug #9019: encoding: EUC-KR or EUC-JP does not seem to work
The file type was the problem, not the #encoding comment. sorry for the confusion. sarsntony (Hanwool Lee)
09:46 AM Revision 1fc32a34 (git): trivial change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:48 AM Revision c2bbe4b0 (git): * process.c: Fix a typo. MacOS X don't have ENOTSUPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:35 AM Bug #9016: String#encoding is lying?
I would expect that if ARGV[0].encoding is CP850, then the string is encoded as CP850. Instead, the string is encoded in another encoding, ISO-8859-1. The reduced test case should output this:
Encoding of argument is reported as CP850...
renatosilva (Renato Silva)
06:34 AM Bug #9016: String#encoding is lying?
It would vary on system code pages.
What do you expect and what did you get?
nobu (Nobuyoshi Nakada)
07:57 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
+1 for removing f suffix and amending the optimiser for #freeze sam.saffron (Sam Saffron)
07:36 AM Bug #8979: gem のプロキシ認証情報に @ を含むとエラー
I have updated #9014 with RubyGems 2.0.12 which contains this fix.
I will update trunk after I fix a separate bug that would break RubyGems if imported.
You can also install RubyGems 2.1.9 (latest) which will fix this issue.
drbrain (Eric Hodel)
07:34 AM Revision 4a01df4a (git): array.c: reduce RARRAY_LEN and ARY_CAPA
* array.c: reduce use of RARRAY_LEN and ARY_CAPA when object is not
modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:34 AM Revision d0885b5c (git): test_array.rb: add test
* test/ruby/test_array.rb (test_last2): add test for Array#last with
length argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:33 AM Revision 111327c5 (git): Makefile.sub: skip timezone tests
* win32/Makefile.sub (TZ): empty to skip timezone tests which are not
supported on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:02 AM Bug #9021 (Closed): [Doc] typos in rdoc of Digest module
Fixes minor typos in Digest module docs. stomar (Marcus Stollsteimer)

10/14/2013

11:46 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Totally agree with ssaffron on options 2 and 3 being scary. 3 is also impossible in MRI at the moment.
I'm happy to commit my patch optimizing #freeze on a literal string if it looks good.
I think we should move the discussion of r...
Anonymous
05:29 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> (13/10/14 8:40), sam.saffron (Sam Saffron) wrote:
> > Issue #8992 has been updated by sam.saffron (Sam Saffron).
>
> Thank you for summarizing.
>
> > There are 3 things being ...
normalperson (Eric Wong)
05:23 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
On Oct 14, 2013 5:00 PM, "headius (Charles Nutter)" <headius@headius.com>
wrote:
>
> Ok, let's just focus on #1 for now...
>
> It seems like everyone agrees that "string".freeze is a better choice
than adding incompatible sy...
phluid61 (Matthew Kerwin)
03:59 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Ok, let's just focus on #1 for now...
It seems like everyone agrees that "string".freeze is a better choice than adding incompatible syntax now. That was the original proposal in this issue.
Should we remove "string"f on master and...
headius (Charles Nutter)
12:53 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
(13/10/14 8:40), sam.saffron (Sam Saffron) wrote:
> Issue #8992 has been updated by sam.saffron (Sam Saffron).

Thank you for summarizing.

> There are 3 things being discussed here, I think it is fairly important we split the...
nobu (Nobuyoshi Nakada)
08:40 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
@hedius
There are 3 things being discussed here, I think it is fairly important we split them out.
1. Parser optimisation for "string".freeze
2. Unconditionally have #freeze return a pooled string
3. Change the semantics of #free...
sam.saffron (Sam Saffron)
10:20 PM Bug #5060: Executables in bin folder conflict with their gem versions.
drbrain (Eric Hodel) wrote:
> This is too risky to fix for 2.0.0, sorry I did not have time.
I would like to know when this issue can be solved and pushed into trunk at least :)
Thanks
salimane (Salimane Adjao Moustapha)
08:43 PM Feature #9020 (Assigned): Net::HTTPResponse predicate/query methods
# SUMMARY
I would like to propose adding predicate/query methods to Net::HTTPResponse for testing the status/type of response. For example:
response.ok?
response.not_found?
response.client_error?
response.server_...
timcraft (Tim Craft)
07:14 PM Revision ae65eeb6 (git): allpairs.rb: remove unused variable
* test/ruby/allpairs.rb (AllPairs#each_index): remove unused variable,
prime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:14 PM Revision 2e3d072d (git): test/-ext-: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:14 PM Revision 5f7f1e51 (git): test_profile_frames.rb: assert first_lineno
* test/-ext-/debug/test_profile_frames.rb (test_profile_frames):
assert first_lineno, only the top level of methods for the time
being.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:14 PM Revision 1881251e (git): * 2013-10-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:14 PM Revision 8cf09074 (git): test_profile_frames.rb: fix typo
* test/-ext-/debug/test_profile_frames.rb (test_profile_frames): fix
typo, methdo_names to method_names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:14 PM Revision f7b68ecf (git): assertions.rb: ignore nil message
* lib/test/unit/assertions.rb (assert): allow nil message and just
ignore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:57 PM Bug #9016: String#encoding is lying?
This reduced test case shows that the argument looks like an ISO-8859-1 string even though its encoding is reported as CP850. renatosilva (Renato Silva)
06:09 PM Bug #9019 (Feedback): encoding: EUC-KR or EUC-JP does not seem to work
Is that file saved in EUC-KR? nobu (Nobuyoshi Nakada)
05:42 PM Bug #9019 (Rejected): encoding: EUC-KR or EUC-JP does not seem to work
~~~ruby
#encoding: euc-kr
puts "하이"
~~~
ABOVE CODE returns `test.rb:2: invalid multibyte char (EUC-KR)`
~~~ruby
#encoding: utf-8
puts "하이"
~~~
ABOVE CODE returns `하이`
similar behavior on euc-jp as well.
sarsntony (Hanwool Lee)
09:23 AM Feature #9018: Make statically linked extensions easier to use
> All static libraries are linked into libruby-static.a.
Okay then I need to fix my build process. Can You tell me what flag exactly is making this happen?
> ...
bootstrap = ruby_init?
> I don't think a dummy file is needed.
...
Ahti (Lukas S)
12:49 AM Feature #9018 (Feedback): Make statically linked extensions easier to use
> 1. A program embedding libruby-static needs to link a whole bunch of static libraries.
All static libraries are linked into libruby-static.a.
> ...
Those functions are called at bootstrap.
I don't think a dummy file is needed.
nobu (Nobuyoshi Nakada)
08:00 AM Revision 8e385d67 (git): Makefile.sub: gem_prelude to load rubygems
* win32/Makefile.sub (DEFAULT_PRELUDES): always use gem_prelude
regardless of --disable-rubygems. follow up r43278.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:51 AM Revision 6ad62c83 (git): win32.h: declare fstati64 to suppress warnings
* include/ruby/win32.h (fstati64): declare for ext/-test-/file/stat.c
on w64-mingw, to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:32 AM Revision 11ef85d2 (git): ruby.c: load statically linked extensions before rubygems
* ruby.c (process_options): load statically linked extensions before
rubygems, because of ext/thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:31 AM Revision a3730a7e (git): ChangeLog: fix format
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:22 AM Revision 02d28d01 (git): ruby.c: gem_prelude to load rubygems
* ruby.c (process_options): use gem_prelude instead of requiring
rubygems directly when --enable=gems is given.
* Makefile.in (DEFAULT_PRELUDES): always use gem_prelude regardless of
--disable-rubygems.
git-svn-id: svn+ssh://ci.ruby...
nobu (Nobuyoshi Nakada)
02:07 AM Revision 3976eb12 (git): mkmf.rb: fix framework option
* lib/mkmf.rb (have_framework): should append framework options to
$LIBS, not $LDFLAGS. the former is propagated to exts.mk when
enable-static-linked-ext.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43277 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
02:07 AM Revision e3a9aee5 (git): * 2013-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:07 AM Revision 85e59cc5 (git): mkmf.rb: fix ranlib argument
* lib/mkmf.rb (create_makefile): ranlib on static library, not DLLIB.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/13/2013

10:11 PM Feature #8951: Please add a hash-to-hash alternative of the map method to Hash
How about having a construct similar to `map.with_index`? For example `map.to_has` or `map.hashify`:
```
hash = { ... }
hash.map.to_hash do |e|
convert(e)
end
```
or
```
hash = { ... }
hash.map.hashify do |e|
convert(e...
behrangsa (Behrang Saeedzadeh)
02:53 PM Revision c4b6e967 (git): * vsnprintf.c: Fix spelling from compliment to complement.
Patch by @agrimm. Closes GH-422.
* include/ruby/ruby.h: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
11:59 AM Revision 15798b60 (git): vm.c: initialize defined_module_hash early
* vm.c (Init_BareVM): initialize defined_module_hash here,
Init_top_self() is too late to register core classes/modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:38 AM Feature #9018 (Closed): Make statically linked extensions easier to use
Sorry for the lengthy post, my english is not that good and the idea is not that simple to explain either.
## Current situation
For platforms where dynamic linking is not available, the ruby build system provides a way to disable d...
Ahti (Lukas S)
04:29 AM Bug #9016: String#encoding is lying?
If you type "chcp 850" in cmd.exe before calling the script, it should accept the argument. You can use the word "Japonês" (Japanese) as example for the file path. renatosilva (Renato Silva)
03:49 AM Revision a7d04e53 (git): Makefile.in: generate for each makefiles
* Makefile.in (MKFILES): generate for each files for parallel build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:42 AM Revision e8da0836 (git): test_rake_clean.rb: skip on Windows
* test/rake/test_rake_clean.rb (create_undeletable_file): skip when
permission to delete files is different.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 AM Revision 0d3aa6b8 (git): * 2013-10-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 AM Revision 0e040f8d (git): compile.c, vm.c: reduce hash merge
* compile.c (compile_array_): no hash to merge if it is empty.
* vm.c (m_core_hash_merge_kwd): just check keys if only one argument
is given, without merging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43269 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
03:16 AM Revision 060b4df0 (git): test_notimp.rb: test timeout
* test/ruby/test_notimp.rb (test_call_fork): test timeout directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:26 AM Bug #9017 (Closed): irb crash with message "... 'join': incompatible character encodings: ASCII-8BIT and UTF-8 ..."
With Pyper gem that I wrote, irb crashes as follows:
require 'pyper' # gem install pyper if necessary
[''].τmsτ # τ is Greek tau
#=> irb crashes:
ArgumentError: no method name given
/usr/local/lib/ruby/2.0.0/irb.rb:526:in `join': ...
Anonymous

10/12/2013

08:27 PM Bug #9016 (Feedback): String#encoding is lying?
I know nothing about CP850, give a concrete example path name to reproduce it. nobu (Nobuyoshi Nakada)
04:02 PM Bug #9016 (Closed): String#encoding is lying?
Please see attached test case.
If you try opening a file using a CP850 (possibly others) path which was passed as command line argument, you are not able at all, unless you encode the argument into its very own reported encoding (CP85...
renatosilva (Renato Silva)
09:29 AM Revision 0574cc87 (git): get rid of a garbage character
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:29 AM Revision 62002341 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:40 AM Bug #8979: gem のプロキシ認証情報に @ を含むとエラー
I have fixed this here on RubyGems master:
https://github.com/rubygems/rubygems/commit/c355880f2016597b3f0f632fbcdc688313052009
I will apply this patch to RubyGems 2.0 branch, release it and create a backport request for the new ve...
drbrain (Eric Hodel)
12:16 AM Feature #8956: Allow hash members delimited by \n inside of {}
Adding another patch with tests for no-comma hashes, arrays, and method arguments. adamdunson (Addie Drake)

10/11/2013

10:42 PM Bug #8886: TracePoint API inconsistence when raise used
I don't think ruby works like that right now. If :raise event occurs inside raise method, then when I print the backtrace of an exception, I should get the raise method as the first frame, just like when I do Thread.current.backtrace_loc... deivid (David Rodríguez)
10:21 PM Revision 86e6e2e7 (git): * remove trailing spaces, append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:57 PM Feature #8636: Documentation hosting on ruby-lang.org
>zzak
added you into docs.ruby-lang.org administrators.
hsbt (Hiroshi SHIBATA)
09:23 PM Feature #8636: Documentation hosting on ruby-lang.org
Thank you shibata-san, could you add me to the new repository?


On Oct 11, 2013, at 2:04 AM, hsbt (Hiroshi SHIBATA) <shibata.hiroshi@gmail.com> wrote:

>
> Issue #8636 has been updated by hsbt (Hiroshi SHIBATA).
>
>
...
zzak (zzak _)
09:23 PM Feature #8636: Documentation hosting on ruby-lang.org
Sounds great, thanks okkez!!


On Oct 11, 2013, at 2:00 AM, okkez (okkez _) <redmine@ruby-lang.org> wrote:

>
> Issue #8636 has been updated by okkez (okkez _).
>
>
> zzak (Zachary Scott) wrote:
>>
>> I like docs subdomai...
zzak (zzak _)
03:04 PM Feature #8636: Documentation hosting on ruby-lang.org
>we need to rename this to https://github.com/docs.ruby-lang.org and merge zzak/docs.ruby-lang.org .
rename done!
hsbt (Hiroshi SHIBATA)
03:00 PM Feature #8636: Documentation hosting on ruby-lang.org
zzak (Zachary Scott) wrote:
>
> ...
This is OK to me.
BTW, we have a repository https://github.com/ruby/doc.ruby-lang.org .
If we decide to use docs subdomain,
we need to rename this to https://github.com/docs.ruby-lang.org and merge zz...
okkez (okkez _)
09:35 PM Revision 9cadc95b (git): * NEWS (with all sufficient information):
* lib/rake: Update to rake 10.1.0
* bin/rake: ditto.
* test/rake: ditto.
* NEWS: Update NEWS to include rake 10.1.0 and links to release notes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43264 b2dd03c8-39d4-4d8f-98ff-823fe6...
drbrain (Eric Hodel)
06:27 PM Revision 52c13317 (git): * class.c, variable.c, gc.c (rb_class_tbl): removed.
* vm.c, vm_core.h (rb_vm_add_root_module): added to register as a
defined root module or class.
This guard helps mark miss from defined classes/modules they are
only refered from C's global variables in C-exts.
Basically, it is e...
ko1 (Koichi Sasada)
06:26 PM Revision 86b2e9d0 (git): * vm_method.c (rb_gc_mark_unlinked_live_method_entries):
revert last commit to introduce debug prints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:03 PM Revision 9d70a175 (git): revert r43259 because it is possible to mark miss classes defined in C-exts. Thanks charliesome.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:33 PM Revision 3b0abede (git): * 2013-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:33 PM Revision 7aecb956 (git): * class.c, variable.c, gc.c (rb_class_tbl): removed.
rb_class_tbl is no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:23 PM Bug #9002: Use simpler example for File#expand_path
Can we give both examples? I think the original example is a bit hard to understand due to two "..". In the first example we can show normal use and in second example, as you pointed out, how to resolve "..".
Eregon (Benoit Daloze) wrot...
cha1tanya (Prathamesh Sonpatki)
12:06 PM Revision 588586d9 (git): * internal.h, parse.y: use `full_mark' instead of `full_marking'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
12:00 PM Revision 432834dd (git): * gc.c: use terminology `full_mark' instead of `minor_gc'
in mark functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:46 AM Revision f6fcb9cc (git): * gc.c: use __GNUC__ instead of __GCC__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:45 AM Revision f44b0e5b (git): * gc.c, parse.y: support generational Symbol relatetd marking.
Each symbols has String objects respectively to represent
Symbols.
These objects are marked only when:
* full marking
* new symbols are added
This hack reduce symbols (related strings) marking time.
For example, on my Linux envir...
ko1 (Koichi Sasada)
10:31 AM Revision 73e01440 (git): Import ruby-electric.el 2.0.1, a bug fix release.
* misc/ruby-electric.el: Import ruby-electric.el 2.0.1 which fixes
a bug and a flaw with auto-end introduced in the revamp.
* ruby-forward-sexp is inappropriate here because it moves the
cursor past the keyword.
* Fix a rever...
Akinori MUSHA
10:18 AM Bug #7458: Depending on value of BigDecimal::limit, addition can give inaccurate results
=begin
Still present in
(({ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-linux]}))
=end
bpow (Bradford Powell)
09:13 AM Revision 33ab98f9 (git): * ext/objspace/gc_hook.c: prohibit reentrant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
09:12 AM Revision 542b31ca (git): * vm_trace.c (rb_postponed_job_flush): fix bit operation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:38 AM Revision 86597752 (git): Import ruby-electric.el 2.0.
* misc/ruby-electric.el: Import ruby-electric.el 2.0 from
https://github.com/knu/ruby-electric.el which integrates changes
from another fork by @qoobaa.
* Allow ruby-electric-mode to be disabled by introducing a
dedicated key m...
Akinori MUSHA
07:54 AM Revision 76f9281b (git): * vm_trace.c (rb_postponed_job_flush): simplify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:23 AM Revision 19ae2748 (git): revert r43248. Should not set interrupt_flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:37 AM Bug #8492 (Closed): ObjectSpace.after_gc_start_hook aborts with GC.stress
This issue was solved with changeset r43245.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_trace.c: fix infinite hook
* thread.c (rb_threadptr_execute_in...
nobu (Nobuyoshi Nakada)
12:09 AM Bug #8654: SEGV in Array#count
... and backport r42068, r42069 to suppress warning and fix failure on CI (run with -w option). nagachika (Tomoyuki Chikanaga)

10/10/2013

11:56 PM Revision 12a5525b (git): vm_trace.c: use macro
* vm_trace.c (rb_postponed_job_flush): use dedicated macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:52 PM Revision d7de5299 (git): vm_trace.c: suppress warnings
* vm_trace.c (rb_postponed_job_flush): suppress clobbered variable
warnings on some gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:52 PM Revision 2d4c2453 (git): win32.h: define or declare finite always
* include/ruby/win32.h (finite): always define or declare. some
mingw (maybe w64 only?) lack the declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:28 PM Bug #9013 (Closed): Crash on start
I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many gems installed, though I'm not able to run gem list (no output). In my scripts I use mechanize.
I get the following error when I start irb:
C:\>irb
<internal:...
lemonez (Dmitry Popov)
11:16 PM Bug #9012: Interpreter crashes when I try to load any page in my rails 3.2 app
=begin
naruse (Yui NARUSE) wrote:
> Could you make small reproducible code which doesn't include NDA code?
I can show you a trimmed-down controller, but it will probably not be of any help. Apparently, even a controller action that ...
vaselinessa (Mark Anderson)
11:07 AM Bug #9012 (Feedback): Interpreter crashes when I try to load any page in my rails 3.2 app
Could you make small reproducible code which doesn't include NDA code? naruse (Yui NARUSE)
10:38 AM Bug #9012: Interpreter crashes when I try to load any page in my rails 3.2 app
Can't deliver the code because of NDA. Alas. vaselinessa (Mark Anderson)
10:34 AM Bug #9012 (Closed): Interpreter crashes when I try to load any page in my rails 3.2 app
In my rails app (which works fine on all of my machines but Mac), attempting to request any page, either in the rails console or via the browser (using rails server) results in a ruby interpreter crash.
See the attached files for the ...
vaselinessa (Mark Anderson)
09:30 PM Feature #5617: Allow install RubyGems into dediceted directory
Here is recent version of the patch against ruby 2.1.0 preview1
http://pkgs.fedoraproject.org/cgit/ruby.git/tree/ruby-2.1.0-custom-rubygems-location.patch?h=private-ruby-2.1
vo.x (Vit Ondruch)
09:27 PM Bug #7807: [PATCH] Remove duplicated load paths when empty version string is configured
This is updated version of this patch against ruby 2.1 preview1:
http://pkgs.fedoraproject.org/cgit/ruby.git/tree/ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch?h=private-ruby-2.1
vo.x (Vit Ondruch)
07:50 PM Bug #9010: ./configure --prefix= cannot handle directories with spaces
maybe its a problem with your shell? on Mac i am currently using it works
hm or try if you can build ruby-trunk.
Hanmac (Hans Mackowiak)
10:22 AM Bug #9010 (Assigned): ./configure --prefix= cannot handle directories with spaces
nagachika (Tomoyuki Chikanaga)
07:50 AM Bug #9010 (Assigned): ./configure --prefix= cannot handle directories with spaces
It appears that the linking task fails when the --prefix value contains spaces.
Steps to Reproduce:
1. ./configure --prefix="$HOME/foo bar"
2. make
Expected Result: success
Actual Result:
make[2]: Entering directory `/home/...
postmodern (Hal Brodigan)
06:48 PM Bug #9002: Use simpler example for File#expand_path
I don't know, the original example shows File.expand_path does resolve ".." and such.
Your example could be interpreted as File.expand_path being just File.join with reversed arguments.
On the other hand, ".." could be used just once i...
Eregon (Benoit Daloze)
06:36 PM Revision 53861b8a (git): vm_trace.c: fix infinite hook
* thread.c (rb_threadptr_execute_interrupts): flush postponed job only
once at last.
* vm_trace.c (rb_postponed_job_flush): defer calling postponed jobs
registered while flushing to get rid of infinite reentrance of
ObjectSpace.aft...
nobu (Nobuyoshi Nakada)
06:33 PM Feature #8976: file-scope freeze_string directive
akr (Akira Tanaka) wrote:
> 2013/10/10 headius (Charles Nutter) <headius@headius.com>:
> ...
I think freezing these literals by adding ".freeze" to each of them is appropriate, these literals should already (in current version) be froz...
Eregon (Benoit Daloze)
12:59 AM Feature #8976: file-scope freeze_string directive
2013/10/10 headius (Charles Nutter) <headius@headius.com>:
> Issue #8976 has been updated by headius (Charles Nutter).
>
> See also #8992 that might address all issues by simply making the compiler and #freeze methods smarter.
>...
akr (Akira Tanaka)
12:43 AM Feature #8976: file-scope freeze_string directive
boris_stitnicky (Boris Stitnicky) wrote:
> "..."f might be mildly ugly, but is hard to beat.
> ...
I still don't like file-scope directive since it changes *behavior* rather than just *content*. In other words, a file that gains a froz...
headius (Charles Nutter)
06:12 PM Feature #8823 (Rejected): Run trap handler in an independent thread called "Signal thread"
ko1 (Koichi Sasada)
06:07 PM Bug #8492: ObjectSpace.after_gc_start_hook aborts with GC.stress
随分放置してしまってすみません。
これ、今でもなりますか? 手元ではなんか
$ ./ruby -robjspace -e'ObjectSpace.after_gc_start_hook=proc{};GC.stress=true;{}'
セグメンテーション違反です
などと出てしまう。これはこれでまずかろう、という気もしますが...。
ko1 (Koichi Sasada)
06:06 PM Bug #7976 (Feedback): TracePoint call is at call point, not call site
This behavior is same as backtrace.
Nearest file name and line number is used for C call,
because there are no file name and line for C methods.
```
# modify trace as follows:
tp = TracePoint.new(:call, :return, :c_call, :c_return...
ko1 (Koichi Sasada)
05:35 PM Bug #8886: TracePoint API inconsistence when raise used
deivid (David Rodríguez) wrote:
> Expected output
> ...
Could you tell me why it is expected?
:raise event occures in raise method. So the current behavior works for me.
ko1 (Koichi Sasada)
05:31 PM Bug #8622 (Closed): Tracepoint API: B_RETURN_EVENT not triggered when "return" used inside lambda
This issue was solved with changeset r43237.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (vm_exec): support :b_return event for "lambda{return}.ca...
ko1 (Koichi Sasada)
05:19 PM Bug #8974 (Closed): TestTracepointObj#test_tracks_objspace_events
nobu fixed this issue by r43209. Thanks!! ko1 (Koichi Sasada)
04:29 PM Revision abd6dc8c (git): * 2013-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:28 PM Revision b28ce966 (git): st.c: revert st_keys
* st.c: revert st_keys() at r43238. VALUE cannot be in st.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:09 PM Revision f0aa3711 (git): merge revision(s) 42068,42069: [Backport #8654]
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:04 PM Revision d4f37a55 (git): * array.c (rb_ary_or): remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
02:02 PM Revision 2423e3f3 (git): * array.c (rb_ary_or): use rb_hash_keys().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
12:37 PM Revision 840cd22d (git): * array.c (rb_ary_compact_bang): use ary_resize_smaller().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
12:06 PM Revision 026955e3 (git): * st.c (st_keys): define st_keys() for performance improvement of
Hash#keys and Array#uniq.
* st.h: ditto.
* hash.c (rb_hash_keys): use st_keys().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
11:53 AM Feature #8998: string keys for hash literals should use fstrings
The issue I had with my original patch is fixed by nobu with r43210
Thanks!

So my proposed patch should be safe to apply, but it's only a partial
implementation of the idea for this feature.

I don't think I'll have time+en...
normalperson (Eric Wong)
11:53 AM Bug #9011: rb_fstring unsafe to use in general case
"ko1 (Koichi Sasada)" <redmine@ruby-lang.org> wrote:
> Nobu's patch r43210 may solve this problem. Could you verify it?

Thanks, I did not think to update my repo :x
Anyways, r43210 works fine.

> BTW, I don't like this fix....
normalperson (Eric Wong)
10:01 AM Bug #9011: rb_fstring unsafe to use in general case
Nobu's patch r43210 may solve this problem. Could you verify it?
BTW, I don't like this fix. I'll try fix by another way.
ko1 (Koichi Sasada)
09:26 AM Bug #9011 (Closed): rb_fstring unsafe to use in general case
I don't think the current "frozen"f in pure Ruby code is unsafe
(I haven't reproduced a crash)
But I do not think rb_fstring is generally safe for other C code, including extension authors
Consider the following case:
f...
normalperson (Eric Wong)
11:53 AM Feature #7854: New method Symbol[string]
Is this feature request rejected? I thought it would be in 2.1


On 10/01/2013 06:15 PM, Student (Nathan Zook) wrote:
> Issue #7854 has been updated by Student (Nathan Zook).
>
>
> This was set to "next minor" a LONG time...
Student (Nathan Zook)
10:56 AM Bug #8995: バイナリデータを文字列として encode! すると readbyte の結果が変化する
なかださんの指摘の通り、
> return params.force_encoding("UTF-8").encode!
の行は何がしたいのかよくわかりませんね。
本当は
> ...
とやって、まさに Ruby 2.1 の挙動にしたかったのかな。
結論もなかださんの仰るとおり、
バイナリデータフラグを加えるか、ASCII-8BITで流すかあたりになるんじゃないかと思います。
naruse (Yui NARUSE)
08:31 AM Revision 4599d3ef (git): * vm.c (vm_exec): support :b_return event for "lambda{return}.call".
[Bug #8622]
* test/ruby/test_settracefunc.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:33 AM Revision d63f9e93 (git): win32.c: bail out if no memory
* win32/win32.c (rb_w32_write_console): bail out when buffer
allocation failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:33 AM Revision 09b02349 (git): numeric.c: no declaration of finite
* numeric.c (finite): disable declaration on Windows, which can be
defined in ruby/win32.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:56 AM Revision fa7bf880 (git): * vm_trace.c (postponed_job): use preallocated buffer.
Pre-allocate MAX_POSTPONED_JOB (1024) sized buffer
and use it.
If rb_postponed_job_register() cause overflow, simply it
fails and returns 0.
And maybe rb_postponed_job_register() is signal safe.
* vm_core.h: change data structure...
ko1 (Koichi Sasada)
03:21 AM Bug #9009 (Closed): Wrong binding when tracing c-calls
When I use set_trace_func to trace ruby code, I get a wrong binding in
case of c-calls. In this case binding.eval("self") is not the receiver
of the call. Whereas in case of ruby-calls binding.eval("self") yields
the receiver of the c...
yekka (Nikolay Bozhenov)
03:13 AM Revision 3d3a0d88 (git): string.c: use str_duplicate
* string.c (rb_str_resurrect): use str_duplicate(), which does
completely same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:11 AM Revision 16095eb1 (git): vm.c: hide singleton class of frozen-core
* vm.c (Init_VM): hide also the singleton class of frozen-core, not
only frozen-core itself.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:04 AM Feature #8956: Allow hash members delimited by \n inside of {}
sawa,
Could you elaborate? I still find that expression to be ambiguous. Here's another example that works with ruby 2.0.0-p247:
~~~ruby
def foo(a, b = 0, c = 0)
a + b + c
end
def bar(a = 1, b = 0)
a + b
end
puts foo...
adamdunson (Addie Drake)
12:54 AM Feature #8956: Allow hash members delimited by \n inside of {}
adamdunson,
As I wrote already, omission of comma is to be allowed only when the `()[]{}|` is not omitted.
~~~ruby
foo(bar 1 2)
~~~
would be unambiguously `foo` taking three arguments `bar`, `1`, and `2`.
sawa (Tsuyoshi Sawada)
12:24 AM Feature #8956: Allow hash members delimited by \n inside of {}
Hi sawa,
> Another case where similar syntax might be relevant is `| |` inside a block. ... should go together with ... arguments in method definition
I agree. Arguments in method definitions have been on my to-do list — I haven't ...
adamdunson (Addie Drake)
01:37 AM Bug #9003: Range.new on objects without <=> but with Comparable does raise SystemStackError, and if this is catched it crash in "Segmentation fault"
backport r43208 to ruby_2_0_0 at r43230. nagachika (Tomoyuki Chikanaga)
01:29 AM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
> Why clock_gettime on Fedora Rawhide (ARM) doesn't cause EINVAL for
> ...
That is good question. I was hoping that you might know better ... So to say, I have no idea. I tried to identify the place where the error is risen, but I fail...
vo.x (Vit Ondruch)
01:12 AM Bug #8768: [PATCH] tempfile: undefine finalizer on unlink
backport r43110 and r43155 to ruby_2_0_0 at r43229. nagachika (Tomoyuki Chikanaga)
01:04 AM Bug #8654: SEGV in Array#count
backported r42040, r42041 and r42047 to ruby_2_0_0 at r43228. nagachika (Tomoyuki Chikanaga)
01:01 AM Feature #8977: String#frozen that takes advantage of the deduping
Actually, I'm getting pretty down on having the fstring cache at all. It seems like if we want a string pool, it should be via a library. Adding something into Ruby that pools strings for you just seems like asking for trouble, either du... headius (Charles Nutter)
12:46 AM Feature #8977: String#frozen that takes advantage of the deduping
I believe we should just make #freeze use the fstring pool as mentioned in #8992. I do not see any disadvantages to this other than having strings stick around a bit longer in implementations that keep them in a weak map. headius (Charles Nutter)
12:55 AM Bug #8769: [PATCH] process.c (rb_fork_internal): remove cloexec setting
backported to ruby_2_0_0 at r43227. nagachika (Tomoyuki Chikanaga)
12:39 AM Bug #8990: please disable *context on hurd
backported to ruby_2_0_0 at r43225. nagachika (Tomoyuki Chikanaga)
12:28 AM Feature #8257: Exception#cause to carry originating exception along with new one
matz (Yukihiro Matsumoto) wrote:
> * Fundamentally accepted.
Hooray!
> ...
java.lang.Throwable does not have #setCause, so I agree. It does have #initCause, which can only be called once (if cause has not already been provided via...
headius (Charles Nutter)
12:03 AM Feature #8909: Expand "f" frozen suffix to literal arrays and hashes
=begin
Note that if #8992 is accepted, the same optimization could apply to arrays and hashes. In other words:
[].freeze
{}.freeze
[:foo, 1, true].freeze
{:foo => 1}.freeze
could all be optimized to return the same obje...
headius (Charles Nutter)

10/09/2013

11:46 PM Misc #9007 (Closed): ruby 1.9.x not maintained?
sorah (Sorah Fukumori)
11:41 PM Misc #9007: ruby 1.9.x not maintained?
looks great, thank you! - this ticket can be closed. mpapis (Michal Papis)
09:47 AM Misc #9007: ruby 1.9.x not maintained?
There is a page:
http://bugs.ruby-lang.org/projects/ruby/wiki/ReleaseEngineering
akr (Akira Tanaka)
08:14 AM Misc #9007 (Closed): ruby 1.9.x not maintained?
I would like to warn users installing old Ruby via RVM about old versions, I was told that 1.9.1/2/3 is no more maintained but I can not find any announcement for that, is there a page displaing currently supported/maintained ruby versions? mpapis (Michal Papis)
10:27 PM Feature #8257: Exception#cause to carry originating exception along with new one
Hi,
* Fundamentally accepted.
* I am against #cause=
* It's OK that #raise to have cause: keyword argument to specify cause
* I am not sure automagical capturing of $! would not cause wrong capturing or not
Matz.
matz (Yukihiro Matsumoto)
10:23 PM Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
2013/10/9 vo.x (Vit Ondruch) <v.ondruch@tiscali.cz>:
> Bug #9008: TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
> https://bugs.ruby-lang.org/issues/9008

> I observe following...
akr (Akira Tanaka)
10:14 PM Bug #9008 (Rejected): TestProcess#test_clock_getres_constants and TestProcess#test_clock_gettime_constants fails on ARM
=begin
I observe following two errors on ARM Building Ruby for Fedora Rawhide. It seems that (({:CLOCK_REALTIME_ALARM})) and (({:CLOCK_BOOTTIME_ALARM})) are not supported there. The error message is confusing, though :/

3) Erro...
vo.x (Vit Ondruch)
09:53 PM Feature #8636: Documentation hosting on ruby-lang.org
Hello Okkez, Thanks for your feedback!


On Oct 8, 2013, at 10:13 PM, okkez (okkez _) <redmine@ruby-lang.org> wrote:
>>
>> I think docs.ruby-lang.org/en will be default for now, as we add more translations we can list them on...
zzak (zzak _)
11:13 AM Feature #8636: Documentation hosting on ruby-lang.org
Sorry for my late response.
I couldn't notice this issue.
zzak (Zachary Scott) wrote:
> Hello!
> ...
I think docs.ruby-lang.org/ will show links to other languages.
(See doc.ruby-lang.org. It's very very simple page I craeted;-))
...
okkez (okkez _)
01:23 AM Feature #8636: Documentation hosting on ruby-lang.org
Hello!

> On Oct 7, 2013, at 11:10 AM, "kou (Kouhei Sutou)" <kou@cozmixng.org> wrote:
>
>> For now, I think we should just have docs.ruby-lang.org be the english documentation site. However, I'd like more feedback from the RUREMA t...
zzak (zzak _)
09:04 PM Revision dcad4bda (git): * test/ruby/test_rand.rb: fix r43224. local variable `e' is
no longer available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:12 PM Bug #7565: Redundant functions in ruby-additional.el
I'll handle this. knu (Akinori MUSHA)
04:36 PM Revision c05d019c (git): merge revision(s) 43208: [Backport #9003]
* compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003]
* thread.c (rb_exec_recursive_paired_outer): new function which is
combinnation of paired and outer variants.
git-svn-id: svn+ssh://ci.ruby-lang....
nagachika (Tomoyuki Chikanaga)
04:11 PM Revision a577137c (git): merge revision(s) 43110,43155: [Backport #8768]
* lib/tempfile.rb (Tempfile#unlink): finalizer is no longer needed
after unlinking. patched by by normalperson (Eric Wong) at
[ruby-core:56521] [Bug #8768]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
nagachika (Tomoyuki Chikanaga)
04:04 PM Revision 0a57e6c9 (git): merge revision(s) 42040,42041,42047: [Backport #8654]
* array.c (rb_ary_count): iterate items appropriately.
[Bug #8654]
* array.c (rb_ary_count): check length to avoid SEGV
while iterating. Remove other pointer loop when arg is given.
* test/ruby/test_...
nagachika (Tomoyuki Chikanaga)
04:03 PM Bug #8812: RSS: document more constants
Any time. :) steveklabnik (Steve Klabnik)
04:03 PM Bug #8821: Add documentation for Time#w3cdtf
Great! Do you need me to modify the patch, or is this simple enough to change as you apply it? steveklabnik (Steve Klabnik)
04:02 PM Bug #8889: Nodoc large parts of RSS
Sounds good to me. I'm not sure when I will get to it, but that makes sense. steveklabnik (Steve Klabnik)
03:54 PM Revision f4811c7e (git): merge revision(s) 43008: [Backport #8769]
* process.c (rb_fork_internal): remove cloexec setting on pipes
created by rb_cloexec_pipe. patch by normalperson (Eric Wong) at
[ruby-core:56523]. [Bug #8769]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/...
nagachika (Tomoyuki Chikanaga)
03:37 PM Revision 1572c8ed (git): merge revision(s) 43179,43180,43181,43192,43193: [Backport #8990] [Backport #9000]
* configure.in, win32/Makefile.sub (FIBER_USE_NATIVE): move conditions
from cont.c
* cont.c (FIBER_USE_NATIVE): split long conditions.
* cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't
...
nagachika (Tomoyuki Chikanaga)
03:20 PM Revision 6da62ade (git): merge revision(s) 43077,43078: [Backport #8937]
* test/dl/test_base.rb: {libc, libm} detection now handle GNU/Hurd
correctly. Patch by Gabriele Giacone (1o5g4r8o@gmail.com).
* test/fiddle/helper.rb: ditto.
[Bug #8937][ruby-core:57311]
git-svn-id: svn+ssh...
nagachika (Tomoyuki Chikanaga)
03:17 PM Revision 2918f391 (git): test/ruby: assert_raise_with_message
* test/ruby: use assert_raise_with_message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:08 PM Revision e92ee13c (git): * 2013-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 PM Revision 487a25d2 (git): * numeric.c (fix_aref): avoid a possible undefined behavior.
1L << 63 on 64-bit platform is undefined, at least, according to
ISO/IEC 9899 (C99) 6.5.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:07 PM Revision 8b73cefe (git): merge revision(s) 43177,43191: [Backport #8991]
* lib/time.rb (Time.strptime): Use :offset.
Patch by Felipe Contreras. [ruby-core:57694]
* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
time Time object as Ruby 2.0 and before.
git-s...
nagachika (Tomoyuki Chikanaga)
02:57 PM Revision 9eecfd5c (git): merge revision(s) 43092: [Backport #8969]
* gc.c (rb_gc_disable): do rest_sweep() before disable GC.
This fix may solve a failure of
TestTracepointObj#test_tracks_objspace_events
[test/-ext-/tracepoint/test_tracepoint.rb:43].
git-svn-id: svn+ssh:/...
nagachika (Tomoyuki Chikanaga)
02:57 PM Revision 24cf7202 (git): object.c: avoid inadvertent symbol creation
* object.c (id_for_attr): avoid inadvertent symbol creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:53 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
normalperson (Eric Wong) wrote:
> "headius (Charles Nutter)" <headius@headius.com> wrote:
> ...
I think we do. The worst case scenario is that *while referenced* we have more entries in the table, which may include strings that become ...
headius (Charles Nutter)
02:48 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
headius (Charles Nutter) wrote:
> This question applies equally to "str"f logic. I'm not sure what the answer is, because I don't know how frozen strings in @charliesome's patch interact with C extensions.
Actually, it occurred to me...
headius (Charles Nutter)
02:46 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
sam.saffron (Sam Saffron) wrote:
> @hedius
> ...
This question applies equally to "str"f logic. I'm not sure what the answer is, because I don't know how frozen strings in @charliesome's patch interact with C extensions.
I don't th...
headius (Charles Nutter)
12:01 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
@hedius
What happens when a string pointer leaks out to a c extension?
sam.saffron (Sam Saffron)
11:29 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
"headius (Charles Nutter)" <headius@headius.com> wrote:
> So here's the same question I asked in the #frozen feature: why can't
> #freeze just use the fstring table?

That would be an interesting experiment. After all, it is #f...
normalperson (Eric Wong)
09:25 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
sam.saffron (Sam Saffron) wrote:
> I am actually very concerned about compiler tricks with freeze cause it leads to non-obvious code.
> ...
I don't think you should *ever* rely on this to be true, since it won't be on older Ruby impls...
headius (Charles Nutter)
06:56 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
I am actually very concerned about compiler tricks with freeze cause it leads to non-obvious code.
x = "hello".freeze
y = "hello".freeze
x.object_id
> 10
x.object_id == y.object_id
a = "hello"
a.object_id
> ...
a.freeze
a.o...
sam.saffron (Sam Saffron)
06:47 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
I feel like we're getting a bit off topic in this thread.
The main benefit of optimizing String#freeze is maintaining backwards compatibility with older Rubies. Think of it as a kind of 'progressive enhancement'.
Introducing new sy...
Anonymous
06:04 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Yep, we can discard the accent.
The double pipe can be tricky is you want to set a frozen string as default value of a block argument.
The double ^ has confict with the xor operator.
The double ~ has conflict with the complement ope...
cibernox (Miguel Camba)
05:35 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
cibernox (Miguel Camba) wrote:
> I have another idea What about wrap strings in double backquotes or accents?
> ...
I don't think the parser can distinguish this from normal backquotes that are empty...but there's no value to supportin...
headius (Charles Nutter)
04:24 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
I have another idea What about wrap strings in double backquotes or accents?
"this is an interpolable string"
'this is an uninterpolable string'
``this is a frozen string`` => double backquoute
´this is also a frozen string´ => simpl...
cibernox (Miguel Camba)
02:14 PM Revision 372eb2cb (git): * ChangeLog; fix typos in r43170.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:03 PM Bug #8993: Request for clarification on method argument binding for keyword arguments
I don't believe that's true. If I understand #8040 correctly, it's change is well summarized in comment 2:
> But, it may be good that we consider the hash for a keyword *only when* the number of arguments is more than the expected manda...
97jaz (Jon Zeppieri)
01:53 PM Bug #9003 (Closed): Range.new on objects without <=> but with Comparable does raise SystemStackError, and if this is catched it crash in "Segmentation fault"
This issue was solved with changeset r43208.
Hans, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
compar.c: fail if recursion
* compar.c (cmp_eq): fail if recursi...
nobu (Nobuyoshi Nakada)
04:47 AM Bug #9003: Range.new on objects without <=> but with Comparable does raise SystemStackError, and if this is catched it crash in "Segmentation fault"
about JRuby ... i heard that it ignores the "rescue SystemStackError" clause ... i try to file an bug somewhere Hanmac (Hans Mackowiak)
04:40 AM Bug #9003 (Closed): Range.new on objects without <=> but with Comparable does raise SystemStackError, and if this is catched it crash in "Segmentation fault"
this code causes "Segmentation fault: 11"
o1=Object.new
o1.extend(Comparable)
o2=Object.new
o2.extend(Comparable)
begin
p Range.new(o1,o2) # raises Stack Error
rescue SystemStackError
end
begin
p Range.new(o1,o2) # S...
Hanmac (Hans Mackowiak)
01:27 PM Revision e3a716a2 (git): test_module.rb: quote name
* test/ruby/test_module.rb (test_bad_constants, test_invalid_attr):
encode and quote name properly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:23 PM Revision 437cfad0 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:23 AM Feature #8998: string keys for hash literals should use fstrings
I think my failed patch exposes a bug with lazy sweep + rb_fstring.
Lazy sweep GC means the element remains in the frozen_string hash,

fstr1 = rb_fstring(str)
fstr1 goes out of scope
GC mark runs ...
fstr1 is eligible f...
normalperson (Eric Wong)
06:29 AM Feature #8998: string keys for hash literals should use fstrings
attaching output of "make check" and gdb backtrace normalperson (Eric Wong)
06:17 AM Feature #8998: string keys for hash literals should use fstrings
Proposed patch to partially implement this, but I get segfaults (backtrace/dump coming) with "make check".
There probably needs to be some RGenGC-related calls/fixes for this.
Note: this patch does not avoid the short-lived, unfrozen...
normalperson (Eric Wong)
09:03 AM Revision e70f74c3 (git): vm_method.c: preserve encoding
* vm_method.c (rb_attr): preserve encoding of the attribute ID in
error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:03 AM Revision ef46e8d2 (git): test_inadvertent_creation.rb: fix assertion name
* test/-ext-/symbol/test_inadvertent_creation.rb: fix assertion name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:45 AM Revision 6af3029c (git): test_inadvertent_creation.rb: use assert_not_interned?
* test/-ext-/symbol/test_inadvertent_creation.rb: use
assert_not_interned? instead assert_not_send.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:43 AM Revision 9ef55da9 (git): test/unit/assertions.rb: return exception
* lib/test/unit/assertions.rb (assert_raise_with_message): return
raised exception same as assert_raise.
* test/ruby, test/-ext-: use assert_raise_with_message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43212 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
08:41 AM Revision 289d6bb3 (git): test: use assert_raise
* test/ruby, test/-ext-: use assert_raise instead of assert_raises.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:40 AM Revision a28de81a (git): string.c: mark frozen string
* string.c (rb_fstring): because of lazy sweep, str may be unmaked
already and swept at next time, so mark it for the time being.
[ruby-core:57756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43210 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
08:39 AM Revision b1b4724e (git): test_tracepoint.rb: include zombies
* test/-ext-/tracepoint/test_tracepoint.rb (test_tracks_objspace_count):
free count should include zombies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Misc #9006: build and host binary rubies
oh that's my bad and easy thing to fix, thanks for heads up! (I guess the binaries can be build fresh if/when Ruby decides to take over the process) mpapis (Michal Papis)
08:25 AM Misc #9006: build and host binary rubies
=begin
Hello Michal,
Platform binaries is a great thing, however I noticed that your username leaked into the generated (({rbconfig})) file:
$ gem env paths
/Users/mpapis/.rvm/gems/ruby-2.0.0-p247
I believe this is caused by...
luislavena (Luis Lavena)
08:05 AM Misc #9006 (Rejected): build and host binary rubies
I wanted to ask ruby to take back the binary rubies, currently they are maintained as part of RVM.
The build is done using: https://github.com/rvm/rvm-binary
The binaries are hosted: https://rvm.io/binaries/
I'm also fine with s...
mpapis (Michal Papis)
07:46 AM Bug #7445: strptime('%s %z') doesn't work
So let's recap the current situation.
`Time.strptime()` has been fixed in Ruby Core, and Rubinious has fixed `strptime()` in both `Time`, and `DateTime` in rubysl.
So we have this:
### Ruby MRI
~~~ruby
puts Time.strptime('1 ...
felipec (Felipe Contreras)
07:40 AM Bug #9005 (Closed): object.send(:define_method, ...){...} creates private method
I assume this is caused by r40022, which made define_method consider visibility. However, visibility should only be considered if define_method is called normally, not via send. When called via send, it should define a public method. H... jeremyevans0 (Jeremy Evans)
07:04 AM Bug #8984: ObjectSpace.memsize_of(obj) should return with sizeof(RVALUE)
Personally I have only ever seen mention of this in http://stackoverflow.com/questions/10068018/memory-size-of-a-hash-or-other-object
I googled pretty hard and all I saw was wonderful pictures of tenderlove and a slightly less accurat...
sam.saffron (Sam Saffron)
04:53 AM Revision 90c1ebbf (git): compar.c: fail if recursion
* compar.c (cmp_eq): fail if recursion. [ruby-core:57736] [Bug #9003]
* thread.c (rb_exec_recursive_paired_outer): new function which is
combinnation of paired and outer variants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@432...
nobu (Nobuyoshi Nakada)
04:50 AM Bug #9004: gem which command should exit with status of '1' if 1 or more gem arguments are not found
Apologies for breaking the formatting of Description.
rpm case
# rpm -q man
man-1.6f-32.el6.x86_64
# echo $?
0
# rpm -q man cheese
man-1.6f-32.el6.x86_64
package cheese is not installed
# echo $?
1
gem which case
$ ge...
evilensky (Eugene Vilensky)
04:45 AM Bug #9004 (Closed): gem which command should exit with status of '1' if 1 or more gem arguments are not found
=begin
Many unix utilities exit with a code of 1 if any parts of the command fail, in particular ((%rpm%)). I believe its desirable for ((%gem which%)) to behave similar to ((%rpm -q%)) for this use case.
# rpm -q man
man-1.6f-...
evilensky (Eugene Vilensky)
04:27 AM Revision b203f673 (git): vm_backtrace.c: copy without creating prefix string
* vm_backtrace.c (rb_profile_frame_full_label): copy from label
directly, without creating prefix string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision 37fb9983 (git): test_require.rb: need verbose
* test/ruby/test_require.rb (test_race_exception): need $VERBOSE
setting, to emit warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:06 AM Bug #9002 (Closed): Use simpler example for File#expand_path
Use simpler example for File#exapnd_path when start_directory path is given. cha1tanya (Prathamesh Sonpatki)
12:21 AM Revision b753b960 (git): * include/ruby/debug.h,
vm_backtrace.c (rb_profile_frame_full_label): add new C API
rb_profile_frame_full_label() which returns label with
qualified method name.
Note that in future version of Ruby label() may return
same return value of full_label().
*...
ko1 (Koichi Sasada)
 

Also available in: Atom