Activity
From 04/06/2016 to 04/12/2016
04/12/2016
-
11:45 PM Bug #12276 (Closed): Quoting error involving '$' characters in DT_RPATH pathnames
- Often it's desired to use DT_RPATH in Ruby and associated extension objects when bundling custom libraries for a Ruby application. Often absolute paths cannot be known at build-time, so the linker provides the $ORIGIN macro used to build...
-
11:04 PM Bug #11430: Redefining a lazy-loaded variable in child context within RSpec spec causes crash
- [email protected] wrote:
> Not sure what to do here. Do random issues like this get triaged? Or sitting around like this is typical?
Most of us are volunteers and I find it helpful for reporters to
send reminders every o... -
07:56 PM Bug #11430: Redefining a lazy-loaded variable in child context within RSpec spec causes crash
- Not sure what to do here. Do random issues like this get triaged? Or sitting around like this is typical?
-
08:41 PM Bug #12274: accessing to instance variable should be fast.
- Koichi Sasada wrote:
> Tarui-san suggested another way to optimize and this is my version of that technique (with some refactoring).
The diff is hard to read, would you have a commit on GitHub or a patch file?
Tarui-san, could you... -
07:21 PM Bug #12274: accessing to instance variable should be fast.
- Tarui-san suggested another way to optimize and this is my version of that technique (with some refactoring).
evaluation result:
fps: 19.21335880758348
->
fps: 22.16285461090967
(15% improvement)
```diff
Index: vm_insnhelper.c... -
03:50 PM Bug #12274 (Closed): accessing to instance variable should be fast.
Currently, accessing to instance variable is quite slower than accessing to local variable.
I think accessing to instance variable is basic operation and it should be fast, so tried to improve.
patch: https://github.com/tarui/ruby/...-
08:20 PM Bug #12270 (Third Party's Issue): 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
- 示唆なさってたとおり、 `gem 'stackprof', github: 'tmm1/stackprof'` で直りますね。
-
07:07 AM Bug #12270 (Third Party's Issue): 2.3.0/2.4.0 で stackprof を実行すると SEGV することがある
- tDiary ( https://github.com/tdiary/tdiary-core )のテストに添付しているパッチを当てて stackprof を有効にして実行すると最後の results を出力する箇所で SEGV となります。
```
spec/spec_helper.rb:33: [BUG] frame2iseq: unreachable
```
`ruby 2.2.5p292 (2016-03-31 revision 54443) ... -
07:03 PM Feature #12275 (Closed): String unescape
- I think it will be usefull to have function that convert input string as it was written in prime qouted string or in double qouted string. It's part of metaprogramming.
Example:
~~~ ruby
class String
# Create new string like it w... -
04:03 PM Bug #12273 (Rejected): Time.parse incorrectly parses Russian months
-
04:03 PM Bug #12273: Time.parse incorrectly parses Russian months
- Viacheslav Ptsarev wrote:
> Victor Shepelev wrote:
> ...
Just replace Russian to English with gsub before parsing. -
02:46 PM Bug #12273: Time.parse incorrectly parses Russian months
- > Thanks. So what should I use to parse dates in Russian?
There's no easy way, unfortunately. For simple formats you can try to just `gsub` Russian monthnames into English and then use normal `Time.parse`.
Not a Ruby bug, definitel... -
02:29 PM Bug #12273: Time.parse incorrectly parses Russian months
- Victor Shepelev wrote:
> I assume `Time.parse` is not localized to all world languages.
> ...
Thanks. So what should I use to parse dates in Russian? -
02:23 PM Bug #12273: Time.parse incorrectly parses Russian months
- I assume `Time.parse` is not localized to all world languages.
So, it just ignores the "unidentified" part, replacing it with "current month" (and then fixes non-existent 31.04 into 1.05):
~~~ruby
Time.parse('31 ничего 2016')
# =>... -
02:22 PM Bug #12273: Time.parse incorrectly parses Russian months
- When parsing dates in Russian where day number is 31, `Time.parse` returns `2016-05-01`. No matter what month or year is provided. With other dates, it returns date with given day number, but current month and year.
31 march 2016:
``... -
02:14 PM Bug #12273 (Rejected): Time.parse incorrectly parses Russian months
- When parsing dates in Russian where day number is 31, `Time.parse` returns `2016-05-01`. No matter what month or year is provided.
31 march 2016:
```
irb(main):003:0> require "time"
=> true
irb(main):004:0> Time.parse "31 марта 20... -
03:55 PM Feature #12272: Accepting HTML entity name in string literal
- Robert A. Heiler wrote:
> I don't know. I am not really against it, also not really for it but to be honest, I can't remember either of these variants anyway. :)
> ...
Ideally, I would prefer LaTeX math symbol commands, which I believe... -
03:00 PM Feature #12272: Accepting HTML entity name in string literal
- I don't know. I am not really against it, also not really for it but to be honest, I can't remember either of these variants anyway. :)
Would this actually be used/usable? -
01:00 PM Feature #12272 (Open): Accepting HTML entity name in string literal
- String literal allows the escape character `\u` to describe a character using UTF-8 character code like this:
~~~ruby
"\u201c" # left double quote
"\u2191" # up arrow
~~~
This is useful in typing characters that are not easy to ... -
01:41 PM Feature #12080: Enumerable#first, Array#last with block
- ping... Any thoughts?
(updated patch to apply successfully to the current trunk) -
11:40 AM Bug #12271 (Closed): `Time#to_time` removes timezone information
- Applied in changeset r54553.
----------
date_core.c: preserve timezone
* ext/date/date_core.c (time_to_time): should preserve timezone
info. [ruby-core:74889] [Bug #12271] -
09:35 AM Bug #12271 (Closed): `Time#to_time` removes timezone information
- ```ruby
irb(main):001:0> RUBY_VERSION
=> "2.3.0"
irb(main):002:0> require 'date'
=> true
irb(main):003:0> ENV['TZ'] = 'US/Eastern'
=> "US/Eastern"
irb(main):004:0> time = Time.new(2005, 2, 21, 10, 11, 12, '+09:00')
=> 2005-02-21 ... -
11:40 AM Revision 456523e2 (git): date_core.c: preserve timezone
- * ext/date/date_core.c (time_to_time): should preserve timezone
info. [ruby-core:74889] [Bug #12271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 AM Bug #12238: Logger writes progname if log message is nil
- Thanks
I see that it is supposed to be like this. Seems a bit weird though. -
07:22 AM Revision 8424452c (git): merge revision(s) 53566:
- * configure.in: improve ICC (Intel C Compiler) support.
* configure.in (CXX): The name of icc's c++ compiler is `icpc`.
* configure.in (warnings): Add `-diag-disable=2259` to suppress
noisy warnings: "non-poin... -
06:20 AM Bug #12269 (Rejected): Nesting Two-levels of Hash with Hash as default value makes top level Hash not list keys/values and causes reference issue with nested values.
- Try `h.default.default`.
-
01:44 AM Bug #12269 (Rejected): Nesting Two-levels of Hash with Hash as default value makes top level Hash not list keys/values and causes reference issue with nested values.
- Nesting Hashes that have Hashes as default values cause the 1st (top) level hash to not list keys or values. Also, it is possible to overwrite the values of keys in the 2nd level hash via new assignments to entirely different keys on th...
-
05:29 AM Bug #12232: Ripper.lex can't parse 2.3-style heredoc
- ruby_2_3 r54471 merged revision(s) 53722.
-
05:29 AM Bug #12182: openssl: NPN may be disabled by OpenSSL configuration
- ruby_2_3 r54551 merged revision(s) 54258.
-
05:29 AM Revision f74ba9cc (git): merge revision(s) 54258: [Backport #12182]
- * ext/openssl/extconf.rb: check SSL_CTX_set_next_proto_select_cb
function rather than OPENSSL_NPN_NEGOTIATED macro. it exists
even if it is disabled by OpenSSL configuration.
[ruby-core:74384] [Bug #12182]
... -
05:27 AM Bug #12215: URI::HTTP.new example is incorrect
- ruby_2_3 r54550 merged revision(s) 54257.
-
05:27 AM Revision 9b3f70d1 (git): merge revision(s) 54257: [Backport #12215]
- * lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example,
missing mandatory arguments. [ruby-core:74540] [Bug #12215]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:49 AM Revision 991c159c (git): basictest: disable warnings
- * basictest/runner.rb: disable warnings for old test script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:51 AM Revision 6648d615 (git): compile.c: initialize LABEL fields
- * compile.c (new_label_body): initialize bit fields, since
compile_data_alloc does not clear the memory. [Bug #12082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:08 AM Feature #12267 (Rejected): REXML Authoring constants are unwanted (or clash) when mixing into other namespaces
- You should not include a module when your code may conflict with constants in the module.
- 12:30 AM Revision 057cf38c (git): * 2016-04-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:30 AM Revision 26317750 (git): test_optimization.rb: disasm
- * test/ruby/test_optimization.rb (disasm): dump disassembled code
for investigation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/11/2016
-
08:29 PM Feature #12268 (Rejected): Open3 should use extend self instead of module_function calls
- Open3 should use `extend self` instead of `module_function` calls after defining each method.
Using `module_function` causes access issues when the `Open3` module is mixed into other class or module namespaces. Ie, the very method pro... -
08:07 PM Feature #12267 (Rejected): REXML Authoring constants are unwanted (or clash) when mixing into other namespaces
- The following file can be added, OR it's contents pasted into "rexml/rexml.rb". Basically it renames the authoring constants defined in "rexml/rexml.rb", with a "REXML_" prefix. But it only does so when REXML module is mixed into some ot...
-
12:39 PM Revision 88c7ffb2 (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:50 AM Revision 9d8ef4ea (git): Update dependencies.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:31 AM Feature #12236: Introduce `mmap` managed heap
- > I believe we don't have any drawback with 256MB virtual memory allocation. (but it can depend on OSs)
It may depends on devices: one may wish to run ruby script on MIPS linux box with 64MB memory.
Doubtfully, kernel will be configu... -
06:40 AM Feature #12236: Introduce `mmap` managed heap
- Thank you for your comment.
Eric Wong wrote:
> [email protected] wrote:
> ...
We don't iterate to insert/delete them.
> We may also rely on ccan/list in other places for branchless
> ...
It can be.
> > * Difficult to port on ... -
11:19 AM Revision 62784207 (git): * vm_backtrace.c (frame2klass): filter only for imemo_ment.
- T_IMEMO/imemo_iseq can be passed here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:43 AM Bug #12082 (Closed): Tail-calling method can't catch exception raised by tail-called method
- Applied in changeset r54542.
----------
compile.c: disable tco with rescue
* compile.c (iseq_optimize): disable tail call optimization in
rescued, rescue, and ensure blocks.
[ruby-core:73871] [Bug #12082] -
05:57 AM Bug #12082: Tail-calling method can't catch exception raised by tail-called method
- Thank you for reporting and patches.
Nobu's patch seems good. Could you commit it?
-
08:43 AM Revision f0226f0a (git): compile.c: disable tco with rescue
- * compile.c (iseq_optimize): disable tail call optimization in
rescued, rescue, and ensure blocks.
[ruby-core:73871] [Bug #12082]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:27 AM Revision 0ebf3849 (git): TestException.rb: suppress warning
- * test/excludes/TestException.rb: suppress "ambiguous first
argument" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:27 AM Revision 316bb88f (git): test/unit.rb: show warning locations
- * test/lib/test/unit.rb (ExcludedMethods.load): supply the path to
show the warning locations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Revision ba001b41 (git): test_whileuntil.rb: fix old behavior
- * test/ruby/test_whileuntil.rb (test_while): fix old behavior.
mere numeric literal in condition no longer matches $. global
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Revision 015b4922 (git): test_rubyoptions.rb: suppress warning
- * test/ruby/test_rubyoptions.rb (test_indentation_check): remove
unused variable to suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Revision d9f6850e (git): test_regexp.rb: suppress warning
- * test/ruby/test_regexp.rb (test_named_capture): suppress
"assigned but unused variable" warning by prefixing '_'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Revision c372b123 (git): test_iterator.rb: suppress warnings
- * test/ruby/test_iterator.rb (test_break): suppress "statement not
reached" warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:18 AM Feature #12020: Documenting Ruby memory model
- Sorry for late to comment on this topic.
(and sorry i don't read all of comments on this topic)
At first, I need to appreciate you for such a great document.
However, my opinion is negative.
Basically, (at least on MRI) *I* again... -
06:52 AM Bug #11924: $ gem server is broken for documentation browsing
- This is still happening for me with `ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]`. It seems to be caused by inconsistencies between URLs generated by darkfish and the RDoc::Servlet's expectations of which URLs are handled...
-
06:28 AM Feature #11788 (Closed): New ISeq serialize binary format
- MRI 2.3 was shipped with this feature.
-
06:21 AM Bug #11954: "self has wrong type to call super in this context" under weird circumstances
- Shugo-san, thank you for your investigating.
It seems perfect.
Could you commit it? or should I commit it?
Thanks,
Koichi -
05:13 AM Revision ba56de8b (git): test_coverage.rb: suppress warnings
- * test/coverage/test_coverage.rb (test_coverage_snapshot),
(test_restarting_coverage): use unique names to suppress method
redefinition warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54535 b2dd03c8-39d4-4d8f-98ff-823fe6... -
04:57 AM Bug #12159: Thread::Backtrace::Location#path returns absolute path for files loaded by require_relative
- Actually, I'm not sure the policy of path representation.
For example, we can normalize every path entities with absolute path.
I'll ask Matz at next dev meeting (next Wed 13:00-, JST).
-
04:40 AM Bug #12231 (Rejected): Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does
- It's a specification.
-
04:28 AM Revision bf6a8134 (git): fiddle/import.rb: suppress warnings
- * ext/fiddle/lib/fiddle/import.rb (type_alias, handler): suppress
"not initialized instance variable" warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:11 AM Bug #12265 (Closed): did_you_mean spell checker crash
04/10/2016
-
09:59 PM Revision e9bb167b (git): file.c: prefer rb_check_arity
- * file.c (rb_file_s_expand_path, rb_file_s_absolute_path): use
rb_check_arity instead of rb_scan_args for a simple optional
argument.
* file.c (rb_file_s_realpath, rb_file_s_realdirpath): ditto.
* file.c (rb_file_s_basename): ditto... -
09:59 PM Revision e19df562 (git): file.c: apply2files returns Fixnum
- * file.c (apply2files): return Fixnum so that callers can just
return it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:54 PM Revision df63c544 (git): * 2016-04-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:54 PM Revision 03bf343a (git): file.c: apply to argv
- * file.c (apply2files): apply to a VALUE vector instead of a
temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:49 PM Bug #12265: did_you_mean spell checker crash
- Apparently there was a method I forgot to define. Running rake test:controllers first, followed by rake test:modules let me track down the issue. Bug no longer throws.
-
08:43 PM Bug #12265 (Closed): did_you_mean spell checker crash
- I'm not entirely sure what went wrong. I fixed a bracket error in my code and it started throwing this.
If you need anything else from me/I can help at all, please let me know.
-
02:07 PM Feature #11633 (Closed): NilLogger class
- Let me close
-
11:54 AM Bug #12264 (Closed): Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
- Applied in changeset r54529.
----------
registry.rb: fix API names
* ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
API names. [ruby-core:74863] [Bug #12264] -
11:54 AM Revision 21992b6c (git): registry.rb: fix API names
- * ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
API names. [ruby-core:74863] [Bug #12264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:47 AM Revision 3cd3c9d7 (git): no argument conversions in rb_realpath_internal
- * file.c (rb_realpath_internal): no argument conversions since
this internal function does not need to_path and encoding
conversions, not to be affected by the default internal
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... - 07:30 AM Revision ee833721 (git): * 2016-04-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:30 AM Revision 75dc429f (git): win32/file.c: fix free
- * win32/file.c (rb_file_expand_path_internal): should free wpath,
but not xfree, corresponding to rb_w32_mbstr_to_wstr which
allocates by malloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54526 b2dd03c8-39d4-4d8f-98ff-823fe6...
04/09/2016
-
10:28 PM Feature #12026: Support warning processor
- Here is a patch that implements $WARNING_PROCESSOR support.
-
06:14 PM Bug #12264: Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
- Made a mess of the patch. I had to try to recreate by hand so it may not apply directly, but the idea is simple enough.
-
06:10 PM Bug #12264 (Closed): Win32::Registry::API.DeleteKey and DeleteValue reference renamed constants
- The fix for https://bugs.ruby-lang.org/issues/10820 (https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/49542) started using the wide version of the registry APIs.
**************
```diff
--- D:/Ruby/ruby-2.1.8-i386-... -
06:04 PM Bug #10257: Generate X.509 certificate/request/CRL with elliptic curve keys
- "no shared cipher" for EC: looks like the curve name's in OpenSSL::PKey::EC::Group. There's a `#curve_name` method to get the curve name, but no way to set it and when a group's created using a named curve the name's never set in the res...
-
01:39 PM Revision 997df3ad (git): * lib/ostruct.rb: [DOC] fix position of nodoc directive.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:03 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
- Robert A. Heiler wrote:
> I also have to admit that I find "x && y" easier to understand than
> ...
But one could argue that the following, which is semantically equivalent to the proposed `&&.`, is harder to understand:
~~~ruby
(t... -
05:33 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
- I don't really like it.
matz said that & is the lonely operator because the person is staring
at a dot before, like &.
&&. would be too lonely because now you have 2 people staring at a
dot together. This would make ruby hackers... -
05:30 AM Feature #12262: Anti-loop
- I don't have any big pro or contra opinion, but there is one thing I am wondering:
Is this still called a loop in the second case? Because the default is to break
after the first run. And a loop implies to continue, until one ends i... -
04:01 AM Revision 21791dd9 (git): ext/tk/extconf.rb: add newline
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:58 AM Revision e6c88132 (git): load.c: fix r54521
- * load.c (rb_f_load): do not convert the encoding twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:25 AM Revision 404bf57a (git): assertions.rb: set default internal encoding
- * test/lib/test/unit/assertions.rb (assert_raise_with_message):
set default internal encoding to the excpected message, which
affects String#inspect in messages.
* test/lib/test/unit/assertions.rb (assert_warning): ditto.
git-svn-i... -
01:03 AM Revision 56417d1f (git): load.c: raise name before conversion
- * load.c (rb_f_load): raise with the original path name before
encoding conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:59 AM Revision 7aa83cd0 (git): test_io_m17n.rb: nil default internal encoding
- * test/ruby/test_io_m17n.rb (test_bom_non_utf): ensure default
internal encoding is not set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/08/2016
- 05:05 PM Revision 40c83329 (git): * 2016-04-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:05 PM Revision 3b6c4dad (git): bignum.c: rb_cstr_parse_inum
- * bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to
parse integer in C-string with length. the name and the
arguments may be changed in the future.
* bignum.c (rb_str_to_inum): preserve encoding of the argument in
erro... -
12:44 PM Feature #11816: Partial safe navigation operator
- Tsuyoshi Sawada wrote:
> Does this conflict with the current syntax?
Yes.
```ruby
proc{|x|p x}&.(1) #=> 1
```
> ...
Is `&(.` a single token?
-
11:42 AM Feature #11816: Partial safe navigation operator
- What about allowing parentheses after the safe navigation operator like this:
~~~ruby
foo&.(bar.baz)
~~~
which should behave in the way proposed.
The edge cases:
Shyouhei Urabe wrote:
> ~~~ruby
> ...
with the two possibil... -
10:44 AM Feature #12263 (Feedback): Feature request: &&. operator (shorthand for foo && foo.method)
- `&.` was considered useful because of `try!`.
Is method call on an expression which may be `false` so frequent? -
09:47 AM Feature #12263 (Feedback): Feature request: &&. operator (shorthand for foo && foo.method)
- Ruby 2.3 introduced the `&.` safe-navigation operator. I'd like to propose a `&&.` operator which would be shorthand for:
~~~ruby
foo && foo.method
~~~
Unlike `&.`, this does not continue the chain if the variable evaluates to `f... -
10:43 AM Feature #12254 (Assigned): Add SSLCiphers option to webrick ssl.rb
-
09:46 AM Feature #8526: gemify tk
- Hiroshi SHIBATA wrote:
> gem で出来るようにしてみました。
> ...
おぉ、ありがとうございます。
> https://github.com/ruby や任意のアカウントに transfer することは可能です。
永井さんの意向次第ですが、ruby/tkもよいでしょうね。 -
02:55 AM Feature #8526: gemify tk
- gem で出来るようにしてみました。
https://github.com/hsbt/tk
https://github.com/ruby や任意のアカウントに transfer することは可能です。 -
09:16 AM Feature #12262: Anti-loop
- You can make your last example work with `loop` by just adding a `break` at the end of the loop body. I don't think that warrants a new method.
-
07:21 AM Feature #12262 (Open): Anti-loop
- The `loop` method continues by default, and requires the keyword `break` to escape. This is good when the continuing cases are the norm and the escaping cases are exceptional:
~~~RUBY
loop do
...
if ...
...
elsif ...
... -
08:32 AM Revision 45c593d8 (git): bignum.c: radix check functions
- * bignum.c (valid_radix_p, invalid_radix): extracted functions to
check radix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:53 AM Revision 333034ea (git): tk/extconf.rb: progress
- * ext/tk/extconf.rb (progress): print progress messages only if
Logging is quiet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:14 AM Revision ccb6e802 (git): tk/extconf.rb: outdated checks
- * ext/tk/extconf.rb: remove outdated checks.
* ext/tk/tcltklib.c (ip_ruby_cmd): remove longstanding dead code.
ptr and len in RArray were till 1.8 and have_struct_member of
1.8 does not set HAVE_<stuct_name>_<member_name> but only
...
04/07/2016
-
11:46 PM Revision 139579b5 (git): dln.c: move error message definition
- * dln.c (dln_load): move the definition of incompatible library
version error message to be shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:30 PM Bug #12261 (Closed): Windows: File.dirname with 2+ / or 2+ \\ will return // or \\\\
- I am working through some File.dirname issues on JRuby and I saw a ruby/spec covering this behavior on windows:
`File.dirname('/////').should == '//'`
Same result if backslashes are used. Is there a reason for this result? It doe... -
05:09 PM Bug #12260 (Closed): Process finished with exit code 134. Empty test suite.
- I tried to run a test in ruby mine after updating gems. And i got this error:
Process finished with exit code 134
Empty test suite.
I also get this:
Ignoring bigdecimal-1.2.7 because its extensions are not built. Try: gem pris... - 04:43 PM Revision fea3ee2a (git): * 2016-04-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:43 PM Revision 990d2d73 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:57 PM Bug #12259 (Rejected): DateTime.parse does not take into account the system timezone
- DateTime.parse does not take into account the system timezone although Time.parse does take into account the system timezone.
```
irb(main):002:0> DateTime.parse('2011-10-10 10:00:00')
=> #<DateTime: 2011-10-10T10:00:00+00:00 ((2455... -
03:35 PM Feature #7361: Adding Pathname#touch
- Any update on this
```ruby
class Pathname
def touch(options={})
FileUtils.touch(@path, options)
end
end
Pathname('test.pdf').touch(mtime: 1.hour.ago)
```
"#mkpath" almost works but doesn't have the mtime option
-
02:47 PM Bug #12258 (Closed): RDoc bug when handling comments in C code examples
- RDoc fails to correctly convert documentation that includes C example code with `/* ... */` comments.
It does not only produce wrong output for the comment itself (stripping the `/*` and `*/`), but also gets confused with occurences o... -
01:12 PM Bug #12191: Violation of ANSI aliasing rules causing problems while compiling
- Thanks for making the changed but we've tried getting it to work and it doesn't seem to. It doesn't look like setting these two structs in a union has any impact on aliasing between ("(RBasicRaw).klass") and {"(RBasic).klass"} in this c...
-
12:49 PM Bug #12257 (Rejected): io/wait: wait_readable/writable working different than IO.select when descriptor not open
- Coming from this pending issue:
https://github.com/net-ssh/net-ssh/pull/303
Gist of it: -
12:14 PM Revision a3239b5b (git): win32.c: call w32_wopen directly
- * win32/win32.c (rb_w32_uopen): call w32_wopen directly instead of
variadic rb_w32_wopen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:06 AM Bug #12256: multiline regex parses '/' in a comment
- No way to know if it will have `x` option at reading that '#'.
-
10:04 AM Bug #12256 (Closed): multiline regex parses '/' in a comment
- Applied in changeset r54510.
----------
regexp.rdoc: terminators in comments [ci skip]
* doc/regexp.rdoc (comments): [DOC] terminators cannot appear in
comments. [ruby-core:74838] [Bug #12256] -
08:51 AM Bug #12256 (Closed): multiline regex parses '/' in a comment
- line 41
```ruby
line =~ /
foo # bar/baz
/x
```
Should not parse beyond a bare '#' or the limitation should be documented -
10:04 AM Revision bcdfef89 (git): regexp.rdoc: terminators in comments [ci skip]
- * doc/regexp.rdoc (comments): [DOC] terminators cannot appear in
comments. [ruby-core:74838] [Bug #12256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:14 AM Feature #8526: gemify tk
- やっぱり2.4以降はtkはgemでやっていただけませんか。
誰かががんばるにしてもGitHubなりで別リポジトリとしたほうがPull Request等などやりやすいでしょうし。 -
04:40 AM Bug #12253 (Closed): tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
- backport r50338.
-
02:35 AM Feature #12161: Friendly BigDecimal#inspect
- I agree that `BigDecimal` output is horrible.
First of all, I see no point in displaying the object's address. One rarely compares two BigDecimals by their identity. Typically `#==` or`#eql?` do matter, both are overriden and neithe... -
02:24 AM Revision de3f0a42 (git): tkutil.c: fix overrun
- * ext/tk/tkutil/tkutil.c (cbsubst_initialize): fix out-of-bound
access when no arguments given. `p Tk::Event.new` crashed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Revision 9cd35c22 (git): fake.rb: set extout
- * tool/fake.rb (prehook): set "extout" in RbConfig to configure
extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:10 AM Revision eb87580d (git): * 2016-04-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:10 AM Revision f0cee0c6 (git): test_ssl.rb: skip unsupported ciphers
- * test/openssl/test_ssl.rb (test_get_ephemeral_key): skip
unsupported ciphers. [GH-1318]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/06/2016
-
07:23 PM Bug #12255 (Closed): [DOC] Small fix for rdoc of ext/json/lib/json/add/*
- This patch removes some comments that otherwise would appear in the docs of the affected classes.
E.g. for Exception
```
$ ri Exception
Descendants of class Exception are used to [...]
[snipped class documentation]
Exceptio... -
06:41 PM Feature #12254 (Closed): Add SSLCiphers option to webrick ssl.rb
- Hi,
In order to secure a sinatra api using webrick i need to specify the ciphers to be used.
To do this i have added SSLCiphers option to webrick ssl.rb on the sslcontext.
I have created this pull request :
https://github.com/ruby/... -
06:26 PM Bug #12136: OpenStruct.new(format: :bar).send :format # => too few arguments
- > a) Keep behavior the same and rubyists can alleviate these by using `public_send` instead of `send`
It doesn't seem that swapping `send` by `public_send` has any effect, at least not in the example in #12251.
Is there a workaroun... -
04:16 PM Bug #12223: Backport r54304 (SEGV in rb_str_format())
- ruby_2_3 r54505 merged revision(s) 54304.
-
04:15 PM Revision 58f77932 (git): merge revision(s) 54304: [Backport #12223]
- * sprintf.c (rb_str_format): fix buffer overflow, length must be
greater than precision. reported by William Bowling <will AT
wbowling.info>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54505 b2dd... -
03:01 PM Bug #12253: tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
- はじめのコードより
require 'mechanize'
をはずして2.3.0p0で試した結果、エラー無く動作しました。
申し訳ありません、当方の早とちりでお手数をお掛けしました。
恐れ入りますがチケットのクローズをお願い致します。 -
02:52 PM Bug #12253: tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
- 申し訳ありません。いま気づいて上記のコードから
require 'mechanize'
をはずしたらどうなるかを試しました。
結果は同じで、2.1.8では動作しますが、2.2.4では上記と同様のエラーでした。
タイトルは「2.2.4ではTkRootを明示的にnewするとエラーになる」のほうが適切だったかもしれません。 -
02:38 PM Bug #12253 (Closed): tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
- Rubyコミュニティ 御中
恐れ入りますがお尋ねしたいことがあり、チケットを切りました。
ruby/tkとmechanizeを併用した際に「`TypeError: allocator undefined for TkEvent::Event`」というエラーが発生します。
2.2.4ではエラーになるのですが、2.1.8では問題なく動作します。
2.3.0はいまのところ "gem install mechanize" が失敗する(mechanizeが依存して... -
02:54 PM Bug #10015: Performance regression in Dir#[]
- The problem seems to persist Mac OS X, although is better on 2.3.0, is still a lot slower than 2.1.x.
I have run the benchmark
```ruby
require "benchmark"
time = []
5.times do
result = Benchmark.realtime { 800000.times do Dir['... -
02:29 PM Bug #12220 (Closed): Why does Coverage keep previously-loaded files as empty arrays?
- Applied in changeset r54504.
----------
* ext/coverage/coverage.c: Fully reset coverage to not persist global state.
It was returning old file coverages as empty arrays to the user.
[ruby-core:74596] [Bug #12220]
* ext/coverage/cove... -
02:21 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
- Yusuke Endoh wrote:
> Xavier, thank you for your opinion. I also don't think that it is a good idea to change because of a spec, but I don't have a strong objection if the OP of #4796 is satisfied. So I agree with eregon's patch. Ere... -
02:18 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
- Thank you for your reply.
Xavier Shay wrote:
> Hello, I filed #4796. It was a long time ago, and I don't remember what I was trying to do. Likely something around a "coverage per test" feature.
> ...
Please read my argument fully, f... -
01:30 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
- Xavier, thank you for your opinion. I also don't think that it is a good idea to change because of a spec, but I don't have a strong objection if the OP of #4796 is satisfied. So I agree with eregon's patch. Eregon, could you commit i...
-
12:57 AM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
- Hello, I filed #4796. It was a long time ago, and I don't remember what I was trying to do. Likely something around a "coverage per test" feature.
> Right, there is a compatibility concern, and I would like to check simplecov about it... -
02:29 PM Revision 4225b29d (git): * ext/coverage/coverage.c: Fully reset coverage to not persist global state.
- It was returning old file coverages as empty arrays to the user.
[ruby-core:74596] [Bug #12220]
* ext/coverage/coverage.c (rb_coverages): remove unused static state.
* thread.c: Moved and renamed coverage_clear_result_i to reset_covera... -
01:41 PM Revision 6a79276e (git): configure.in: fix lgamma_r condition
- * configure.in (rb_cv_lgamma_r_m0): fix the condition for
lgamma_r(-0.0). [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:49 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
- i've had a similar issue with `open('http://www.replayjeans.com/us/shop/product/women/jumpers-knitwear/neoprene-printed-sweatshirt/pc/48/c/61/sc/-1/1962')`
which i solved modifying D.E. Akers workaround a bit:
~~~
url = 'http://ww... -
11:17 AM Bug #12252 (Closed): Clarify Thread exception handling documentation.
- The current documentation for Thread exception handling in vm.c is somewhat unclear. I've tried to explain the behaviour more clearly.
- 08:40 AM Revision 3f1fc5e4 (git): * tool/downloader.rb (RubyGems.download): follow the change of the
- rubygems ssl_certs directory tree introduced by previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:59 AM Revision 373a7006 (git): btest: resource limit
- * bootstraptest/test_thread.rb: rescue resource limitation errors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:01 AM Revision 469bac0f (git): * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3.
- Please see entries of 2.6.3 on
https://github.com/rubygems/rubygems/blob/master/History.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:13 AM Revision ea736d55 (git): configure.in: check lgamma_r(-0.0)
- * configure.in (rb_cv_lgamma_r_m0): check if lgamma_r(-0.0)
returns negative infinity. [Bug #12249]
* math.c (ruby_lgamma_r): define by the configured result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54499 b2dd03c8-39d4-4d8f... -
04:38 AM Revision 9d31efc6 (git): test_ssl.rb: skip unavailable pkeys
- * test/openssl/test_ssl.rb (test_get_ephemeral_key): skip
unavailable public keys. [GH-1318]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:56 AM Revision 84d81867 (git): Logger: simple refactoring
- * lib/logger.rb (Logger#level=): remove unnecessary local
variable.
* lib/logger.rb (Logger#initialize, Logger#reopen): [DOC] mention
the default values. cherrypicked from [GH-1319].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
01:26 AM Bug #12250: Ruby segfaults on `foodcritic .`
- And seems a usual "incompatible library version" error.
-
01:17 AM Revision 39330d6b (git): lgamma_r.c: fix at -0.0
- * math.c (ruby_lgamma_r): missing/lgamma_r.c is used on Windows,
since msvcrt does not provide it.
* missing/lgamma_r.c (lgamma_r): fix lgamma(-0.0).
[ruby-core:74823] [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...