Activity
From 10/10/2016 to 10/16/2016
10/16/2016
-
11:53 PM Feature #12843: Proposal to add a new method to class File in order to determine the name of the file without any suffix
- Robert A. Heiler wrote:
> I would thus like to suggest a way for a new method addition, on the
> ...
Maybe what is called as "stem" in GNU make document?
> ```ruby
> ...
It sounds like same as `basename`.
> What we actually appe... -
10:39 AM Feature #12843 (Open): Proposal to add a new method to class File in order to determine the name of the file without any suffix
- We currently have `File.basename()` and `File.dirname()`, both of which
work very well and are quite useful when working with files and
directories.
When you want to get the filename without extension, you can use
something like th... -
08:00 PM Bug #12844 (Closed): Unable to run $rails console
- If I run rails console it diplays many lines of code and then states:
```
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugrep... -
06:09 AM Revision 64b62f40 (git): * enc/windows_1254.c, test/ruby/enc/test_case_comprehensive.rb:
- Implement non-ASCII case conversion for Windows-1254.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/15/2016
-
11:34 PM Revision 64efbf24 (git): test_io.rb: use assert_not_predicate
- * test/ruby/test_io.rb (test_DATA_binmode): assert_not_predicate
for more descriptive message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:59 PM Revision 9ec940a4 (git): test_refinement.rb: test_symbol_proc
- * test/ruby/test_refinement.rb (test_symbol_proc): move from
test_symbol.rb [Feature #9451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:59 PM Revision 9ffaf140 (git): test_refinement.rb: using without eval
- * test/ruby/test_refinement.rb (FooExtClient, FooExtClient2): no
needs to eval, using works in a class block now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:29 PM Bug #12814: Pathname#each_child(false) produces unusable file paths
- I see… Still I can't decide whether it is for good or not. What is the purpose of such a path then? Shouldn't a String object instead of a Pathname be returned in such a case?
In my scenario I traverse directories and process some of ... - 03:45 PM Revision 65c9aaa9 (git): * 2016-10-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:45 PM Revision 371e3f4f (git): Add test of DATA.binmode?
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:29 AM Bug #12842 (Third Party's Issue): Bug in ruby intrepreter
-
09:05 AM Bug #12842 (Third Party's Issue): Bug in ruby intrepreter
- ```
Nischals-Device:jwt_api_auth nischalgautam$ rails c
Running via Spring preloader in process 23900
Loading development environment (Rails 5.0.0.1)
2.3.1 :001 > @post=Post.create(title: "hello")
/Users/nischalgautam/.rvm/gems/rub... -
10:37 AM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- This bug seems specific to yield, calling the lambda behaves as expected.
I added specs in ruby/spec to verify this behavior:
https://github.com/ruby/spec/commit/c4cabcf37ac804ea127bd0216c0239e5f9045ec1
The ruby_bug guard can be adj... -
09:05 AM Revision 65daf7be (git): vm_args.c: cache procs
- * vm_args.c (vm_caller_setup_arg_block): cache proc with
refinements. [Feature #9451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:17 AM Feature #9451 (Closed): Refinements and unary & (to_proc)
- Applied in changeset r56426.
----------
vm_args.c: allow refinements in Symbol proc
* vm_args.c (refine_sym_proc_call): search and call method with
refinements.
* vm_args.c (vm_caller_setup_arg_block): enable refinements when
enabl... -
05:17 AM Feature #12638 (Closed): Symbol#to_proc probable bug (seems not to support refinements)
- Applied in changeset r56426.
----------
vm_args.c: allow refinements in Symbol proc
* vm_args.c (refine_sym_proc_call): search and call method with
refinements.
* vm_args.c (vm_caller_setup_arg_block): enable refinements when
enabl... -
05:17 AM Revision 35a29390 (git): vm_args.c: allow refinements in Symbol proc
- * vm_args.c (refine_sym_proc_call): search and call method with
refinements.
* vm_args.c (vm_caller_setup_arg_block): enable refinements when
enabled in the caller. [Feature #9451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
10/14/2016
-
03:54 PM Bug #12841 (Closed): Kernel#exec(cmdname, arg1, ...) passes arg1 that is encoded strangely on Japanese Windows
- Applied in changeset r56424.
----------
process.c: use uaspawn
* process.c (proc_exec_cmd): use UTF-8 version aspawn.
[ruby-dev:49838] [Bug #12841] -
01:06 PM Bug #12841 (Closed): Kernel#exec(cmdname, arg1, ...) passes arg1 that is encoded strangely on Japanese Windows
- Kernel#exec(cmdname, arg1, ...) 形式でプログラムを呼び出す際、argが日本語を含んでいると
化けた文字列が渡されます。
同じ内容を Kernel#excec(cmdline) 形式で呼び出すと問題は発生しません。
直接呼び出す場合は問題なし
~~~
> ruby test.rb あ
arg: あ, enc: Window... - 03:54 PM Revision 69692d48 (git): * 2016-10-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 PM Revision 5d4309d0 (git): process.c: use uaspawn
- * process.c (proc_exec_cmd): use UTF-8 version aspawn.
[ruby-dev:49838] [Bug #12841]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:20 PM Bug #12838: Duplication of UDP packets for DNS responses causing "no address" results for valid hostnames
- I looked through some of the DNS RFCs, at the suggestion of a colleague, to see if there was any mention of a standard way of dealing with duplicate responses. I didn't see anything specifically calling out duplicates, but I did find thi...
-
02:58 PM Bug #12838: Duplication of UDP packets for DNS responses causing "no address" results for valid hostnames
- I added a diff file (check-sender.diff) instead of using the issue description to show the change I made to fix the error on my machine. The change and diff were made against the v2_3_1 tag in the git repo mirrored on github. I'm not nec...
-
01:26 PM Revision 0687baaf (git): optparse/kwargs.rb
- * lib/optparse/kwargs.rb (OptionParser#define_by_keywords):
[EXPERIMENTAL] extract command line option definitions from the
information of keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56423 b2dd03c8-39d4-4d8f... -
12:07 PM Bug #12840 (Closed): Add test for Forwardable#def_delegator on private methods
- This is for #12782.
-
09:40 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- See also https://github.com/jneen/math-tau .
-
08:38 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- Just to add my POV:
I'm a complete amateur in pure Mathematics. To me who is an outsider of academia, I can't say we should accept or reject this request right now. All I can say is it seems not widely used in papers for some reaso... -
06:42 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- Nobuyoshi Nakada wrote:
> At the developers' meeting this week, mrkn suggested `TWO_PI` instead.
I don't think TWO_PI would be very useful since it misses the main point of tau, which is that tau is the correct circle constant, (and ... -
05:41 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- On 2016/10/14 13:35, RRRoy BBBean wrote:
> Would such an interconnected system be packaged as a bunch of individual
> gems, or is there some higher-level packaging concept than the Ruby gem?
>
> I personally think gems are best wh... -
03:12 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
- At the developers' meeting this week, mrkn suggested `TWO_PI` instead.
-
09:28 AM Revision b40d13a9 (git): * Fix wrong class name.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:27 AM Bug #11736 (Closed): Float(arg) not consistent with documentation
- Applied in changeset r56421.
----------
* object.c: Improve documentation for Integer conversion.
[ruby-core:71661][Bug #11736][ci skip] -
09:27 AM Revision 3827c23a (git): * object.c: Improve documentation for Integer conversion.
- [ruby-core:71661][Bug #11736][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:02 AM Misc #12730 (Rejected): Documentation String.slice!(regex)
-
09:01 AM Feature #12803 (Closed): Improve Logger.new option documentation
- Applied in changeset r56420.
----------
* lib/logger.rb: Improve Logger.new option documentation.
[Feature #12803][ruby-core:77467] -
09:01 AM Revision 990b23bb (git): * lib/logger.rb: Improve Logger.new option documentation.
- [Feature #12803][ruby-core:77467]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:20 AM Revision 99ad5124 (git): optparse.rb: hyphenize
- * lib/optparse.rb (make_switch, parse_in_order): unify underscores
to hyphens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:45 AM Feature #12839 (Closed): CSV - Give not nil but empty strings for empty fields
- The CSV parser gives nil for empty fields.
```rb
require "csv"
CSV.parse(%|,""|) #=> [[nil, ""]]
```
The above behavior maybe be suitable for certain programmers, but I hope to get `[["", ""]]`.
So I had used to write the f... - 01:48 AM Revision def1fbde (git): * 2016-10-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:48 AM Revision 1fc0c086 (git): webrick: use monotonic clock for timeouts
- The monotonic clock is immune to system time changes and
a better option for implementing timing comparisons.
* lib/webrick/utils.rb (TimeoutHandler): use monotonic clock
(watch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
01:04 AM Bug #12833: incorrect iso8601 parsing of YYYY-MM format
- I searched for this issue, before filing this ticket. However, I just discovered https://bugs.ruby-lang.org/issues/12285 which reports this same issue.
10/13/2016
-
08:50 PM Bug #12838 (Closed): Duplication of UDP packets for DNS responses causing "no address" results for valid hostnames
- A network that I'm running a Ruby app on has an issue where it is duplicating UDP packets (a separate issue that I need to fix). This is resulting in intermittent "not found" results for valid hostnames.
In my case, my resolver is set... -
07:25 PM Bug #12821: Object converted to Hash unexpectedly under certain method call
- It's not what I expected, but Ruby is splitting `test2` into two hashes, with all keywords into the second hash. There are no keywords in `{0 => [0, 1]}`, so Ruby passes `{0 => [0, 1]}` as `foo` and `{}` as keywords.
~~~ ruby
def arg... -
03:45 PM Misc #12835: RDoc comment of String#casecmp
- I created [pull request](https://github.com/rurema/doctree/pull/339) for Japanese Reference Manual.
-
01:29 PM Misc #12835 (Closed): RDoc comment of String#casecmp
- String#casecmp dose not return nil but raise TypError for incomparable argument.
So
~~~
* str.casecmp(other_str) -> -1, 0, +1 or nil
~~~
should be like
~~~
* str.casecmp(other_str) -> -1, 0, +1
~~~
or
~~~... -
03:42 PM Bug #12834: `prepend` getting prepended even if it already exists in the ancestors chain
- My point was that whether or not a module will get prepended can have an actual impact, yet it got changed between versions without an explicit notice. Given that the behaviour is documented as opposed to left undefined, I thought that t...
-
03:26 PM Bug #12834: `prepend` getting prepended even if it already exists in the ancestors chain
- `Module#include` can make multiple times module existence in `ancestors`.
```ruby
module M; end
class A; end
class B < A; include M; end
class A; include M; end
B.ancestors #=> [B, M, A, M, Object, Kernel, BasicObject]
```
-
10:48 AM Bug #12834 (Closed): `prepend` getting prepended even if it already exists in the ancestors chain
- ```
module M; end
class A; prepend M; end
class B < A; prepend M; end
B.ancestors # => [M, B, M, A, Object, Kernel, BasicObject]
```
Even though I find this behaviour to be more intuitive, it is inconsistent with `Module#includ... -
02:47 PM Bug #12837 (Closed): Add test for what Forwardable#def_delegator extends object what doesn't mix-in Module class
- In #12478, fixed error for what Forwardable#def_delegator extends object what doesn't mix-in Module class. This is test for it.
-
02:01 PM Bug #12836 (Closed): Backport r56416 (copy_stream to duplex IO)
- バックポート管理用チケットです。
-
10:41 AM Revision 34d420ac (git): io.c: copy_stream to duplex IO
- * io.c (copy_stream_body): use IO to write to copy to duplex IO.
http://twitter.com/knu/status/786505317974585344
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:15 AM Revision f087533b (git): NEWS: [Feature #11818] [ci skip]
- * NEWS: add Hash#compact and Hash#compact!. [Feature #11818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Feature #11818 (Closed): `Hash#compact`
- Applied in changeset r56414.
----------
hash.c: add compact and compact! methods
* hash.c (rb_hash_compact, rb_hash_compact_bang): Removes nil
values from the original hash, to port Active Support behavior.
[Feature #11818] -
08:06 AM Revision bbd58fa2 (git): hash.c: add compact and compact! methods
- * hash.c (rb_hash_compact, rb_hash_compact_bang): Removes nil
values from the original hash, to port Active Support behavior.
[Feature #11818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:35 AM Revision 5b3b8554 (git): unstable sort [ci skip]
- * array.c (rb_ary_sort_bang, rb_ary_sort, rb_ary_sort_by_bang):
[DOC] describe that sort may not be stable.
* enum.c (enum_sort, enum_sort_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56413 b2dd03c8-39d4-4d8f-98ff-823... -
02:31 AM Revision 7e9112a4 (git): Fix tests depending on sort stability
- * test/rexml/xpath/test_text.rb (test_ancestors): Array#sort may
not be stable. [ruby-core:76088] [Bug #12509]
* test/rss/test_maker_{0.9,1.0,2.0}.rb (test_items): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56412 b2dd03... -
01:52 AM Bug #12509: Using qsort_s in mingw-w64 causes failures
- Or a patch for stable sort.
```diff
diff --git i/lib/rexml/xpath_parser.rb w/lib/rexml/xpath_parser.rb
index 181b2b6..7ae6495 100644
--- i/lib/rexml/xpath_parser.rb
+++ w/lib/rexml/xpath_parser.rb
@@ -503,9 +503,9 @@
... -
01:49 AM Feature #12664 (Closed): Multiline pretty-printing of multiline strings
- It's fixed at r56391
- 01:40 AM Revision 43112104 (git): doc/extension.rdoc: wording fix w.r.t. volatile vs RB_GC_GUARD
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:17 AM Bug #12833 (Closed): incorrect iso8601 parsing of YYYY-MM format
- ## Duplicate
This ticket duplicates https://bugs.ruby-lang.org/issues/12285
## Expected
`DateTime.iso8601('2016-10')` parses the input string as four-digit year and two-digit month.
```sh
$ ruby -r date -e "puts DateTime.iso...
10/12/2016
-
10:07 PM Feature #12664: Multiline pretty-printing of multiline strings
- Great, thanks. Would you like me to submit it in form of a patch?
-
04:49 PM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- please also take a look at Bug #12706, it may be related, also has to to with how args are yielded to lambdas
-
04:43 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
- I know this may be past your pay grade, but I present this to bring awareness to it.
In general for Ruby 2.x, `while` loops perform the best, but in JRuby they perform the worst.
I have seen various technical explanations for this, but... -
03:48 PM Bug #12509: Using qsort_s in mingw-w64 causes failures
- This is because `Array#sort` and `Array#sort_by` may not be stable.
I fixed `test_array.rb` and reported to rubygems, but uncertain the rest, whether rexml and rss expect stable sort, or the orders are undefined and the tests have bugs.... -
03:39 PM Bug #12509 (Closed): Using qsort_s in mingw-w64 causes failures
- Applied in changeset r56410.
----------
test_array.rb: do not assume stable sort
* test/ruby/test_array.rb (test_sort_bang_with_freeze): make a
clone to copy a <=> singleton method, instead of dup. which
element will be called is ... -
03:39 PM Revision 89230e7c (git): test_array.rb: do not assume stable sort
- * test/ruby/test_array.rb (test_sort_bang_with_freeze): make a
clone to copy a <=> singleton method, instead of dup. which
element will be called is not predictable.
[ruby-core:76088] [Bug #12509]
git-svn-id: svn+ssh://ci.ruby-la... -
03:29 PM Revision 9d8f62d5 (git): better assertion
- * test/rexml/xpath/test_text.rb (test_ancestors): use
assert_kind_of for better assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:28 PM Revision 7f887ab1 (git): Fix similar typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 PM Revision caa90834 (git): Fix typo [ci skip]
- Replace "You can defined hooked variables" with "You can define hooked variables"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:28 PM Revision 93c8fec0 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 PM Revision c2902620 (git): fix warning: assigned but unused variable
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:28 PM Revision 1056f545 (git): * 2016-10-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:28 PM Revision 0c7a092d (git): do not need to downcase twice
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:22 PM Bug #12832: Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
- In case it helps, it seems as if Ruby v2.3 is "more" broken than earlier versions. If I remove the `Bar.method(:foo)` lookup *before* the `Baz` module is prepended, the final lookup still hangs in Ruby v2.3, but not in v2.2. See below:
... -
04:50 AM Bug #12832 (Assigned): Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
- I can reproduce this. Seems like a infinite loop inside of`rb_callable_method_entry_without_refinements`. I think this is a showstopper bug.
```
zsh % lldb ./miniruby target.rb
(lldb) target create "./miniruby"
Current executable... -
01:33 PM Revision 50454616 (git): merge revision(s) 56399:
- * tool/downloader.rb: Removed verification of gem certification.
Because signed gem is not working on rubygems ecosystem.
* tool/gem-unpack.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@564... - 12:07 PM Revision e592a735 (git): * ruby.c (open_load_file): revert r56385. it introduced incompatibility
- about `DATA.binmode?`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 AM Feature #6284: Add composition for procs
- Paul Mucur wrote:
> Yukihiro Matsumoto wrote:
> ...
If Matz says so, then yes, this is the main blocker. -
08:28 AM Feature #6284: Add composition for procs
- Yukihiro Matsumoto wrote:
> Positive about adding function composition. But we need method name consensus before adding it?
> ...
Aside from implementation details, is the lack of consensus on the method name (and the resulting behavio... -
08:24 AM Revision 21f1b89b (git): ruby.c: fix macros
- * ruby.c (open_load_file): FILE_ALT_SEPARATOR and EXEEXT are
config.status variables, not available in config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:24 AM Revision 2e5fffa7 (git): * tool/downloader.rb: Removed verification of gem certification.
- Because signed gem is not working on rubygems ecosystem.
* tool/gem-unpack.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/11/2016
-
08:18 PM Feature #6284: Add composition for procs
- Alexander Moore-Niemi wrote:
> Paul: what's the performance of your `compose`? If I have time later I can use https://github.com/mooreniemi/graph-function to try and see.
I ran the following benchmark with benchmark-ips:
~~~
requ... -
07:48 PM Feature #12810: Improve `Set#find_index` performance
- Quoting the first line of http://ruby-doc.org/stdlib-2.3.1/libdoc/set/rdoc/Set.html:
> Set implements a collection of unordered values
This would mean the set {1,2,3} is exactly the same as the sets {1,3,2}, {2,1,3}, {2,3,1}, {3,1,... -
07:31 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- About the suggestions by Shyouhei Urabe: even though option 2 is very pragmatic (it solves the problem, keeps backwards compatibility and is a small change), the idea of the following code looks a bit off to me:
~~~ruby
str.gsub!(/\[... -
07:21 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- As reference: the e-mail Akira Tanaka mentioned can be found at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/33553, or with a pretty terrible translation to English at https://translate.google.com/translate?sl=ja&tl=en&u=ht...
-
03:24 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- Shyouhei Urabe wrote:
>
> ...
Surprisingly, it may be possible.
```
% ruby -e '
p "abc".gsub(/b/) {|str| "(#{str})" }
String.prepend Module.new {
def gsub(*args)
super(*args) {|str| yield str, $~ }
end
}
p "abc".gsu... -
11:29 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- We looked at this issue in developer meeting today.
While matz's suggestion of new method was excavated from the past, myself and others argued possibility of extending the gsub method that exists today. Proposals include:
1. what... -
08:54 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
- matz's old idea: add String#sg (or String#gs).
ruby-dev:33553 -
06:45 PM Bug #12832 (Closed): Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
- ~~~ ruby
module Foo
private
def foo
"foo"
end
end
class Bar
extend Foo
class << self
public :foo
end
end
Bar.foo # => "foo"
Bar.method(:foo) # => #<Method: Class(Bar)#foo>
module Baz
end
c... -
06:36 PM Feature #9704: Refinements as files instead of modules
- Shugo Maeda wrote:
> Monkey-patching style has another problem that super cannot be supported in monkey patching.
> ...
That last line just clicked with me, and I see old problem. This only works at one level. How would one write a ref... -
06:15 PM Feature #12775: Random subset of array
- This definition of `#sample` seems a bit limited. I know it aligns with the statical definition but it is very easy do another way: `shuffle.take(n)`. Also, the interface is a little odd because it can return an element or an Array. Mayb...
-
05:29 PM Bug #12830: OpenSSL 1.1.0+ support?
- Let me quote one paragraph:
> We do not want to keep 1.0.2 devel around as that could make it to look like the 1.0.2 is still fully "supported" in Fedora and there would be no incentive to switch to 1.1.0.
That basically means what... -
03:07 PM Bug #12830: OpenSSL 1.1.0+ support?
- The upstream of ext/openssl (and the current Ruby trunk) supports OpenSSL 1.1.0 (#12324), but at the same time it dropped support for OpenSSL < 0.9.8. Since adding support for OpenSSL 1.1.0 was a non-trivial work due to the low compatibi...
-
01:12 PM Bug #12830 (Assigned): OpenSSL 1.1.0+ support?
-
01:10 PM Bug #12830 (Closed): OpenSSL 1.1.0+ support?
- What is the plan with OpenSSL 1.1.0+ support? I am asking, since per this announcement [1], the OpenSSL 1.1.0 landed today in Fedora Rawhide and Ruby CI immediately failed [2], [3]. I see that there is some upstream work on OpenSSL suppo...
-
05:23 PM Revision 2db9a0db (git): Test URI.find_proxy using env argument.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:13 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- Nobu, if a symlinked path would be removed from $LOADED_FEATURES from Ruby code, will all related internal references to the same file be cleared too?
-
03:39 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- Shyouhei Urabe wrote:
> In order to do so a meeting attendee suggested to push both symlink-resolved and unresolved paths at once to `$LOADED_FEATURES` on the first call.
I think this explanation differs from that we discussed accura... -
01:19 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- This could make it harder for auto-reloaders to unload a required file when require_relative is used... Doesn't seem like a great solution to this bug to me... Ruby could cache internally the real path when using "require" so that the se...
-
11:07 AM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
- We looked at this issue in developer meeting today.
The ultimate reason why require and `require_relative` behaves differently is that while `require_relative` infers its argument's realpath every time, `require` doesn't.
This _was... -
04:42 PM Revision a44f5878 (git): forgot to replace two occurences of ENV.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:36 PM Revision ddadd139 (git): * 2016-10-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:36 PM Revision ed7b88e2 (git): `\s` includes `\t`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:01 PM Feature #12831 (Closed): /\X/ (extended grapheme cluster) can't pass unicode.org's GraphemeBreakTest
- I'm trying to replace Rails's grapheme implementation (http://api.rubyonrails.org/classes/ActiveSupport/Multibyte/Unicode.html#method-i-unpack_graphemes) with Ruby's extended grapheme cluster (/X/).
https://github.com/rails/rails/issues... -
01:21 PM Revision 269977b9 (git): bootstraptest/runner.rb: first line in the source
- * bootstraptest/runner.rb (pretty): remove empty line at the
beginning only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:08 PM Bug #12829 (Closed): Compile error on cygwin (io.c)
- Applied in changeset r56393.
----------
io.c: fix typo
* io.c (prep_io): fix typo of struct member name.
[ruby-core:77550] [Bug #12829] -
06:58 AM Bug #12829 (Closed): Compile error on cygwin (io.c)
- I get the following error when trying to compile the latest version of Ruby trunk on cygwin:
Thread model: posix
gcc version 5.4.0 (GCC)
compiling io.c
io.c: In function ‘prep_io’:
io.c:7378:4: error: ‘rb_io_t {aka struct rb_io_t}... -
01:08 PM Revision 446924cb (git): io.c: fix typo
- * io.c (prep_io): fix typo of struct member name.
[ruby-core:77550] [Bug #12829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:59 AM Feature #12142: Hash tables with open addressing
- We (mainly ko1) had a deeper look at this issue in developer meeting today. Ko1 showed his microbenchmark result over the three (proposed two and the current) implementations. I don't have the result at hand right now so let me refrain...
-
11:16 AM Feature #12732: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception
- We looked at this issue in developer meeting today.
It seems originally, ruby was designed under assumption that string to integer conversion in general could be covered 100% by either to_s or Integer(). Truth is we need the proposed... -
11:11 AM Bug #4537: Incorrectly creating private method via attr_accessor
- Just FYI we looked at it in developer meeting today and agreed this is a bug that have yet to be fixed.
-
08:40 AM Bug #4537 (Assigned): Incorrectly creating private method via attr_accessor
-
08:39 AM Bug #4537 (Closed): Incorrectly creating private method via attr_accessor
-
11:07 AM Feature #12760: Optional block argument for `itself`
- Thanks for the update! Haven't you discussed the probable another name for it?.. We just want it to be in language already.
-
10:33 AM Feature #12760: Optional block argument for `itself`
- FYI we looked at this issue at developer meeting today. Because matz was not there this extension still has chance, but the attendees thought `itself`'s block (if any) shall work like how `tap` works. So it might not be suitable for th...
-
10:58 AM Feature #6783: Infinite loop in inspect, not overriding inspect, to_s, and no known circular references. Stepping into inspect in debugger locks it up with 100% CPU.
- We looked at this ticket at developer meeting today and found several former tickets that was linked then. FYI #6733 is the most big-pictured feature request that ultimately solves this problem. Not yet implemented though.
-
10:54 AM Feature #12664 (Assigned): Multiline pretty-printing of multiline strings
- We looked at this issue in developer meeting today and Akira was positive about this proposal. I'm assigning to him.
-
10:51 AM Bug #12594 (Assigned): The class does not inherit from a module the modules that were included after the inclusion
- We at developer meeting looked at it again. Nobu thinks he can fix this so I'm assigning to him. He said to me this is low priority, though.
-
10:49 AM Feature #11195: Add "no_proxy" parameter to Net::HTTP.new
- We looked at this issue in developer meeting today.
This feature is not implemented yet. And attendees wondered if Net::HTTP is the right place to implement no_proxy because it is the lowest layer of HTTP processing in Ruby.
`uri/... -
10:37 AM Feature #6647: Exceptions raised in threads should be logged
- We looked at this issue at developer meeting today and John's proposal sounded reasonable. So there quite are possibilities to accept it I think.
Problem is however, we currently do not implement "report exception on thread GC"-mode ... -
09:22 AM Feature #12747 (Assigned): Add TracePoint#callee_id
-
09:15 AM Bug #12780 (Assigned): BigDecimal#round returns different types depending on argument
-
08:41 AM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
- lambda should be strict on number of arguments.
So, stabby lambda (and traditional lambda) should not expand
single array argument.
It works until ruby 2.2.
Ruby 2.2 introduce the bug.
```
% all-ruby -e '
def yield_test
yie... -
08:32 AM Bug #12705 (Assigned): yielding args to a lambda uses block/proc rather than lambda/method semantics
- This (stabby lambda not raising exception) is a bug that should be fixed.
-
07:53 AM Revision 1ab07408 (git): Add an optional argument, env, to URI.find_proxy.
- * lib/uri/generic.rb (URI.find_proxy): Add an optional argument, env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:44 AM Revision ea8990d8 (git): pp prints a multiple lines string prettier.
- * lib/pp.rb (String#pretty_print): Defined to print a string as
multiple lines.
[ruby-core:76800] [Feature#12664] proposed by Petr Chalupa.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:32 AM Bug #12678 (Assigned): No way to set a timeout for TLS handshake when using Net::SMTP
-
07:30 AM Bug #12674 (Assigned): io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeout
-
07:15 AM Feature #12656 (Assigned): Expand short paths with File.expand_path
-
07:13 AM Bug #12776 (Closed): Flaky test case: TestThread#test_thread_name
- Seems OK, please backport.
-
07:10 AM Bug #8996 (Assigned): pthread_mutex_lock EINVAL
-
07:09 AM Bug #12509 (Assigned): Using qsort_s in mingw-w64 causes failures
-
07:03 AM Bug #12652 (Assigned): For Dir.home encode passed user
-
07:00 AM Bug #12649 (Assigned): DateTime method calls hang
-
06:59 AM Bug #12828 (Closed): Check whether macro RUBY is okay for protecting ruby-specific onigumo extensions
- It should be OK.
-
06:35 AM Bug #12828 (Closed): Check whether macro RUBY is okay for protecting ruby-specific onigumo extensions
- In issue #12386, I removed the ONIG_CASE_MAPPING macro because we thought that there was no need to keep the Ruby version of Onigumo in sync with the original version (see https://bugs.ruby-lang.org/issues/12386#note-1).
However, ther... -
06:02 AM Feature #12092 (Rejected): Allow Object#clone to yield cloned object before freezing
- 05:35 AM Revision ce2b7ae5 (git): * 2016-10-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:35 AM Revision 19b38f83 (git): Ruby 2.4.0 will not have rb_cFixnum and rb_cBignum is removed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:31 AM Bug #12827 (Rejected): Add Boolean data type.
- Do you have anything to add to https://bugs.ruby-lang.org/issues/12515 ?
-
02:22 AM Bug #12827 (Rejected): Add Boolean data type.
- It's not clear to me why there isn't a Boolean class which can have values true and false.
There are benefits to this. An example of where this is an issue is people who write ORM. For example, in `sequel` gem, they use "TrueClass" fo... -
01:12 AM Bug #12814: Pathname#each_child(false) produces unusable file paths
- It's true you can't infer a realpath from `with_directory=false`-yielded file paths. Yes. But isn't it intentional? You requested to cut where the path was from. Pretty natural you can no longer infer its origin.
The RDoc says it ... -
12:57 AM Feature #12817: Consider adding method .sample() on class Hash (if this was not yet proposed)
- Hash#sample was proposed by you, Robert. https://bugs.ruby-lang.org/issues/12586
Is this your second challenge? That's completely OK but can I close the former one for housekeeping? -
12:26 AM Bug #12826 (Third Party's Issue): Segmentation fault
- The bug resides at `/usr/lib/libpixman-1.so.0(pixman_lookup_composite_function+0x3b) [0x42067eb]`. It is most possibly a pixman's bug.
-
12:01 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
- A typo in `prime?` method:
```
return false => return false if
```
10/10/2016
-
11:03 PM Feature #12659: Readline: expose rl_char_is_quoted_p setting
- Nobuyoshi Nakada wrote:
> Applied in changeset r56326.
Thank you! -
06:39 PM Bug #12826 (Third Party's Issue): Segmentation fault
- INFO: icm_manage_ip: Starting Up
/usr/pack/icmutil-5.0-sw/x86_64-Linux-2.6/icmUtil/config/createip_initializer.rb:36: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
-- Control frame information ----... -
05:15 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
- Thanks for your explanation. I understood (after looking at the source code) what was being done,
and how it was being done, but from a user perspective I was inquiring *why* it was being done that way.
Also purely from a user perspe... -
12:21 PM Bug #12825 (Rejected): Time.parse doesn't work when using T as time delimiter and only hours are specified
- Thomas Mayrhofer wrote:
> When using the T delimiter instead of \s the hour isn't parsed correctly.
> ...
'T' is used by ISO-8601, but the former is invalid for it and that part is ignored.
In the latter case, a word "10" is fallen b... -
09:22 AM Bug #12825 (Rejected): Time.parse doesn't work when using T as time delimiter and only hours are specified
- When using the T delimiter instead of \s the hour isn't parsed correctly.
~~~ ruby
require 'time'
Time.parse('2000-01-01T10') # => 2000-01-01 00:00:00 +0100
Time.parse('2000-01-01 10') # => 2000-01-01 10:00:00 +0100
~~~
When t... -
06:22 AM Revision 8c3af8ec (git): ruby.c: bind fd before waiting
- * ruby.c (open_load_file): bind the open fd to an IO instance
before waiting FIFO, not to leak the fd if interrupted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:14 AM Revision a28d3d59 (git): test_require.rb: use assert_separately
- * test/ruby/test_require.rb (test_loading_fifo_threading_raise):
use assert_separately.
* test/ruby/test_require.rb (test_loading_fifo_threading_success):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56387 b2dd03c8-39d4... -
03:40 AM Revision 3ef1149b (git): ruby.c: compare with EXEEXT
- * ruby.c (open_load_file): compare with EXEEXT instead of hard
coded name, and do not match with mere EXEEXT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:40 AM Revision 18d0bf95 (git): ruby.c: open in binary mode to load
- * ruby.c (open_load_file): open in binary mode if available, as
parser deals with EOLs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:37 AM Revision e1799442 (git): * 2016-10-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:37 AM Revision 047604ad (git): io.c: reduce isatty on Cygwin [ci skip]
- * io.c (prep_io): reduce isatty call (and its system call) on
Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e