Activity
From 02/03/2016 to 02/09/2016
02/09/2016
-
09:51 PM Feature #12059: `Array#single?`, `Hash#single?`
- Ruby currently supports the `one?` method on both Hash and Array.
~~~ruby
[1].one?
# => true
{a: 1}.one?
# => true
[1].method(:one?).owner
# => Enumerable
~~~
-
04:31 PM Feature #12059: `Array#single?`, `Hash#single?`
- I'm neutral for the proposal itself. If it is accepted, I think "singleton?" is the best name.
> In mathematics, a singleton ... is a set with exactly one element.
> ...
--
Yusuke Endoh <mame@ruby-lang.org> -
03:41 PM Feature #12059: `Array#single?`, `Hash#single?`
- I feel like the usage of this method wouldn't be generic enough, and could be accomplished easily by `.size.one?`
-
03:37 PM Feature #12059 (Open): `Array#single?`, `Hash#single?`
- There are some use cases when one wants to check if an array or a hash has exactly one element. I propose `Array#single?` and `Hash#single?` that checks for such cases and returns either `true` or `false`. This is an analogy from the `em...
- 06:43 PM Revision 7935edc6 (git): * 2016-02-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:43 PM Revision 794eb48e (git): Add example for Method#parameters from [ruby-core:19759]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:52 PM Bug #11736: Float(arg) not consistent with documentation
- I have prepared a patch for this. Let me know what you think.
-
05:30 PM Bug #9810: Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
- i finally got around to writing the patch : ) pretty basic but let me know what you think!
-
10:18 AM Revision 70a4e9e7 (git): ruby.c: fixup r53791
- * ruby.c (DEFAULT_FEATURES): debug features are no longer set
since r53791.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:55 AM Revision add54214 (git): * ruby.c (dump_option): fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:41 AM Feature #12034: RegExp does not respect file encoding directive
- nobu@ruby-lang.org wrote:
> File 0001-string.c-rb_external_str_with_enc-fall-back-to-ASCII.patch added
> File 0002-follow-up-for-OS-X.patch added
>
> It failed on OS X.
So 0002 fixes things on OS X? Can you commit if you agree ... -
04:31 AM Feature #12034: RegExp does not respect file encoding directive
- It failed on OS X.
-
08:32 AM Revision 67d10189 (git): ruby.c: available list from enum
- * ruby.c (feature_option, debug_option, dump_option): build
available list in warning messages from enum lists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:24 AM Revision 80e9ca60 (git): ruby.c: EACH_DUMPS
- * ruby.c (EACH_DUMPS): define the list of dumping feature names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:42 AM Revision b6dcc396 (git): ruby.c: set feature bits only
- * ruby.c (DEFAULT_FEATURES): set feature bits only, excluding
debug features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:41 AM Revision 460e9d8d (git): * lib/logger.rb: Remove block from Logger.add as it's not needed
- patch provided by Daniel Lobato Garcí [fix GH-1240] [Bug #12054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:41 AM Bug #12054 (Closed): Remove block from Logger.add as it's not needed
- Applied in changeset r53790.
----------
* lib/logger.rb: Remove block from Logger.add as it's not needed
patch provided by Daniel Lobato Garcí [fix GH-1240] [Bug #12054] -
07:36 AM Revision ade0d8e2 (git): ruby.c: EACH_DEBUG_FEATURES
- * ruby.c (EACH_DEBUG_FEATURES): define the list of debug feature
names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:57 AM Revision 07983edf (git): mkrunnable.rb: symlink on Windows [ci skip]
- * tool/mkrunnable.rb: File.symlink is supported on Windows now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:50 AM Revision 94a9a314 (git): mkrunnable.rb: clean link before symlink [ci skip]
- * tool/mkrunnable.rb (clean_link): clean link before symlink not
to make a symlink in the linked directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:47 AM Revision 4859eba8 (git): rename ADD_FEATURE
- * ruby.c (ADD_FEATURE_NAME): rename ADD_FEATURE, as it does not
add a feature, but just append a name to the message string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:33 AM Revision 70d040dd (git): * ext/zlib/zlib.c: Document mtime header behavior with patch by @schneems
- Fixes [GH-1129]: https://github.com/ruby/ruby/pull/1129
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:54 AM Revision d9010589 (git): * re.c: Remove deprecated kcode argument from Regexp.new and compile
- patch provided by Dylan Pulliam [Bug #11495]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:54 AM Bug #11495 (Closed): [Documentation] Please improve documentation for Regexp.new() and clarify the 3 argument call
- Applied in changeset r53784.
----------
* re.c: Remove deprecated kcode argument from Regexp.new and compile
patch provided by Dylan Pulliam [Bug #11495] -
03:43 AM Bug #11877 (Closed): Socket.gethostname will fail when the hostname length == RUBY_MAX_HOST_NAME_LEN
- fixed in trunk at r53677.
-
02:09 AM Revision 650c05ae (git): .gdbinit: improve rb_imemo [ci skip]
- * .gdbinit (rp_imemo): support imemo_ment and imemo_iseq.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:51 AM Revision c1e60483 (git): * 2016-02-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:51 AM Revision 57b04039 (git): Support 1.8
- Merged https://github.com/rubygems/rubygems/commit/72b3701
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:12 AM Bug #12058 (Closed): Unexpected value of __callee__ when including a module
- I noticed a surprising behavior when invoking `__callee__` in an aliased method.
When invoked via a method created by `alias_method`, `__callee__` ignores the name of the old method (here `xxx`) and returns the name of the new method,...
02/08/2016
-
01:20 PM Misc #12004: Code of Conduct
- (deleted by hsbt)
- 12:26 PM Revision 60c70617 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:26 PM Revision 73ab8899 (git): * enc/unicode/case-folding.rb, enc/unicode/casefold.h: Flags for
- upper/lower conversion added (titlecase and SpecialCasing still missing)
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:44 AM Revision 2ca7569c (git): * string.c, enc/unicode.c: Disassociating ONIGENC_CASE_FOLD flag from
- ONIGENC_CASE_DOWNCASE.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:09 AM Revision d4753479 (git): test_gem_remote_fetcher.rb: terminate watcher
- * test/rubygems/test_gem_remote_fetcher.rb (stop_servers):
terminate timeout watcher thread to fix thread leak. re-apply
r53439.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:01 AM Revision 584f9e51 (git): unicode.c: magic numbers
- * enc/unicode.c (I_WITH_DOT_ABOVE, DOTLESS_i, DOT_ABOVE): name
magic numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:00 AM Revision 8f10a72d (git): * enc/unicode.c: Shortened macros for enc/unicode/casefold.h to
- single-letter; use flags in casefold.h for logic.
* enc/unicode/case-folding.rb: Added flag for case folding.
Changed parameter passing.
* enc/unicode/casefold.h: New flags added.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-... -
03:44 AM Revision 1bea5a61 (git): string.c: remove magic number
- * string.c (rb_str_dump): share same string literal instead of a
magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:41 AM Revision 6442f021 (git): string.c: use encoding index
- * string.c (rb_external_str_with_enc, rb_str_concat, rb_str_dump):
use encoding index as shortcut without rb_encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:21 AM Bug #5720: Exceptions can be caused via eval that evade exception handling
- It occurs when pushing arguments onto the VM stack, *before* the arity check.
The check cannot be before it since there may be splats. -
01:30 AM Revision 12bdb15e (git): ruby.c: err ambiguous feature name [ci skip]
- * ruby.c (feature_option): raise a runtime error if ambiguous
feature name is given, in the future. [Bug #12050]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:30 AM Bug #12050 (Closed): Should feature processing really accept any substring of the feature name?
- Applied in changeset r53772.
----------
ruby.c: err ambiguous feature name [ci skip]
* ruby.c (feature_option): raise a runtime error if ambiguous
feature name is given, in the future. [Bug #12050] -
12:44 AM Revision c1db3a49 (git): * common.mk: Removed enc/unicode/casefold.h from automatic build because
- some CI systems don't have gperf. Creation of enc/unicode/casefold.h
is now possible with make unicode-up. This is intended as a temporary measure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53771 b2dd03c8-39d4-4d8f-98ff-823fe...
02/07/2016
-
11:31 PM Feature #12034: RegExp does not respect file encoding directive
- Eric Wong <normalperson@yhbt.net> wrote:
> Returning invalid strings is the main problem, I think;
> ...
Maybe this, too:
```diff
Subject: [PATCH] string.c (rb_external_str_with_enc): fall back to ASCII-8BIT
Fall back to returni... -
10:41 PM Feature #12034: RegExp does not respect file encoding directive
- nobu@ruby-lang.org wrote:
> Eric Wong wrote:
> > How about fall back to ASCII-8BIT if we detect broken code range?
>
> It may be desirable or undesirable, as it can cause unexpected failure later.
Current behavior causes failure... -
09:51 AM Feature #12034: RegExp does not respect file encoding directive
- Eric Wong wrote:
> How about fall back to ASCII-8BIT if we detect broken code range?
It may be desirable or undesirable, as it can cause unexpected failure later.
> ...
Anyway, "\xde\xad\xbe\xef" is a valid string in some encoding... -
06:41 AM Feature #12034: RegExp does not respect file encoding directive
- Eric Wong <normalperson@yhbt.net> wrote:
> nobu@ruby-lang.org wrote:
> ...
How about fall back to ASCII-8BIT if we detect broken code range?
We try to be helpful by respecting FS encoding, but we need to
acknowledge symlinks can ha... -
10:39 PM Misc #12004: Code of Conduct
- I'm taking a moment to appreciate programmers trying to fix an error by adding comments.
-
08:53 PM Feature #12057: Allow methods with `yield` to be called without a block
- Or maybe not an iterator but a delimited continuation?
Probably the following behavior is more natural:
~~~ruby
def f
['a', 'b', 'c'].each do |c|
puts yield c
end
return 'd'
end
c, v = f
puts v # : a
c, v = c.... -
08:23 PM Feature #12057 (Open): Allow methods with `yield` to be called without a block
- Trying to figure out how `yield` works in Python, i had the following idea.
Allow a method with `yield` to be called without a block. When a method encounters `yield`, if no block is given, the method returns an `Enumerator` object.
... -
08:17 PM Bug #12050: Should feature processing really accept any substring of the feature name?
- Usaku NAKAMURA wrote:
> Nobuyoshi Nakada wrote:
> ...
I agree with you. For impl-specific options it is arguable whether ambiguity is important, but once enable/disable ends up with a potential ambiguous short-hand someone will end up... -
09:44 AM Bug #12050: Should feature processing really accept any substring of the feature name?
- Nobuyoshi Nakada wrote:
> Eliminating all ambiguities is not always convenient, I think.
The convenience is derived from your knowledge about the implementation.
For others who are not familiar with the implementation, the behavior ... -
09:28 AM Bug #12050: Should feature processing really accept any substring of the feature name?
- There is no ambiguous features now.
And, as for similar option, `--dump` which has `parsetree` and `parsetree_with_comment`, I don't want it to err by `--dump=parse` but to dump just `parsetree`.
Eliminating all ambiguities is not alwa... -
04:45 AM Bug #12050: Should feature processing really accept any substring of the feature name?
- I hope that it should be an `invalid option` error if it is ambiguous.
And, when such case, showing the list of candidates (like did_you_mean) is better.
(Sorry, this comment may be a bikeshed.) -
02:26 AM Bug #12050: Should feature processing really accept any substring of the feature name?
- `ruby --help` shows:
```
Features:
gems rubygems (default: enabled)
did_you_mean did_you_mean (default: enabled)
rubyopt RUBYOPT environment variable (default: enabled)
frozen-string-literal
... - 07:40 PM Revision 7e192b23 (git): * 2016-02-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:40 PM Revision d5b45110 (git): * ChangeLog: revive an entry for r53762 accidentally removed at r53764.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:00 PM Feature #12046: Allow attr_reader :foo? to define instance method foo? for accessing @foo
- Yay! Sometimes things just take a while. :)
- 01:10 PM Revision 3e82668e (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:10 PM Revision 49ca434b (git): * common.mk: Added two more precondition files for enc/unicode/casefold.h
- * enc/unicode.c: Added shortening macros for enc/unicode/casefold.h
* enc/unicode/case-folding.rb: Fixed file encoding for CaseFolding.txt
to ASCII-8BIT (should fix some ci errors). Clarified usage. Created
class MapItem. Partially i... -
12:47 PM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
- Good suggestion IMHO, +1
The did_you_mean gem is great. If distinguishing between "()" and no "" will
make things even greater then I am all for it. \o/ -
11:10 AM Bug #5720: Exceptions can be caused via eval that evade exception handling
- A question about the test you added, nobu:
```
def test_too_many_args_in_eval
bug5720 = '[ruby-core:41520]'
arg_string = (0...140000).to_a.join(", ")
assert_raise(SystemStackError, bug5720) {eval "raise(#{arg_string}... -
10:21 AM Revision 2c9274ef (git): ruby.c: EACH_FEATURES
- * ruby.c (EACH_FEATURES): define the list of feature names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:12 AM Revision e40d1173 (git): * enc/unicode/case-folding.rb: Fixing parameter passing.
- (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:44 AM Revision 5cbe9fe5 (git): * enc/unicode/case-folding.rb: New classes CaseMapping/CaseMappingDummy
- to pass as parameters; not yet implemented or used.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:40 AM Revision 3890bb60 (git): ruby.c: show feature names
- * ruby.c (feature_option): show possible feature names when
unknown argument is given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:16 AM Revision ee696372 (git): * common.mk: using new option in recipe for enc/unicode/casefold.h
- * enc/unicode/case-folding.rb: Correctly specify argument to new option.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 AM Revision 1e7770d3 (git): (this commit message applies to the previous commit)
- * common.mk: explicit recipe for enc/unicode/casefold.h
* enc/unicode/case-folding.rb: Adding -m option to prepare for using
multiple data files.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53761 b2dd03c8... - 01:39 AM Revision b0b7cb5a (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 AM Revision 07ad0338 (git): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/06/2016
- 05:56 PM Revision b6d25f03 (git): * 2016-02-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:56 PM Revision 0a3fc607 (git): Revert "check __int64_t and __int128_t"
- This reverts commit r53750.
Those types seems to be for C++, and breaks old GCC.
http://rubyci.s3.amazonaws.com/c64b/ruby-trunk/log/20160206T130202Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53757 b2dd03c8-39d4-4d8f... -
05:28 PM Feature #10098: [PATCH] Timing-safe string comparison for OpenSSL::HMAC
- Can someone clarify, what state is this feature in? Do we still need to get Matz's approval of String API change, or in light of Zachary's change "openssl" group gives the final call?
-
02:45 PM Revision 32589049 (git): Fix r53748; the datafile includes non ASCII
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:23 PM Revision 6a6993cf (git): fix types order
- * configure.in: types without _t have prior than types with _t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:31 PM Revision 8e46f401 (git): ASCII-incompatible escape
- * lib/cgi/util.rb (escapeHTML, unescapeHTML): consider
ASCII-incompatible encodings. [Fix GH-1239]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:06 PM Bug #12056 (Rejected): kwarg is not allowed after `return`
- Cited from http://aylog.tumblr.com/post/138772421042/return
```
$ ruby -e 'return foo: :bar'
-e:1: syntax error, unexpected ':', expecting end-of-input
return foo: :bar
^
```
Seems a bug.
https://github.com/ruby/... -
12:02 PM Revision 16e613fc (git): lex.c.blt: update
- * lex.c.blt: follows r52429, not removing casts to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:51 AM Revision 68600345 (git): get rid of ruby-mode.el bugs
- * lib/optparse.rb: get rid of confusing ruby-mode.el of Emacs 24,
- if-end expression inside an expression
- a comma just followed by a bar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 11:44 AM Revision 6354a08d (git): * 2016-02-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:44 AM Revision 7475d804 (git): check __int64_t and __int128_t
- * configure.in: check __int64_t and __int128_t for RUBY_DEFINT on
OS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:54 AM Misc #12004: Code of Conduct
- Motohiro KOSAKI wrote:
> ph ph wrote:
> ...
The message is not directed to you. The recipient perfectly understand it.
Although what you want to do good, what you end up with is bad irrelevant personnel opinion and censorship.
>... -
06:18 AM Revision e8dde46b (git): * test/ruby/enc/test_regex_casefold.rb: Added data-based testing for
- String#downcase :fold.
* enc/unicode.c: Fixed a range error (lowest non-ASCII character affected
by case operations is U+00B5, MICRO SIGN)
* test/ruby/enc/test_case_mapping.rb: Explicit test for case folding of
MICRO SIGN to Greek mu... -
05:51 AM Revision b217dc81 (git): * test/ruby/enc/test_regex_casefold.rb: Tests for three case folding
- primitives (mbc_case_fold, get_case_fold_codes_by_str,
apply_all_case_fold) in the various encodings. Currently only known
good encodings are tested to avoid test failures. For bug hunting,
start by adding more encodings with
... -
05:37 AM Revision 81515b23 (git): * enc/unicode.c, test/ruby/enc/test_case_mapping.rb: Implemented :fold
- option for String#downcase by using case folding data from
regular expression engine, and added a few simple tests.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
02/05/2016
-
11:37 PM Misc #12004: Code of Conduct
- In the interest of fairness I feel compelled to point out that the awesome-django ticket - while not fake - is quite probably just a troll, not someone who did that sincerely. The way they communicate feels like an artifice to match the ...
-
04:12 PM Misc #12004: Code of Conduct
- Coraline Ada Ehmke wrote:
> FYI I just got doxed for my role in proposing a code of conduct for the Ruby community. In case you don't know, this means that my private contact information was researched and publicized for the sake of enc... -
04:02 PM Misc #12004: Code of Conduct
- So I would like to begin this by stating that I am actually afraid that I will loose my job and reputation by responding to this in a negative way. I have made a new account to protect myself (though if anyone gets the joke of my name, ...
-
01:17 PM Misc #12004: Code of Conduct
- Disclaimer: Yes, this is a new account, but I am not new in the Ruby community, and I am not hiding my identity.
I am for a Code of Conduct.
I am also for a CoC equally applying to everyone equally. In this regard I have a few que... -
06:34 AM Misc #12004: Code of Conduct
- Question: if i get called a **"irrational, knee-jerk"** (that does ~~harass~~ hurt my feelings) does that violate the CoC and result in Banning of that user?
Quote: "~~Public or private harassment~~ Trolling, **insulting/derogatory com... -
09:51 PM Feature #12020: Documenting Ruby memory model
- email@pitr.ch wrote:
> Thank you, for taking time to read it and for your input. I apologise
> for delayed answer, I was rather busy lately.
No worries, I've been busy, too.
> I've added following paragraph to the document expla... -
02:56 PM Bug #12050: Should feature processing really accept any substring of the feature name?
- Thomas Enebo wrote:
> Nobuyoshi Nakada wrote:
> ...
Oh I should have read that closer...Resolves in the defined order if ambiguous? How would I know what that order is the defined order as an ordinary user? -
02:52 PM Bug #12050: Should feature processing really accept any substring of the feature name?
- Nobuyoshi Nakada wrote:
> Intentional, and resolved in the defined order when it is ambiguous.
> ...
ok. Thanks for the clarification. -
03:22 AM Bug #12050: Should feature processing really accept any substring of the feature name?
- Intentional, and resolved in the defined order when it is ambiguous.
I don't want to write `--enable=frozen-string-literal`, but `--enable=frozen` or shorter. -
01:05 PM Bug #12055 (Closed): `NET::HTTPResponse` is not deflating responses with custom `Content-Range` header
- The RFC 7233, section 4.2 describes the the possibility of using a custom `Content-Range` header and not only for bytes https://tools.ietf.org/html/rfc7233#section-4.2. Although, the `NET::HTTPResponse` considers that `Content-Range` pre...
-
12:17 PM Bug #12054 (Closed): Remove block from Logger.add as it's not needed
- Logger add (lib/logger.rb) takes as arguments severity, message, progname and &block
The method runs the block through yield. In this case, we can just omit the argument and we'd be saving the instantiation of a new proc object (see h... -
11:09 AM Revision 6ab70ad7 (git): * test/ruby/enc/test_case_mapping.rb: added tests for :ascii option.
- (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:45 AM Revision cadf8058 (git): configure.in: fix doc [ci skip]
- * configure.in (RUBY_CHECK_SIGNEDNESS): [DOC] fix function name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:52 AM Revision 016e6db5 (git): improve r53741
- * Remove branching by a==0 case
Before r53741:
% perf stat ./miniruby -e'a=100;i=0;while i<0xfffffff;i+=1;a=(a*557+2)%100000;end'
Performance counter stats for './miniruby -vea=100;i=0;while
i<0xfffffff;i+=1;a=(a*557+2)%100000;end':
... -
05:57 AM Bug #12053: Issue with installing pubnub gem on Arduino Yun
- I would love to, but I'm sort of at the mercy of individuals who build the ruby packages for the Arduino. I did try to execute "gem update --system 2.2.4" which I saw as a potential way of circumventing this, but got the following very s...
-
05:11 AM Bug #12053 (Feedback): Issue with installing pubnub gem on Arduino Yun
- I think we've fixed a similar bug.
Could you try 2.2.4? -
03:57 AM Bug #12053 (Closed): Issue with installing pubnub gem on Arduino Yun
- Hi, I've installed all of the Ruby packages available here (http://download.rsdev.16mb.com/OpenWrt/ChaosCalmer_15.05/ArduinoYun/packages/packages/), including ruby-gems. Now I'm trying to install the Pubnub Ruby SDK with the command "gem...
-
04:45 AM Revision eecfa1fc (git): incompatible encoding workaround
- * test/lib/minitest/unit.rb (puke): workaround incompatible
encoding error messages.
* test/lib/test/unit/assertions.rb (AllFailures.message): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53743 b2dd03c8-39d4-4d8f-98ff-823... - 04:31 AM Revision 281f090b (git): * 2016-02-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:31 AM Revision 1f57a334 (git): * insns.def (opt_mult): Use int128_t for overflow detection.
- * bignum.c (rb_uint128t2big): added for opt_mult.
* bignum.c (rb_uint128t2big): added for rb_uint128t2big..
* configure.in: define int128_t, uint128_t and related MACROs.
Initially introduced by r41379 but reverted by r50749.
git-sv... -
02:50 AM Bug #12052 (Closed): String#encode with xml option returns wrong result for totally non-ASCII-compatible encodings
- `String#encode`をASCII非互換エンコーディングから同じエンコーディングへ、`xml:`オプション付きで呼ぶとおかしな結果を返します。
バイナリとして変換してしまっているようです。
```ruby
p "<\0>\0".encode("utf-16le", "utf-16le", xml: :text)
#=> "\u6C26\u3B74\u2600\u7467;"
```
02/04/2016
-
11:31 PM Misc #12004: Code of Conduct
- coraline@idolhands.com wrote:
>
> FYI I just got doxed for my role in proposing a code of conduct for the Ruby community.
> In case you don't know, this means that my private contact information was researched
> and publicized for t... -
11:09 PM Misc #12004: Code of Conduct
- Coraline Ada Ehmke wrote:
> FYI I just got doxed for my role in proposing a code of conduct for the Ruby community. In case you don't know, this means that my private contact information was researched and publicized for the sake of enc... -
08:39 PM Misc #12004: Code of Conduct
- > One thing to consider. Before this proposal how many kinds of these issues came up? [...] But if you look at the track record before this was proposed and what's happening now I find it very suspicious.
An uncharitable reading of ... -
08:25 PM Misc #12004: Code of Conduct
- I'm genuinely sorry you're experiencing that Caroline and I pray no further unfriendly action occurs.
One thing to consider. Before this proposal how many kinds of these issues came up? Now with the proposal; what's the best strateg... -
04:42 PM Misc #12004: Code of Conduct
- FYI I just got doxed for my role in proposing a code of conduct for the Ruby community. In case you don't know, this means that my private contact information was researched and publicized for the sake of encouraging offline threats and ...
-
11:10 PM Bug #12050 (Closed): Should feature processing really accept any substring of the feature name?
- ruby --disable-gems -e 1
ruby --disable-gem -e 1
ruby --disable-ge -e 1
ruby --disable-g -e 1
I found this because in test_syntax.rb someone used --disable-gem and JRuby is currently doing matches on the full feature name and error... -
10:54 PM Bug #11443: DNS name resolution takes twice as long as it should when primary name server is unavailable
- I retested this again today and could only replicate it on Ubuntu Lucid, not Ubuntu Trusty or Debian Jessie.
-
08:54 PM Bug #12049 (Closed): rb_gc_mark(): unknown data type
- I get the following error when I use rexml (in fact it's a rails call) with sidekiq.
I suspect that some of the value's that the parser is using are getting moved by the gc witch is call after each sidekiq process
```
/h/u/.rvm/ru... -
05:28 PM Feature #12020: Documenting Ruby memory model
- Eric Wong wrote:
> I'm not sure if shared memory is even a good model for Ruby (and not my
> ...
Shared memory at the user level is only one possibility indeed.
But it is one the current model supports, even if MRI prevents actual pa... -
12:05 PM Revision b658249c (git): * enc/unicode.c: Activated :ascii flag for ASCII-only case conversion
- (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:38 AM Revision 445b015c (git): fstring without copy
- * re.c (reg_set_source): make source string frozen without
copying.
* re.c (rb_reg_initialize_m): refactor initialization with
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:46 AM Revision 09c91108 (git): revert re.c in r53736
- * re.c (rb_reg_initialize): must copy the source string content,
it is not a static literal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:44 AM Revision 25fd2784 (git): return shared string
- * re.c (rb_reg_source): return shared string without copying.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:35 AM Revision 94c70c7d (git): fstring_enc_new
- * string.c (rb_fstring_enc_new, rb_fstring_enc_cstr): functions to
make fstring with encoding.
* re.c (rb_reg_initialize): make fstring without copying.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53736 b2dd03c8-39d4-4d8f-98ff-8... -
06:34 AM Revision 10ff672a (git): end of UNICODE_FILES
- * common.mk (UNICODE_FILES): append empty END-OF-LIST to put
backslashes uniformly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:42 AM Revision bb4f8712 (git): * common.mk: Added Unicode data file SpecialCasing.txt to be additionally
- downloaded (with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:10 AM Revision a320f811 (git): mask upper nibble
- * ext/cgi/escape/escape.c (optimized_escape): move c and use it
instead of cstr[i]. mask upper nibble for the platforms where
CHAR_BIT > 8. [Fix GH-1238]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53733 b2dd03c8-39d4-4d8f-9... -
03:40 AM Revision 7d1dd7ca (git): initialize dest to 0
- * ext/cgi/escape/escape.c (optimized_escape_html): initialize dest
to 0 and tell the result to be modified, instead of a separate
flag.
* ext/cgi/escape/escape.c (optimized_escape): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... -
03:39 AM Revision 217ad664 (git): cgi/escape: Optimize CGI.escape
- * cgi/escape/escape.c: Optimize CGI.escape performance by C ext
for ASCII-compatible encodings. [Fix GH-1238]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:16 AM Revision 383555fe (git): encoding.h: rb_enc_asciicompat_inline
- * include/ruby/encoding.h (rb_enc_asciicompat): turn into an
inline function to get rid of evalucating the argument twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:54 AM Revision 336fedc1 (git): * 2016-02-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:54 AM Revision 6ec7e30c (git): * common.mk: Introduce two variables (UNICODE_DATA_DIR and
- UNICODE_SRC_DATA_DIR) to eliminate repetitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:14 AM Bug #12048 (Rejected): "Unknown keyword" error when calling function with keyword argument inside parameter
- It's same as
```ruby
def y(b: nil) end
x = {c: 1}
y(x)
```
Keyword arguments are passed as a `Hash`, `x` here.
02/03/2016
-
10:44 PM Bug #4044: Regex matching errors when using \W character class and /i option
- Martin Dürst wrote:
> On 2016/02/03 12:21, matthew@kerwin.net.au wrote:
> ...
Indeed, that's why I asked.
> If it
> ...
Confusion abounds. I thought that if there was a formal spec, at least that would give a solid grounding to s... -
07:31 AM Bug #4044: Regex matching errors when using \W character class and /i option
- On 2016/02/03 12:21, matthew@kerwin.net.au wrote:
> I want to write a spec for this, but some of the details are unclear to me. Can we confirm whether each of the following are spec?
Please don't just assume that the current behav... -
03:21 AM Bug #4044: Regex matching errors when using \W character class and /i option
- I want to write a spec for this, but some of the details are unclear to me. Can we confirm whether each of the following are spec?
~~~Ruby
RUBY_VERSION #=> "2.3.0"
# eszett (case conversion => multiple chars)
/\W/ =~ "\u00DF"... -
09:04 PM Feature #12020: Documenting Ruby memory model
- Thank you, for taking time to read it and for your input. I apologise for delayed answer, I was rather busy lately.
> > ●volatility (V) - A written value is immediately visible to any
> ...
We can definitely consider a different ... -
01:31 PM Bug #12048 (Rejected): "Unknown keyword" error when calling function with keyword argument inside parameter
- Contents of attached file ruby_bug.rb
~~~ruby
def x(a) ; a ; end
def y(*a, b: nil) ; end
y(x(c: 1))
~~~
~~~
$ ruby ruby_bug.rb
ruby_bug.rb:2:in `y': unknown keyword: c (ArgumentError)
from ruby_bug.rb:3:in `<main>'
... -
11:30 AM Bug #11742: lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
- そんなアプリは死んでおけばいいんじゃないですかね^^
互換性をどこまで保つかって難しい判断なわけですが、うーん。
2.1についてはまた後で考えます(そして時間切れで自動的にWONTFIXになる)。 -
11:08 AM Bug #11742: lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
- WEBrick::Utils::TimeoutHandler がモンキーパッチされていたため、Ruby 2.3 にバージョンアップしたら動かなくなったアプリがあった、と、どこかで見た記憶があります。モンキーパッチは基本は当てる人の責任でいいとは思いますが、参考までに。
https://twitter.com/sora_h/status/686921700756160512
-
10:08 AM Revision b7503d03 (git): Remove debug print introduced in r52386
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:59 AM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
- Thank you Ben Miller for providing the script and thanks to you Yui NARUSE for creating the fix!
-
04:52 AM Bug #11946 (Closed): Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
- Applied in changeset r53724.
----------
* string.c (str_new_frozen): if the given string is embeddedable
but not embedded, embed a new copied string. [Bug #11946] -
03:18 AM Bug #11946 (Assigned): Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
- Ben Miller wrote:
> I was able to reduce to a script that doesn't need any gems. I'm using Arch Linux.
This is so helpful!
I identify the issue! -
07:44 AM Bug #12045 (Assigned): Add documentation lib/debug.rb
-
07:40 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/12043-NoMethodError%23private_call-p
-
07:37 AM Revision fc6073bd (git): test_exception.rb: NameError at FCALL
- * test/ruby/test_exception.rb (test_name_error_info): add
assertions for FCALL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:21 AM Revision 6bc6708b (git): vm_eval.c: argument names
- * vm_eval.c (make_no_method_exception): enumerate argument
meanings instead of a magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:44 AM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/12041-NameError%23initialize-recevier
-
05:35 AM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
- Nobuyoshi Nakada wrote:
> or same as `NameError#initialize`?
> ...
This was wrong.
The previous patch is:
> ```ruby
> ...
-
05:10 AM Feature #12042: A better interface that returns a list of local variables available where the exception is raised
- Rename `NameError#local_variables` not to override `Kernel#local_variables`?
Do you have candidates for that name?
-
04:52 AM Revision 040ce056 (git): * string.c (str_new_frozen): if the given string is embeddedable
- but not embedded, embed a new copied string. [Bug #11946]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:18 AM Feature #12047: Set#=== (aliased to include?)
- I think that is ad hoc. Splat could be used, just like with arrays.
~~~Ruby
case my_command
when *GOOD_COMMANDS then puts "Yay!"
when *BAD_COMMANDS then puts "Boo!"
when *ODD_COMMANDS then puts "Whaa?"
end
~~~
And one-time ...