Activity
From 09/10/2016 to 09/16/2016
09/16/2016
-
11:03 PM Bug #12771 (Closed): Allow setting max memory consumption
- I want to limit a ruby process to 100mb ... if the limit is reached it should run GC
Already tried various RUBY_ settings but nothing seems to have that effect ... I don't want to sprinkle GC.start all over my codebase :( -
10:35 PM Feature #12770: Hash#left_merge
- My feeling is that this won't be accepted (for lack of need and lack of a good name), but if you want to have a chance, you need provide a real use case.
Also your definition doesn't work for `false` values. You example also doesn't s... -
07:13 PM Feature #12770 (Rejected): Hash#left_merge
- I would like a Hash method that does the following:
````ruby
a = {a: 1, b: nil, c: nil, d: nil}
b = {a: 1, b: 2, c: nil}
a.left_merge(b) # => {a: 1, b: 2, c: nil, d: nil}
````
So, it takes the first hash, and for any values th... - 05:44 PM Revision 5b0134aa (git): * 2016-09-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:44 PM Revision 45e8ccde (git): Use JSON lines format for full heap dumps.
- This commit changes full heap dumps back to using JSON lines format
(http://jsonlines.org) so that we can process very large heaps without
loading the entire heap in to memory at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5... -
01:57 PM Feature #12700: regexg heredoc support
- I don't see how %r helps.
Here is an (rather forced) example of the advantage of a /HEREDOC/
~~~ ruby
a = "one"
b = "two"
raise "error" unless a.match(<</REG/x)[1] == b.match(<</REG/x)[1]
(.) # what we want to match
n # wh... -
01:13 PM Bug #12769: Since r56098, compile error in ossl_ssl.c line 639, with old version of fcc on Solaris 10
- Yes, committed as r56173
-
01:11 PM Bug #12769 (Closed): Since r56098, compile error in ossl_ssl.c line 639, with old version of fcc on Solaris 10
- Applied in changeset r56173.
----------
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): Fix compile error
with old version of fcc (Fujitsu C Compiler) on Solaris 10.
[Bug #12769] [ruby-dev:49809] -
01:03 PM Bug #12769: Since r56098, compile error in ossl_ssl.c line 639, with old version of fcc on Solaris 10
- Thanks. Could you commit it?
-
12:56 PM Bug #12769: Since r56098, compile error in ossl_ssl.c line 639, with old version of fcc on Solaris 10
- also reported to https://github.com/ruby/openssl/issues/72
-
12:49 PM Bug #12769 (Closed): Since r56098, compile error in ossl_ssl.c line 639, with old version of fcc on Solaris 10
- Since r56098, build of ext/openssl/ossl_ssl.c failed with the following compile error, with old version of fcc (Fujitsu C Compiler) on Solaris 10.
```
compiling ossl_ssl.c
(snip warnings)
"ossl_ssl.c", line 639: error: initializati... -
01:11 PM Revision 54fa33ea (git): * ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): Fix compile error
- with old version of fcc (Fujitsu C Compiler) on Solaris 10.
[Bug #12769] [ruby-dev:49809]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:29 PM Bug #12767 (Closed): Since r56169, compile error of vsnprintf.c with Oracle Solaris Studio 12.x
- Applied in changeset r56172.
----------
* internal.h (MAYBE_UNUSED): The fallback definition is needed.
Fix compile error with some non-GCC compilers such as
Oracle Solaris Studio 12.3 on Solaris 10.
[Bug #12767] [ruby-dev:49807]
... -
11:52 AM Bug #12767 (Closed): Since r56169, compile error of vsnprintf.c with Oracle Solaris Studio 12.x
- おそらく r56169以降、Solaris 10 上の Oracle Solaris Studio 12.3 では、以下のコンパイルエラーでビルドに失敗します。
```
cc -errtags=yes -xO4 -xtarget=sparc64viiplus -m64 -DRUBY_EXPORT -I/usr/local/64/lib/libffi-3.0.10/include -I/usr/local/64/include -D_XOPEN_SOURCE=... -
12:29 PM Revision 16391af2 (git): * internal.h (MAYBE_UNUSED): The fallback definition is needed.
- Fix compile error with some non-GCC compilers such as
Oracle Solaris Studio 12.3 on Solaris 10.
[Bug #12767] [ruby-dev:49807]
* internal.h (WARN_UNUSED_RESULT): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56172 b2dd03... -
12:20 PM Bug #12768 (Closed): Since r56158, compile error in "hash.c", line 1753, with old fcc on Solaris 10
- Applied in changeset r56171.
----------
* hash.c (each_pair_i_fast): Fix compile error with old version of
fcc on Solaris 10. [Bug #12768] [ruby-dev:49808] -
12:15 PM Bug #12768 (Closed): Since r56158, compile error in "hash.c", line 1753, with old fcc on Solaris 10
- おそらく r56158 以降、Solaris 10上の古い Fujitsu C Compiler (fcc) にて、以下のコンパイルエラーが発生します。
```
fcc -O2 -KV9 -KVIS2 -DRUBY_EXPORT -I/usr/local/64/lib/libffi-3.0.10/include -I/usr/local/64/include -D_XOPEN_SOURCE=500 -I. -I.ext/include/sparc64-s... -
12:20 PM Revision c1dbcf9b (git): * hash.c (each_pair_i_fast): Fix compile error with old version of
- fcc on Solaris 10. [Bug #12768] [ruby-dev:49808]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:52 AM Feature #11195: Add "no_proxy" parameter to Net::HTTP.new
- +1, I'm sure this costs quite a few people in $BIGCORPs som time to work around
Shyouhei Urabe wrote:
> We looked at this issue at yesterday's developer meeting. We agreed this feature is good, but sadly no active mentor was there f... - 10:47 AM Revision a3346934 (git): * win32/Makefile.sub (config.h): fixed compile error with VC introduced
- by previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:41 AM Feature #12744: Add str.reverse_each_char and str.reverse_chars
- Bouke van der Bijl wrote:
> I don't really have a use case for reverse_chars, but I added it for symmetry with the other methods.
Other languages may do that, but Ruby doesn't add something just for symmetry.
> ...
Wouldn't this... -
06:15 AM Revision 2fc5210f (git): * internal.h (WARN_UNUSED_RESULT): moved to configure.in, to
- actually check its availability rather to check GCC's version.
* configure.in (WARN_UNUSED_RESULT): moved to here.
* configure.in (RUBY_FUNC_ATTRIBUTE): change function declaration
to return int rather than vo... -
06:15 AM Revision 921c4776 (git): * ChangeLog (add-log-time-format): Not exactly sure when but
- recently (25.x maybe), emacs changed its API to take optional
two arguments. We have to follow that.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:36 AM Bug #12766 (Closed): Backport r56166 (Don't include bad password in URI exception output)
- バックポート管理用チケットです。
-
03:04 AM Bug #12762: missing links in LEGAL
- The wayback machine idea sounds good.
In addition to that, perhaps for links that may no longer exist, one could mention the year where it last worked or so, just as a rough guide for people who may want to find out when something bec... -
03:01 AM Feature #12760: Optional block argument for `itself`
- > But, to be completely honest, I'm fascinated by how this simple, easy to
> ...
This is not surprising at all because naming things is one of the hardest
things to get "right".
You just have to look at various rubygems that have a ...
09/15/2016
- 09:44 PM Revision f98a2c8f (git): * 2016-09-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:44 PM Revision c2cbd552 (git): Don't include bad password in URI exception output
- We shouldn't include the bad password in the URI exception output
message. Just knowing that there is a bad password is enough
information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:20 PM Bug #12765 (Rejected): An [element] multiply an number, every element in the list would be modified after modifying only one of then.
- Clearly not a bug.
list[0][0] = -1 # => same as doing:
element[0] = -1
For further questions, please use general ruby mailing list or StackOverflow, thanks. -
05:23 PM Bug #12765: An [element] multiply an number, every element in the list would be modified after modifying only one of then.
- `
element = [1]
list = Array.new(3) { element }
p list #[[1], [1], [1]]
list[0][0] = -1 # should be [[-1], [1], [1]]
p list # [[-1], [-1], [-1]]
`
OK, and could you please figure out this one? -
05:09 PM Bug #12765: An [element] multiply an number, every element in the list would be modified after modifying only one of then.
- this is not much of a bug,
your array has three times the same element object (same object id)
you want:
list = Array.new(3) { [1] } #=> [[1], [1], [1]]
list[0][0] = -1
list #=> [[-1], [1], [1]]
-
04:45 PM Bug #12765 (Rejected): An [element] multiply an number, every element in the list would be modified after modifying only one of then.
- `
element = [1]
list = [element.clone] * 3
p list #[[1], [1], [1]]
list[0][0] = -1 # should be [[-1], [1], [1]]
p list # [[-1], [-1], [-1]]
`
The list initialized as [ [1], [1] ]. Then we assign the list[0][0], which is 1, as -1,... -
01:31 PM Bug #12764 (Closed): rubygems with multi default gem problem
- This issue may affect Ruby committers only.
This does not probably affect released ruby.
With development ruby, `make install` many times.
After them, default gems are duplicated when exists updated.
And gem with old version in Gem... -
12:45 PM Bug #12699 (Third Party's Issue): Crash in the VM - maybe garbage collector bug
- This issue have been cross-filed to google-protobuf by Nicolas Noble, original reporter.
https://github.com/google/protobuf/issues/2004
This is fixed by the pull request of google-protobuf.
Looks like GC mark missing, as I see.
htt... -
12:41 PM Revision 7070c5bf (git): * doc/extension.ja.rdoc: Fix file name. [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:03 AM Bug #12762: missing links in LEGAL
- We can also attach wayback machine links such as http://web.archive.org/web/19990429082237/http://www.math.keio.ac.jp/matumoto/emt.html (for random.c の http://www.math.keio.ac.jp/matumoto/emt.html もないようです。).
We can only do this for link... -
05:35 AM Bug #12762: missing links in LEGAL
- In some cases, there may be no way anymore to access the information, but the LEGAL file may still need to document where we got the information from. That means that we may need to keep the dangling links because we have nothing better....
-
09:45 AM Bug #12763 (Closed): Performance regression in bm_securerandom.rb
- Before https://github.com/ruby/ruby/commit/b402cc7
```
total: 2 trial(s) (2 trial(s) for 1 benchmark(s))
..
-----------------------------------------------------------
benchmark results:
Execution time (sec)
name ruby 2.4.0dev (... -
01:28 AM Bug #12761: Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`
- IMHO this is a known bug yet to be fixed.
09/14/2016
-
09:40 PM Feature #12746: class Array: alias .prepend to .unshift ?
- Also `.prepend` sounds more natural than `.unshift` (specialy on Array). But it also implies `.append` which should be aliased to `.push`.
Example :
`[1, 2, 3,].append(4).append(5)` -
09:26 PM Feature #12142: Hash tables with open addressing
- Yui NARUSE wrote:
> Current patches are below branches? (though they have -Wshorten-64-to-32 issue)
> ...
Yes.
I might be unresponsive until next Monday (I am traveling). Sorry, if it happens.
-
06:07 PM Feature #12142: Hash tables with open addressing
- Correct link: https://github.com/funny-falcon/ruby/tree/st_table_with_array2
Also it is attached to this issue as mbox: https://bugs.ruby-lang.org/attachments/download/6131/hash_improvements_and_st_implementation_changes.mbox
I tho... -
11:31 AM Feature #12142: Hash tables with open addressing
- Current patches are below branches? (though they have -Wshorten-64-to-32 issue)
* https://github.com/vnmakarov/ruby/tree/hash_tables_with_open_addressing
* https://github.com/funny-falcon/ruby/tree/funny-falcon:st_table_with_array2
... -
04:03 PM Revision b86fbf25 (git): Add $(srcdir) for lib directory
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:00 PM Revision 55feab65 (git): * 2016-09-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:00 PM Revision 6227b8ec (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:00 PM Revision 2abf1563 (git): * benchmark/: add vnmakarov's benchmarks around hash [ruby-core:75265]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:11 PM Misc #12722: Localizing Ruby
- Thanks! I played a bit with the keywords but I figured out that indeed it's kind of difficult to localize the entire thing (i.e. kernel methods etc) given that the compiler was not built with internationalization in mind (which makes se...
-
02:13 PM Bug #12509: Using qsort_s in mingw-w64 causes failures
- Could you take in the attached patch before 2.4.0 release ?
These keep fail in the current trunk version.
-
01:01 PM Feature #12760: Optional block argument for `itself`
- OK, I did not my homework really well this time.
But, to be completely honest, I'm fascinated by how this simple, easy to implement and useful functionality have drowned for ages in "better-name-ever" discussions. -
10:52 AM Feature #12760: Optional block argument for `itself`
- 
-
10:37 AM Feature #12760: Optional block argument for `itself`
- [Sounds](https://bugs.ruby-lang.org/issues/6373#note-47) [familiar](https://bugs.ruby-lang.org/issues/10095#note-7), if only someone had submitted a [patch](https://bugs.ruby-lang.org/issues/10095#note-8) or written a [gem](http://www.ru...
-
07:39 AM Feature #12760 (Closed): Optional block argument for `itself`
- That's an another attempt to choose good metaphor for `object.(yield self)` (previously: #6721 and ton of duplicates).
In discussion here: https://bugs.ruby-lang.org/issues/11717#note-3 it was said:
> Clearly this is something the ... -
12:57 PM Bug #12521: Syntax for retrieving argument without removing it from double-splat catch-all
- I want this feature.
Keyword argument is safer and more explanatory than splat style.
But I sometimes want to pass whole arguments to other methods.
Example.
CLI gem that uses AWS api and accepts api key, secret key, region, and en... - 12:52 PM Revision 2bbd6f18 (git): * .document: [DOC] add rbconfig. [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:50 PM Bug #12762 (Closed): missing links in LEGAL
- * LEGAL の Oniguruma の節にある URL が以下の3つ全てリンク切れのようです。
* random.c の http://www.math.keio.ac.jp/matumoto/emt.html もないようです。
* ext/win32ole/win32ole.c の http://www.ActiveWare.com もないようです。 -
11:36 AM Bug #12761 (Closed): Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`
- Consider the following code:
~~~ ruby
module M
def original ; puts __callee__ ; end
alias_method :aliased, :original
end
class A
include M
end
A.new.original
#⇒ original
A.... -
03:31 AM Bug #12759 (Closed): Backport r53668 (Fix doc with default value with GH-523)
- バックポート管理用チケットです。
r49129 で Tempfile.new の第1引数が省略可能になった(2.3〜)ことについてのドキュメントの追随です。 -
03:28 AM Bug #12183 (Closed): require "win32ole" すると終了ステータスが必ず 0 になる
- すみません見逃がしてました。
trunk で修正済みなので close します。また2.2 のメンテナ交代にあわせて一応担当者変更しておきます。
09/13/2016
-
11:49 PM Bug #12758: Error when passing Hash construction to function
- This is in FAQ.
Please see http://ruby-doc.org/docs/ruby-doc-bundle/FAQ/FAQ.html#s6 : "6.7 Why can't I pass a hash literal to a method: p {}?"
And you can pass a hash to method without braces when it is last argument.
```
irb(mai... -
05:11 PM Bug #12758 (Rejected): Error when passing Hash construction to function
- I apologize if this is a known issue but I couldn't find it in the search.
If you have a function that can take a Hash, it behaves correctly if you pass a variable that contains the Hash compared to when you pass in a Hash construct... - 10:22 PM Revision 202bbda2 (git): * 2016-09-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:22 PM Revision d51aea54 (git): * hash.c (each_pair_i_fast): use rb_yield_values2 to avoid var args.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:55 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
- Ah - looks like the ReXML docs don't need to change. The round-even mode Ruby uses is still referred to as "round to nearest, ties to even" - https://en.wikipedia.org/wiki/IEEE_floating_point#Roundings_to_nearest
-
05:12 PM Feature #12744: Add str.reverse_each_char and str.reverse_chars
- Shyouhei Urabe wrote:
> I doubt if we can make a reverse_each_char which is faster than reverse.each_char. It ls not always clear where is a boundary between a character and another, especially when scanning backwards. We might end up... -
12:21 AM Feature #12744: Add str.reverse_each_char and str.reverse_chars
- I doubt if we can make a reverse_each_char which is faster than reverse.each_char. It ls not always clear where is a boundary between a character and another, especially when scanning backwards. We might end up scanning whole string fr...
-
03:51 PM Feature #12752: Unpacking a value from a binary requires additional '.first'
- There is more concise way:
length, = str.unpack('C')
You cannot use this in a method chain, though.
I actually understand your frustration, but I feel no difference between `str.unpack('C', 0)` and `str.unpack('C')[0]`.
-... -
12:46 PM Feature #12754: Want to use prepared buffer with `Array#pack`
- `Array#pack` provides `@` for `offset`.
-
12:33 PM Revision 00fcd967 (git): string.c: avoid signed integer overflow
- The behavior on signed integer overflow is undefined. On platform with
sizeof(long)==4, it's fairly easy that 'len + termlen' overflows, where
len is the string length and termlen is the terminator length.
So, prevent the integer overfl... -
12:33 PM Revision 2f551849 (git): Use PRIuSIZE format specifier for size_t values
- Use PRIuSIZE instead of PRIdSIZE. This fixes the exception message shown
on too large xmalloc2. This commit also fixes other incorrect use of
PRIdSIZE in other functions; though most of them are debug print.
* gc.c (heap_extend_pages, g... -
12:28 PM Revision eaba7715 (git): string.c: rename STR_EMBEDABLE_P to STR_EMBEDDABLE_P
- * string.c (STR_EMBEDDABLE_P): Renamed from STR_EMBEDABLE_P(). And use
it in more places.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 PM Revision df1c68b2 (git): README{,.ja}.md: Drop support for BeOS now that Haiku is stable since 2.3.0. [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:26 PM Revision 21edae75 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:26 PM Revision 24afa398 (git): fix unbalanced backquote [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:11 PM Revision 2608f7d9 (git): string.c: STR_EMBEDABLE_P
- * string.c (STR_EMBEDABLE_P): extract the predicate macro to tell
if the given length is capable in an embedded string, and fix
possible integer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56151 b2dd03c8-39d4-4d8f-98... -
09:39 AM Revision d4faa101 (git): * test/ruby/test_exception.rb: fix thread issues.
- * use Queue instead of a local variable for synchronization.
* join created thread to soleve leaking threads warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:12 AM Revision 8a647876 (git): string.c: fix integer overflow
- * string.c (rb_str_change_terminator_length): fix integer overflow
in the case growing the terminator length and the string length
is around LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56149 b2dd03c8-39d4-4d8f-98ff-8... -
07:36 AM Feature #6647: Exceptions raised in threads should be logged
- Responding to 2.4.0-preview2 announcement on ruby-core. I have the opinion that a good default for Thread.report_on_exception is $VERBOSE, with this mapping:
nil - no reporting
false (-W1) - report exception on thread GC which is l... -
07:10 AM Feature #12694: Want a String method to remove heading substr
- Naotoshi Seo wrote:
> Python lstrip http://www.tutorialspoint.com/python/string_lstrip.htm takes character classes as an argument, so providing a substring as an argument will introduce confusion.
"character classes" may be confusi... -
07:08 AM Bug #12757 (Closed): Wrong overflow check in rb_str_set_len() - Applied in changeset r56148.
----------
string.c: fix buffer overflow check condition in rb_str_set_len()
* string.c (rb_str_set_len): The buffer overflow check is wrong. The
space for termlen is allocated outside the capacity return... -
07:05 AM Bug #12757 (Closed): Wrong overflow check in rb_str_set_len()
- string.c:
~~~c
void
rb_str_set_len(VALUE str, long len)
{
long capa;
const int termlen = TERM_LEN(str);
str_modifiable(str);
if (STR_SHARED_P(str)) {
rb_raise(rb_eRuntimeError, "can't set length of sh... -
07:08 AM Revision be3baa43 (git): string.c: fix buffer overflow check condition in rb_str_set_len()
- * string.c (rb_str_set_len): The buffer overflow check is wrong. The
space for termlen is allocated outside the capacity returned by
rb_str_capacity(). This fixes r41920 ("string.c: multi-byte
terminator", 2013-07-11). [ruby-core:... -
05:59 AM Revision b4d0e5a4 (git): openssl: workaround for Ubuntu's patched OpenSSL
- * test/openssl/test_ssl.rb (test_ctx_options): Add a workaround for
patched OpenSSL to fix the Ruby CI failure on Ubuntu 16.04.
http://rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20160913T033003Z.fail.html.gz
This commit is a che...
09/12/2016
-
09:11 PM Misc #12756 (Closed): Increase test coverage and stylistic changes for URI::HTTP
- Hello,
I increase test coverage for URI::HTTP class. Also I added some stylistic changes to code and documentation.
You can find PR in github:
https://github.com/ruby/ruby/pull/1427
Thanks. -
09:04 PM Revision a2879ac2 (git): * common.mk (benchmark): fix lib path.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:58 PM Feature #12744: Add str.reverse_each_char and str.reverse_chars
- Martin Dürst wrote:
> What about using
> ...
I don't really have a use case for reverse_chars, but I added it for symmetry with the other methods. I meant str.reverse_each_char, I typo'd it in the issue but it's correct in the patch. T... -
03:40 PM Feature #12364 (Closed): Copy superclass serial number to singleton subclasses for better IMC hits - Applied in changeset r56144.
----------
Copy the serial number from the super class to the singleton class
This helps hit inline method caches more frequently. Before this
commit:
```
[aaron@TC ruby (trunk)]$ time ./ruby -v benchmark... - 03:40 PM Revision 332723a2 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:40 PM Revision c4c53310 (git): Copy the serial number from the super class to the singleton class
- This helps hit inline method caches more frequently. Before this
commit:
```
[aaron@TC ruby (trunk)]$ time ./ruby -v benchmark/bm_vm2_poly_singleton.rb
ruby 2.4.0dev (2016-09-12 trunk 56141) [x86_64-darwin15]
real 0m3.679s
user 0m3.... - 03:16 PM Revision fd8fa1b2 (git): * 2016-09-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:16 PM Revision 774442d2 (git): * time.c (time_arg): guard for mswin64 CI.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:05 AM Feature #12755 (Open): optimize instruction sequence
- I'd like to propose Ruby to have a infrastructure optimizing its execution.
My implementation and detailed explanation of how it works can be found at
https://github.com/ruby/ruby/pull/1419
I guess, I don't necessarily think that ab... -
06:59 AM Feature #12754 (Closed): Want to use prepared buffer with `Array#pack`
- `Array#pack` always returns new allocated `String`, but sometimes users want to use prepared buffer, especially the packed size is too large.
I often uses `Fiddle` to call OS APIs, and encounter this problem as every time.
I recommend ... -
06:47 AM Feature #12753 (Closed): Useful operator to check bit-flag is true or false
- Ruby's 0 is truthy value. It's useful for many cases, but it's confusing and I made many bugs when I'm writing code to handle binary data, because my thought is almost same with one to write C code in such situation.
```ruby
n = get_... -
06:38 AM Feature #12752 (Closed): Unpacking a value from a binary requires additional '.first'
- When I parsed a binary protocol (msgpack) by `String#unpack`, there are many similar expressions, like below:
```ruby
str = io.read(1)
length = str.unpack('C').first
case length
when 4
data = io.read(4).unpack('N').first
# ...... -
06:38 AM Misc #12751 (Closed): Incompatibility of Ruby 3
- META ticket for Ruby 3's breakages
* Encoding on Windows
* [Feature #12654]
* [Feature #12650] -
06:35 AM Feature #12653 (Assigned): Use wide WinAPI for rb_w32_getcwd
-
05:13 AM Feature #12733: Bundle bundler to ruby core
- Vit Ondruch wrote:
> Not only this, but the test suite also needs connection to internet to succeed. No other test needs this so far and I hope it will stay like that.
There are many parts in Ruby that (would) need connection to th... -
04:50 AM Misc #12750 (Closed): Increase test coverage for URI::MailTo
- Fixed at r56139
-
04:48 AM Revision 94bbe4f0 (git): Added missing references of github and redmine.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:46 AM Revision 5ffc89f6 (git): * 2016-09-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:46 AM Revision 52f9d387 (git): * lib/uri/mailto.rb: Removed needless `return` and use `.`` instead of `::`
- with class method.
* test/uri/test_mailto.rb: Added tests for coverage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:22 AM Bug #12749 (Rejected): 2.4 preview で gem をインストールできません
09/11/2016
-
10:51 PM Bug #12749: 2.4 preview で gem をインストールできません
- Preview はRuby本体だけで、zlibなどは別途用意する事と理解しました。
お手数ですが close にしていただけますか。
-
01:17 PM Bug #12749 (Rejected): 2.4 preview で gem をインストールできません
- gem をインストールしようとするとエラーになります。
zlib が足りないようですが、対処方法がわかりませんでした。
preview はやはり敷居が高いですね。
~~~
> gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.2.8)
did_you_mean (1.0.2)
io-console (default: 0.4.6)
json (defau... -
09:05 PM Feature #12142: Hash tables with open addressing
- > So hypothetically, even
an attacker spends huge CPU time
Why not GPU time? Why not FPGA? It is really not that expensive.
Edit: and there is no real need in exact 64bit match to forge python style open addressing.
> ...
And I t... -
08:50 PM Feature #12142: Hash tables with open addressing
- Yura Sokolov wrote:
> > Still I can make a patch quickly which completely eliminates this issue
> ...
After some thoughts, I believe the security issue (collision
exploitation) we are discussing is not a problem for my implementation.... -
03:54 PM Misc #12750 (Closed): Increase test coverage for URI::MailTo
- Hello,
I increase test coverage for URI::MailTo class. You can find PR in github:
https://github.com/ruby/ruby/pull/1426
Thanks. -
12:33 PM Revision a3af2d1e (git): NEWS: News about Module.used_modules.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:32 PM Revision 8cce00e0 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:34 AM Revision c616a9fa (git): Update URL of Japanese document of net/pop
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:33 AM Revision 07efce07 (git): Use https instead of http in some URLs
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:17 AM Bug #12748 (Closed): irb の評価結果が2回表示されます
- Applied in changeset r56134.
----------
* ChangeLog: added refs. [Bug #12748] [ruby-dev:49786] -
10:02 AM Bug #12748 (Open): irb の評価結果が2回表示されます
-
10:02 AM Bug #12748: irb の評価結果が2回表示されます
- あー、なるほど、バグですね。
これは2.4から入ったコードなので2.3以前で起きないのも納得です。
直しておきます。 -
09:49 AM Bug #12748: irb の評価結果が2回表示されます
- io.c の io_fwrite() に問題があるようです。
この関数内で #ifdef _WIN32 内の、rb_w32_write_console() と、その下の io_binwrite() の両方が呼び出されるために、2回出力されています。
リダイレクトすると片方だけになります。
~~~
> ruby -e 'p 1'
# io_fwrite: rb_w32
handle: 14c ... -
07:59 AM Bug #12748: irb の評価結果が2回表示されます
- あ、ソースをいじってコンパイルが試せるのであれば話が早いかもです。
`win32/win32.c`の`rb_w32_write_console`の中にある、7123行目または7132行目の
`WriteConsleW`が実際の出力処理になります。
そのどっちが呼ばれてるか、またその時引数`ptr`および`len`(または`curlen`)がどうなってるか、
というあたりを観察すると、何かわかるかもしれません。 -
06:42 AM Bug #12748: irb の評価結果が2回表示されます
- 現在の環境で
ruby 2.3.0p0 (2015-12-25 revision 53290) [i386-mingw32]
を常用していますが、この問題は始めてです。
なお、io.c の rb_io_puts() の string: ラベル以降を
~~~
string:
puts("# before");
rb_io_write(out, line);
puts("# end");
~~~
と書き換えたとこ... -
04:44 AM Bug #12748 (Feedback): irb の評価結果が2回表示されます
- 残念ながら、当方の手元(Win7, Win10 / vc10, vc12, vc14 / x86, x64)では再現することができませんでした。
そちらの環境では、例えば過去のバージョンのrubyでは問題はなかったのでしょうか? -
02:22 AM Bug #12748: irb の評価結果が2回表示されます
- irb ではなく、ruby の出力そのものがおかしいようです。
~~~
*****@*****-PC C:\usr\local\bin
> type test.rb
STDOUT.puts 'stdout.hello'
STDERR.puts 'stderr.hello'
*****@*****-PC C:\usr\local... - 10:17 AM Revision 96046868 (git): * ChangeLog: added refs. [Bug #12748] [ruby-dev:49786]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:08 AM Revision 73bbccf4 (git): * 2016-09-11
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:08 AM Revision ee0a79b3 (git): * win32/win32.c (rb_w32_write_console): should set writen length as the
- return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09/10/2016
-
09:54 PM Bug #12748 (Closed): irb の評価結果が2回表示されます
- irbを実行すると次のように評価結果が2回表示されます。
副作用のある呼び出しをしても副作用そのものは1回だけ実行されているので、表示上だけの問題でないかと思います。
作成: Visual Studio 2015 Community
実行: Windows 10 Pro 64bit
~~~
*****@*****-PC C:\usr\local\bin
> irb ... -
08:28 AM Bug #12554 (Rejected): yamlに渡すファイルポインタを自分でcloseしないと動作が変
- そういうときのためにブロック付きメソッドがあるので、次のように書いてください。
open( file , 'w') {|f| YAML.dump(data , f ) } - 08:16 AM Revision d432af3d (git): * 2016-09-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:16 AM Revision c5d707dc (git): extension.rdoc: rb_check_arity [ci skip]
- * doc/extension.rdoc (rb_check_arity): described.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:36 AM Feature #12747 (Closed): Add TracePoint#callee_id
- # Abstract
I propose to add TracePoint#callee_id which returns the called name of the method.
~~~ruby
def m
end
alias am m
TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] #=> [:m, :am]
end.enable do
am
end... -
04:33 AM Feature #12739: deprecate_constant :Fixnum, :Bignum
- I tried [this], found rake defines `Fixnum::MAX` which seems useless, and submitted a [PR] to rake.
But it fails on ruby 2.2 or earlier, due to incompatibility of Bundler 1.13.0.
[this]: https://github.com/ruby/ruby/compare/trunk...n... -
03:46 AM Bug #12130 (Assigned): WEBrick::HTTPProxy closes connection when the socket is not writable temporally
-
02:58 AM Feature #12744 (Feedback): Add str.reverse_each_char and str.reverse_chars
- What about using
`str.reverse.chars` for `string.reverse_chars`?
It allocates some memory, but compared to all the memory allocated for the individual characters, the memory for the overall reversed string is not a big deal. Also, ...