Activity
From 05/03/2016 to 05/09/2016
05/09/2016
-
09:59 PM Bug #12346 (Closed): Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
-
06:38 PM Bug #12346: Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
- patch from https://bugs.ruby-lang.org/issues/11880 fixes this issue. it's also fixed in ruby_2_3 head.
Ruby 2.3.0:
```
.\sandbox\devkit\mingw\bin\gdb.exe --args .\sandbox\ruby23_mingw\bin\ruby.exe -d -v -e "require 'win32ole'" -e ... -
08:45 PM Bug #12363 (Rejected): URI::Generic.build allows invalid input
- Reproduce:
~~~
require 'uri'
invalid_host = 'ex_ample.com'
invalid_userinfo = 'uuuu:pp/pp'
uri = URI::Generic.new('http', invalid_userinfo, invalid_host, 80, nil, '/', nil, nil, nil)
uri.to_s
#=> "http://uuuu:pp/pp@ex_ample.com... -
08:37 PM Misc #12362 (Rejected): Redmine Forum Board signup
- How do I sign up on Redmine's Forum? I'm asking here, because there are NO instructions on the redmine site. http://www.redmine.org/projects/redmine/boards
Thanks for any assistance you can provide. -
05:26 PM Feature #12361 (Rejected): Proposal: add Geo::Coord class to standard library
- ## Proposal
Add `Geo::Coord` class to Ruby standard library, representing `[latitude, longitude]` pair + convenience methods. Add `Geo` standard library with additional calculations and convenience methods.
## Rationale
In moder... - 04:25 PM Revision fbf22f2d (git): * 2016-05-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:25 PM Revision a6b221f2 (git): random.c: compare by rb_equal
- * random.c (random_equal): compare seeds by rb_equal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 PM Feature #12360 (Rejected): More useful return values from bang methods
- It would be nice if bang methods returned results that where of some additional use. Presently most just return the effected receiver.
For example, currently Array#reject! works as follows:
a = [1,2,3,4]
a.reject!{ |x| x %... -
02:51 PM Bug #12359: Named captures "conflict" warning is unnecessary and limits uses of named captures
- See https://github.com/jruby/jruby/issues/3865 for a related issue in JRuby.
-
02:46 PM Bug #12359 (Closed): Named captures "conflict" warning is unnecessary and limits uses of named captures
- There's currently a warning whenever a named capture in a regular expression has the same name as an already-declared local variable:
```
$ ruby23 -v -e 'x = 1; /(?<x>foo)/ =~ "foo"'
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-... -
02:30 PM Revision bc7a845a (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:39 PM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- Thanks! I'd be happy to maintain ext/openssl.
I have read #5481 and #9612 before, so I know that gemifying ext/openssl is in progress. -
07:39 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- Zachary Scott wrote:
> I'm happy for your help with Ruby's OpenSSL!
> ...
@zzak Could you explain him (or add explanation to README.rd of ruby/openssl) the relation and status between openssl gem and Ruby repo. -
07:32 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- I'm happy for your help with Ruby's OpenSSL!
This is a rather large change, and would like to see it land in the (To Be Released) openssl gem:
https://github.com/ruby/openssl
If you're interested, I can give you commit to the open... -
04:24 AM Bug #12324 (Assigned): Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- I think you become a committer and commit it by yourself. (and maintain it)
-
07:39 AM Bug #12358 (Closed): TestProcess#test_threading_works_after_exec_fail random test failures
- Ruby 2.3.1 builds randomly fail quite often on Fedora Rawhide [1] with following error:
```
1) Error:
TestProcess#test_threading_works_after_exec_fail:
Timeout::Error: execution expired
/builddir/build/BUILD/ruby-2.3.1/test/... -
04:57 AM Bug #9569: SecureRandom should try /dev/urandom first
- I made myself a benchmark:
https://gist.github.com/kernigh/d169895a700c6511d08511c005a28d88
RAND_bytes() from OpenSSL seems to be faster than /dev/urandom on my computer. I'm running OpenBSD, and OpenSSL is really LibreSSL. At first ... -
04:27 AM Revision 8610bd03 (git): random.c: consitify
- * random.c (init_by_array): consitify initializing keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:52 AM Revision ad949e8f (git): random.c: seed conversion
- * random.c (rand_init): random_seed() always returns an Integer,
no conversion for it.
* random.c (random_init, rb_f_srand): convert the given seed to an
Integer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54962 b2dd03c8-39d... -
01:52 AM Revision 639bfd6d (git): thread.c: GET_THREAD once in rb_thread_atfork
- * thread.c (rb_thread_atfork_internal): move th to an argument.
* thread.c (rb_thread_atfork): do not repeat GET_THREAD().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:46 AM Revision a46df859 (git): thread.c: clear atfork functions
- * thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): do
nothing unless working fork is available.
* thread_sync.c (rb_mutex_abandon_all): define only if working
fork is available.
* thread_sync.c (rb_mutex_abandon_keeping_mut... -
12:05 AM Revision e6709f0a (git): openssl/extconf.rb: NO SSL macros first
- * ext/openssl/extconf.rb: check OPENSSL_NO_SSL{2,3} macros before
checking related functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 AM Revision abfc0b18 (git): webrick/utils.rb: suppress messages
- * test/webrick/utils.rb (TestWEBrick#start_server): suppress
progress messages from WEBrick::Utils#create_self_signed_cert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 AM Revision 4a46404a (git): test_ssl_server.rb: assert_self_signed_cert
- * test/webrick/test_ssl_server.rb (assert_self_signed_cert):
extract common assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/08/2016
- 10:20 PM Revision 2cb362b5 (git): * include/ruby/{defines,ruby}.h: need to define function attributes
- alternatives in defines.h instead of ruby.h, because they are used
in oniguruma.h and the header used without including ruby.h at
encoding library sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54956 b2dd03c8-39d4-4d8f-... - 09:31 PM Revision a8e1070d (git): * include/ruby/ruby.h (CONSTFUNC, PUREFUNC): fixed build errors on
- non-gcc build environments introduced at r54952.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:52 PM Revision b3935f17 (git): * gc.c (rb_gc_unprotect_logging): throw rb_memerror when it cannot
- allocate memory. This is pointed out by Facebook's Infer.
* gc.c (gc_prof_setup_new_record): ditto.
* regparse.c (parse_regexp): ditto.
* util.c (MALLOC): use xmalloc and xfree like above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/... - 05:44 PM Revision 6db71fb1 (git): * 2016-05-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:44 PM Revision 28f5e12c (git): * configure.in: check function attirbute const and pure,
- and define CONSTFUNC and PUREFUNC if available.
Note that I don't add those options as default because
it still shows many false-positive (it seems not to consider
longjmp).
* vm_eval.c (stack_check): get rb_thread_t* as an argume... -
02:36 PM Revision 94419c16 (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:10 PM Revision 93767f7a (git): * ext/openssl/extconf.rb: asume it doesn't have SSLv2 related
- functions when OPENSSL_NO_SSL2 is defined.
Usually openssl's header and the library (libssl) have the same
set of functions, but on some environment the library has functions
whose headers doesn't declare. (openssl/opensslconf.h an... -
10:06 AM Feature #12226 (Open): Dir.home with valid named user raises ArgumentError on Windows
-
09:51 AM Feature #12226 (Closed): Dir.home with valid named user raises ArgumentError on Windows
- Applied in changeset r54947.
----------
file.c: home dir fall back
* file.c (rb_home_dir_of): return the default home path if the
user name is the current user name, on platforms where struct
pwd is not supported. a temporary meas... -
09:59 AM Revision 6cd2c905 (git): win32ole_error.h: add attributes
- * ext/win32ole/win32ole_error.h (ole_raise): add attributes,
NORETURN and PRINTF_ARGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:59 AM Revision d7d64d91 (git): objspace_dump.c: fix format
- * ext/objspace/objspace_dump.c (dump_append_string_content),
(dump_object): fix the format specifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:51 AM Revision f0355ae7 (git): file.c: home dir fall back
- * file.c (rb_home_dir_of): return the default home path if the
user name is the current user name, on platforms where struct
pwd is not supported. a temporary measure against
[Bug #12226].
git-svn-id: svn+ssh://ci.ruby-lang.org/r... -
05:52 AM Bug #9569: SecureRandom should try /dev/urandom first
- Daira Hopwood wrote:
> Many competent cryptographers and engineers have told you that using the OpenSSL RNG is significantly less safe than directly using /dev/urandom. They are right. Even better would be to use libsodium's RNG API, wh... -
03:21 AM Revision 65bbd088 (git): intern.h: suppress warnings
- * include/ruby/intern.h (rb_disable_super, rb_enable_super):
remove NORETURN. these do nothing but just return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:31 AM Feature #12357 (Feedback): Random#initialize with a String
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/Random%23initialize-string
Currently `Random#initialize` only accepts an `Integer`.
It would be useful to accept a `String` to feed the seed from external sources, I think. -
12:55 AM Revision f2535e14 (git): * configure.in: add -Wsuggest-attribute=format and suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:55 AM Revision 4e0e7219 (git): * 2016-05-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:55 AM Revision a6c8e8d1 (git): * configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:55 AM Revision 644c36e9 (git): * configure.in: add -Werror=implicit-int to avoid missing type of
- function declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/07/2016
-
01:49 PM Bug #10296 (Closed): SEGV from unchecked Data_Get_Struct() argument
- It doesn't happen with 2.2.5.
-
01:37 PM Revision a6e805f7 (git): * lib/webrick/ssl.rb: Accept string value for SSLCertName. It is used
- to invoke ssl server with command line.
[fix GH-1329] Patch by @kerlin
* test/webrick/test_ssl_server.rb: Added test for GH-1329
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:55 PM Revision d8e22fa1 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:55 PM Revision b39d4eac (git): * test/webrick/test_ssl_server.rb: Added basic test for `webrick/ssl`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:25 PM Feature #12317: Name space of a module
- I realized that the order of modules that I wrote in the expected output is not in accordance with methods like `nesting` or `ancestors` (which go from self to the modules that are farther). So perhaps, the following may be better:
~~... -
07:22 AM Revision ed5b9856 (git): random.c: optimize int_pair_to_real_inclusive
- * random.c (int_pair_to_real_inclusive): optimize to multiply
without Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:21 AM Revision 091d88ab (git): random.c: split random_int32
- * random.c (random_int32): split the cases of rb_random_t and
other objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:59 AM Revision 1a696e35 (git): random.c: unnecessary declarations
- * random.c (random_ulong_limited, random_ulong_limited_big):
remove unnecessary extern declarations. rb_num_negative_p is
declared in internal.h now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54936 b2dd03c8-39d4-4d8f-98ff-8... -
02:53 AM Bug #11652 (Feedback): Bug after running 'next' during binding.pry in a rails project
- I couldn't reproduce this with following env.
```
ruby 2.2.6p320 (2016-04-26 revision 54784) [x86_64-darwin15]
pry (0.10.3)
```
-
02:42 AM Bug #9569: SecureRandom should try /dev/urandom first
- Many competent cryptographers and engineers have told you that using the OpenSSL RNG is significantly less safe than directly using /dev/urandom. They are right. Even better would be to use libsodium's RNG API, which handles portability ...
-
02:29 AM Bug #12286 (Third Party's Issue): Segfault on ruby 2.3.0p0 (2015-12-25 revision 53290) [armv7l-linux-eabihf]
-
12:56 AM Bug #11567 (Feedback): Segmentation fault CFUNC :gets
- I couldn't reproduce this with latest versions of 2.1-2.4.
Please try with 2.2.5 or 2.3.1. -
12:54 AM Bug #11020 (Third Party's Issue): Ruby 2.1.5 crashing when running rails 3.2.21
-
12:36 AM Bug #10607 (Feedback): Segmentation fault, with nokogiri craching ruby
- 2.0.0 is EOL. Please try with 2.2/2.3.
-
12:35 AM Bug #10604 (Feedback): Segmentation fault, Rubymine 6.3.3, Linux xxxx-desktop 3.5.0-51-generic #76-Ubuntu SMP Thu May 15 21:19:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
- 2.0.0 is EOL now. Please try with 2.2 or 2.3.
-
12:21 AM Bug #10390 (Feedback): BUG] Segmentation fault at 0xbf3eeedc
- Can you try with Ruby 2.1.10 or 2.2/2.3?
-
12:03 AM Bug #9683: Segmentation fault when using default proc feature in ruby Hash object
- I tried to following code with latest stable versions.
```rb
a = Hash.new {|h,k| h[k] += 1}
begin; a[1]; rescue SystemStackError; end
a[1]
```
```
ruby 2.1.10p492 (2016-04-22 revision 54691) [x86_64-darwin15.0]
ruby 2.2.6p3...
05/06/2016
-
11:52 PM Bug #9473 (Third Party's Issue): Corruption and Segmentation faults all over
-
11:51 PM Bug #12356 (Rejected): Vector covector incorrect multiplication with another vector.
- Version 2.2.4
v1 = Vector[2,3,4]
v2 = Vector[4,5,6]
v1.covector.row_size #1
v1.covector.column_size #3
v2.covector.row_size #1
v2.covector.column_size #3
Vector does not have distinction between row and column, t... -
11:45 PM Bug #10296: SEGV from unchecked Data_Get_Struct() argument
- It still happens with 2.1.10.
-
10:58 PM Bug #12355 (Closed): [PATCH] exec, system, and spawn fail when Array#to_hash is defined and their first argument is an Array
- Applied in changeset r54934.
----------
process.c: argument types over conversion
* process.c (rb_exec_getargs): honor the expected argument types
over the conversion method. the basic language functionality
should be robust. [ru... -
06:33 PM Bug #12355 (Closed): [PATCH] exec, system, and spawn fail when Array#to_hash is defined and their first argument is an Array
- When any gem which adds a to_hash method to Array is loaded (extlib, dropbox, others), Kernel.exec, Kernel.system, and Kernel.spawn will fail when you specify the program name with an array. Behold:
~~~
irb(main):001:0> ex = "/usr/lo... - 10:58 PM Revision f4edece0 (git): * 2016-05-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:58 PM Revision 48ed6686 (git): process.c: argument types over conversion
- * process.c (rb_exec_getargs): honor the expected argument types
over the conversion method. the basic language functionality
should be robust. [ruby-core:75388] [Bug #12355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54934... -
04:10 PM Feature #12354 (Closed): PKey::EC Can't output public key pem when private key exists
- Steps to reproduce:
Create EC key:
```ruby
key = OpenSSL::PKey::EC.new("prime256v1")
key.generate_key
```
Try and output in pem format
```ruby
key.to_pem #Outputs private key pem
key.public_key.to_pem #Error
```
In o... -
02:30 PM Revision cc22facc (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:08 PM Bug #12342: DRb.stop_service doesn't kill sleeping TimerIdConv threads
- I have opened a pull request to expose an API for killing the timer thread. This PR should be enough to workaround this issue for me, although it would be nice if DRb.start_service could be responsible for creating/starting the timer an...
-
09:26 AM Feature #12242 (Feedback): Is it worth adding collision probability of SecureRandom functions in RubyDoc?
-
07:18 AM Revision c0f92009 (git): random.c: fill_random_bytes_syscall function
- * random.c (fill_random_bytes_syscall): turned into a static
function, to be inlined probably, so that it is unavailable if
it is a preprocessor macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54932 b2dd03c8-39d4-4d8f-98ff-... -
07:18 AM Revision a331eeb5 (git): random.c: refactor
- * random.c (rand_random, rb_f_rand): refactor, split condition
expressions, and return in the precedence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:52 AM Revision 3377db6b (git): random.c: use rb_check_to_int
- * random.c (rand_range, rand_random): use rb_check_to_int instead
of rb_check_to_integer with the same conversion method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:52 AM Revision 0e303494 (git): random.c: prefer rb_check_arity
- * random.c: use rb_check_arity instead of rb_scan_args for simple
optional arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:52 AM Revision c92c8218 (git): random.c: sipseed_keys_t
- * random.c (sipseed): separate type of keys to reduce use of the
magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:29 AM Revision 72c4fc72 (git): random.c: default seed mark
- * random.c (Init_Random_default): since seed is marked by
random_mark, no needs to mark itself as a global variable.
allocate Random instance before making the seed value, to get
rid of the potential risk of GC during the allocatio... -
06:29 AM Revision 80c9b664 (git): random.c: return value is not GCed
- * random.c (rand_init): since seed is the return value, no needs
to be volatile to prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:58 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
- Anyways, given the real-world use-case, I now think it's a good idea to have something that does strip.empty? -equivalent method for String. Maybe shell-related use cases can be migrated to shellwords standard library, like by creating ...
-
04:50 AM Bug #12353 (Feedback): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
- I can't reproduce it.
```
$ gem2.3 install --user --no-doc activesupport
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: activesupport-4.2.6.gem (100%)
Successfully installed activesupport-4.2.6
2 gem... -
02:55 AM Bug #9569: SecureRandom should try /dev/urandom first
- In the meantime until upstream changes are made to SecureRandom, if anyone has come across this thread and is looking for a RubyGem that provides a /dev/urandom-based RNG (and a Windows equivalent), RbNaCl's RandomBytes module wraps libs...
-
01:36 AM Feature #12352 (Assigned): New hash syntax broken for numeric keys
- Matz, do you want numeric keys for new hash syntax?
05/05/2016
-
11:37 PM Bug #12351 (Third Party's Issue): ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)
- upstream repo of minitest is here https://github.com/seattlerb/minitest
Please submit your issue and patch to upstream. -
05:58 PM Bug #12351 (Third Party's Issue): ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)
- An undefined variable in `MiniTest::Unit::Runner::Worker` causes `rake` execution to fail (status code 1) when performing tests. (Test case was running rake with code from https://github.com/blackducksoftware/ohloh_scm).
The cause is ... -
11:16 PM Revision 0c13d23d (git): enum.c: examples of Enumerable#detect [ci skip]
- * enum.c (enum_find): [DOC] add more examples to the documentation
of Enumerable#detect, to show that it equals to Enumerable#find.
[Fix GH-1340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54925 b2dd03c8-39d4-4d8f-98ff-823fe6... -
09:17 PM Bug #12353 (Closed): Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
- Attempting to call `Marshal.dump` on an `ActiveSupport::CoreExtensions::Numeric::Time` (e.g., `1.day`) triggers a ```NoMethodError: undefined method `marshal_dump' for 86400:Fixnum``` exception in both Ruby 2.3.0 and 2.3.1 on OS X (10.11...
-
08:41 PM Bug #12346: Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
- It *could* be something with my registry but it works in Ruby 2.3.0 32-bit, Ruby 2.2.5 64-bit and Ruby 2.2 HEAD 64-bit.
Ruby 2.2 HEAD 64-bit:
```
.\sandbox\devkit\mingw\bin\gdb.exe --args .\sandbox\ruby22_mingw\bin\ruby.exe -d -v ... -
01:21 AM Bug #12346 (Feedback): Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
- I can't reproduce it with the trunk and 2.3.1 on Windows 7.
Probably it is related to the content of your registry.
Could you try building with `-O0` and running from a debugger? -
08:35 PM Feature #12352 (Rejected): New hash syntax broken for numeric keys
- [[Matz himself showed in RubyConf 2015 the following example]](https://www.youtube.com/watch?v=LE0g2TUsJ4U&t=13m04s):
~~~
h = { 1: 2, 2: 4, 3: 6 }
~~~
Which gives
~~~
SyntaxError: unexpected ':', expecting =>
h = { 1: 2, 2: ... -
06:00 PM Feature #12005: Unify Fixnum and Bignum into Integer
- Akira Tanaka wrote:
> Other benefits?
As you show people write Fixnum case and Bignum case.
But sometimes they write only Fixnum even though they must write Bignum case.
Unified Integer avoids such pitfall. -
03:11 AM Feature #12005: Unify Fixnum and Bignum into Integer
- On 2016/05/04 23:54, akr@fsij.org wrote:
> I feel that unifying Fixnum and Bignum is simple and beautiful.
>
> However I'm not sure that there are enough concrete benefits over
> the incompatibility.
> Concrete benefits I know ... -
05:30 PM Bug #12323: Wrong example code in OptionParser documentation
- ruby_2_3 r54924 merged revision(s) 54808.
-
05:30 PM Revision f8e604c6 (git): merge revision(s) 54808: [Backport #12323]
- * lib/optparse.rb: [DOC] fix example code. base on the code by
Semyon Gaivoronskiy in [ruby-core:75224]. [Bug #12323]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:28 PM Bug #11880: blank string makes Win32ole crush
- ruby_2_3 r54923 merged revision(s) 53322,53323.
-
05:28 PM Revision 10685d4f (git): merge revision(s) 53322,53323: [Backport #11880]
- * ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blank
string conversion.
[Bug #11880]
Thanks Akio Tajima for the patch!
string conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... -
05:26 PM Bug #12339: result of 123456789 ** -2 in doc
- ruby_2_3 r54922 merged revision(s) 54898.
-
05:26 PM Bug #12339: result of 123456789 ** -2 in doc
- なるほどその通りでした。指摘ありがとうございます。
-
05:26 PM Revision ac5ffe0a (git): merge revision(s) 54898: [Backport #12339]
- * bignum.c: [DOC] Update result of 123456789 ** -2.
[ruby-dev:49606] [Bug #12339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:00 PM Revision d6c3079e (git): * 2016-05-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:00 PM Revision e1ce20cf (git): random.c: use uint32_t
- * random.c (struct MT, next_state): use uint32_t for the state
vector.
* random.c (init_by_array, rand_init): ditto for initializing
keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:46 PM Feature #12350: Introduce Array#find! that raises an error if element not found
- You can pass a callable object to `Enumerable#find`:
~~~ruby
def find_price!(size)
prices.find(->{ fail "Price for #{size} not found" }){ |p| p.key == size }
end
~~~ -
02:25 PM Feature #12350: Introduce Array#find! that raises an error if element not found
- Victor Shepelev wrote:
> > Could you elaborate what is bad in your example? Basically I don't see anything bad in your code except a little bit verbose like in mine solution.
> ...
I don't think it makes a sense, however, you can use `... -
02:05 PM Feature #12350: Introduce Array#find! that raises an error if element not found
- > Could you elaborate what is bad in your example? Basically I don't see anything bad in your code except a little bit verbose like in mine solution.
I don't know! The most popular and widely accepted Ruby Style Guide just bans them: ... -
01:30 PM Feature #12350: Introduce Array#find! that raises an error if element not found
- Victor Shepelev wrote:
> I'm pretty unhappy that community/style guidelines are banning the straightforward and readable solution:
> ...
I'm not aware about the banning. Could you elaborate what is bad in your example? Basically I don'... -
11:35 AM Feature #12350: Introduce Array#find! that raises an error if element not found
- I'm pretty unhappy that community/style guidelines are banning the straightforward and readable solution:
~~~ruby
prices.find { |p| p.key == size } or fail "Price for #{size} not found"
~~~ -
11:22 AM Feature #12350 (Open): Introduce Array#find! that raises an error if element not found
- It would be great to have some function (like `Hash#fetch`) for `Array` that raises an exception if element not found by passed block in `find`.
For example:
~~~
[].find! { |el| el == 1 }
=> ElementError: element not found
~~~
... -
10:04 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- I made v2 of the patch:
https://github.com/ruby/ruby/compare/trunk...rhenium:feature/openssl-110-v2
Changes:
- Re-ordered commits in more meaningful order (and squashed some small commits).
I'm so sorry if you already sta... -
03:04 AM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- It's because X25519 is an algorithm for key exchange. Ed25519, the corresponding (sharing the elliptic curve) signature scheme, is not yet implemented in OpenSSL. There are tickets but it looks like nobody is working on it at the moment....
-
09:06 AM Revision a22221ca (git): * test/ruby/test_complexrational.rb: Remove duplicated raise.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:27 AM Revision 6112b290 (git): proc.c: no temporary args array
- * proc.c (bmcall): method proc is always lambda, args is the array
which is made from argc and argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:18 AM Revision cfc29cf2 (git): proc.c: no unnecessary temporary array
- * proc.c (bmcall): get rid of making temporary single element
array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:11 AM Revision 5c19519e (git): proc.c: suppress a warning
- * proc.c (call_method_data_safe): suppress clobbered warning by
old gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:39 AM Revision deca1d80 (git): * string.c (rb_str_sub): Fix a special match variable name.
- [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:45 AM Bug #11043 (Rejected): .rvm/gems/ruby-2.1.1/gems/json-1.8.2/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
- Kamal Ahmed wrote:
> ```
> ...
This means that you loaded an extension library for ruby 1.8 or earlier.
Purge and reinstall that json gem. -
02:52 AM Bug #11043 (Feedback): .rvm/gems/ruby-2.1.1/gems/json-1.8.2/lib/json/common.rb:67: [BUG] unknown type 0x22 (0xc given)
- I couldn't reproduce this with `ruby 2.1.10p492 (2016-04-22 revision 54691) [x86_64-darwin15.0]`
Please try with 2.1.10 or latest stable versions like 2.2 or 2.3 -
03:22 AM Revision 84f94652 (git): use TH_JUMP_TAG
- * vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the
same rb_thread_t used for TH_PUSH_TAG, instead of JUMP_TAG with
the current thread global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54914 b2dd03c8-3... -
02:49 AM Bug #9933 (Feedback): segmentation fault when running 'gem' (ruby 2.1.2p95)
- Please try with Ruby 2.1.10 or latest version of 2.2 and 2.3.
-
02:48 AM Bug #9679 (Third Party's Issue): /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/util/diff.rb:129: [BUG] Segmentation fault
- Ruby 1.9.3 is EOL now. and It's vendor's ruby provided Chef Software, Inc. Please report to Chef Software.
-
02:45 AM Bug #11135 (Third Party's Issue): [BUG] Segmentation fault at 0x000000000000b0
- I couldn't reproduce this with `ruby 2.4.0dev (2016-05-03 trunk 54898) [x86_64-darwin15]`
If you still have this issue, Please submit issue to upstream repository. ref. https://github.com/rubygems/rubygems - 01:49 AM Revision 77421bcc (git): * 2016-05-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:49 AM Revision 4a066896 (git): random.c: use arc4random_buf
- * random.c (fill_random_bytes_syscall): use arc4random_buf if
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/04/2016
-
10:43 PM Bug #12349 (Closed): Can't load OpenStruct with Syck with Ruby 2.3.x
- This is the same kind of problem that happened with Psych here: https://bugs.ruby-lang.org/issues/11884
When trying to load an OpenStruct object using Syck, the @table instance variable is nil, making the has_key? method fail in respo... -
10:00 PM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- Please see gist: https://gist.github.com/mcr/73e10792abd529c5f53562ed275b7c1b
(I could remove the rake/rails stuff around it if you like)
with X25519 selected as the curve, I get: -
09:17 PM Bug #12324: Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
- I tried your git tree, at: commit 7085ed6411718538c0f47f8281b9089d21d4426d
I did have openssl-pre5 installed, which failed, and I installed from openssl master and rebuilt ruby again, did an rvm mount on the results, and I got: -
09:51 PM Bug #12348 (Closed): PKey::EC.public_key returns EC::Point
- It appears that the EC subclass returns something isn't recognized as a public key (not a subclass of OpenSSL::PKey::PKey) when asked for its' public_key:
-
03:35 PM Bug #9569: SecureRandom should try /dev/urandom first
- I think switching OpenSSL to getrandom() is possible if the performance is acceptable.
The man page for getrandom(),
http://man7.org/linux/man-pages/man2/getrandom.2.html
doesn't discourage non-seed cryptgraphic purposes.
OpenBSD's... -
01:32 PM Bug #9569: SecureRandom should try /dev/urandom first
- > Delan Azabani wrote:
>> Changing the order of `SecureRandom.gen_random` should be enough to fix this bug, but I would also suggest adding `arc4random(3)` or `getentropy(2)` to the collection of system calls tried by `fill_random_byte... -
02:21 AM Bug #9569: SecureRandom should try /dev/urandom first
- Delan Azabani wrote:
> Changing the order of `SecureRandom.gen_random` should be enough to fix this bug, but I would also suggest adding `arc4random(3)` or `getentropy(2)` to the collection of system calls tried by `fill_random_bytes_sy... -
02:07 AM Bug #9569: SecureRandom should try /dev/urandom first
- For anyone reading this thread after me:
* `SecureRandom.gen_random` calls `OpenSSL::Random.random_bytes` before falling back on `Random.raw_seed` [1]
* `Random.raw_seed` calls `fill_random_bytes` [2]
* `fill_random_bytes` calls `fi... -
01:44 AM Bug #9569: SecureRandom should try /dev/urandom first
- Chris MacNaughton wrote:
> Eric Wong wrote:
> ...
And on that bug, the speed issue was mentioned, too, like at https://bugs.ruby-lang.org/issues/9569#note-21.
So I see several ways forward for this:
1) Get OpenSSL to fix it. It w... -
12:53 AM Bug #9569: SecureRandom should try /dev/urandom first
- Eric Wong wrote:
> Has anybody here brought up the issue to the OpenSSL team to get
> ...
Yes: https://github.com/openssl/openssl/issues/898
-
12:41 AM Bug #9569: SecureRandom should try /dev/urandom first
- Has anybody here brought up the issue to the OpenSSL team to get
OpenSSL fixed?
Fixing OpenSSL would benefit far more people than just working
around the problem in Ruby.
I'm definitely no expert on RNGs, but when I encounter bu... -
02:54 PM Feature #12005: Unify Fixnum and Bignum into Integer
- I feel that unifying Fixnum and Bignum is simple and beautiful.
However I'm not sure that there are enough concrete benefits over
the incompatibility.
For example, when I made the patch, I need to fix complex.c and
ext/json becau... -
02:12 PM Revision 903161e0 (git): numeric.c: Remove prototype declarations to internal.h
- * numeric.c (fix_plus): Remove rb_nucomp_add prototype
declaration.
* numeric.c (fix_mul): Remove rb_nucomp_mul prototype
declaration.
* internal.h (rb_nucomp_add, rb_nucomp_mul): add prototype
declarations.
git-svn-id: svn+ssh:... -
10:10 AM Revision 09550d14 (git): proc.c: separate rb_method_call_with_block
- * proc.c (rb_method_call_with_block): separate the cases with and
without tag for optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:10 AM Revision 759773bf (git): proc.c: passed_block
- * proc.c (passed_block): extract conversion from passed proc value
to rb_block_t pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:10 AM Revision c8932036 (git): proc.c: constify
- * proc.c (method_callable_method_entry): constify data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 AM Revision 02377a3a (git): * lib/net/http/header.rb: [DOC] add documentation that
- Net::HTTPHeader#{each_header,each_name,each_capitalized_name,
each_value,each_capitalized} without block returns an enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 AM Revision 6da22141 (git): * lib/net/http/header.rb (Net::HTTPHeader#{each_header,each_name,
- each_capitalized_name,each_value,each_capitalized}): Return
sized enumerators.
* test/net/http/test_httpheader.rb: add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 AM Revision 803177b3 (git): * test/net/http/test_httpheader.rb: add missing test of
- Net::HTTPHeader#each_capitalized_name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:07 AM Revision 60287eab (git): * lib/set.rb: [DOC] add documentation that Set#{delete_if,keep_if,collect!,reject!,select!,
- classify,divide} without block returns an enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:06 AM Revision 80ccb8e8 (git): * lib/set.rb (Set#{delete_if,keep_if,collect!,reject!,select!,classify,divide},
- SortedSet#{delete_if,keep_if}): Return sized enumerators.
* test/test_set.rb: add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:06 AM Revision c8ca4897 (git): * 2016-05-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:06 AM Revision 315a136e (git): * test/test_set.rb: add missing test of Set#select!.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:57 AM Bug #12344 (Rejected): check_funcall_respond_to behavior seems incorrect
- It's a common mistake, to define `method_missing` but not `respond_to_missing?`.
-
06:35 AM Bug #12339: result of 123456789 ** -2 in doc
- `Bignum#**` からのマージなので、ruby_2_3 以前のブランチでは `rb_big_pow` にあります。
-
04:00 AM Feature #12347 (Closed): [PATCH] Make CSV::Row#each etc. return Enumerator when no block given
- I propose to make following methods return Enumerator when no block given.
* CSV::Row#each
* CSV::Row#delete_if
* CSV::Table#each
* CSV::Table#delete_if
I think that the behavior without block is undefined (and several methods r... -
02:55 AM Bug #12346 (Closed): Ruby 2.3.0 64-bit (mingw64-32) WIN32OLE_TYPE.typelibs seg faults on Windows 10 64-bit
- Ruby Windows binaries are from RubyInstaller.org.
Seg fault also happens with Ruby 2.3.1 using the same 64-bit DevKit.
in the test suite file test/win32ole/test_win32ole_type.rb, there is the test
`test_s_typelibs`:
```ruby
de...
05/03/2016
-
10:19 PM Bug #9569: SecureRandom should try /dev/urandom first
- Let's look at some OpenSSL RNG failures outside the Ruby microcosm:
* https://emboss.github.io/blog/2013/08/21/openssl-prng-is-not-really-fork-safe/
* https://github.com/ramsey/uuid/issues/80
* https://eprint.iacr.org/2016/367
If... -
03:11 PM Bug #9569: SecureRandom should try /dev/urandom first
- Shyouhei Urabe wrote:
> Filippo Valsorda wrote:
> ...
I'm sorry but your statement is completely and utterly false.
Python2's stdlib uses `os.urandom`:
- https://docs.python.org/2/library/random.html
- there's even a big message... -
03:24 AM Bug #9569: SecureRandom should try /dev/urandom first
- Corey Csuhta wrote:
> what the current fallback code is actually doing is simply looking for any device named `/dev/urandom` on the host system
This is considered "not a good way" years ago already in comment #1 (also #5). Read them... -
10:05 PM Bug #12345 (Closed): A module's private constants are given with `Module#constant(false)`
- A module's private constants are given with `Module#constant(false)`.
~~~ruby
module A
X = 1
Y = 2
private_constant :Y
end
module B
Z = 3
W = 4
private_constant :W
end
A.constants # => [:X]
A.constan... -
09:20 PM Bug #12344 (Rejected): check_funcall_respond_to behavior seems incorrect
- Prior to ruby 2.3, and specifically I believe prior to the implementation of this change:
> Thu Aug 20 14:13:27 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
> ...
When a global method_missing was defined, I believe that "`check_funcall_r... -
05:58 PM Bug #12320: Skip SHA from test_digest_constants for LibreSSL 2.3
- ruby_2_3 r54900 merged revision(s) 53718.
-
05:57 PM Revision 0b5e532e (git): merge revision(s) 53718: [Backport #12320]
- Skip SHA from test_digest_constants for LibreSSL 2.3
The first one of ruby/openssl#40
https://github.com/ruby/openssl/issues/40#issuecomment-159839338
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54900 ... -
05:47 PM Bug #12343: Backport r54896, r54897 (fix rb_complex_set_imag())
- ruby_2_3 r54899 merged revision(s) 54896,54897.
-
05:20 PM Bug #12343 (Closed): Backport r54896, r54897 (fix rb_complex_set_imag())
- This ticket is only for backport management for stable branches.
The issue was already fixed on trunk.
r54896 (rb_complex_set_imag()) and r54897 (RCOMPLEX_SET_IMAG()) should be backported into `ruby_2_2` and `ruby_2_3`. -
05:46 PM Revision 15ce6732 (git): merge revision(s) 54896,54897: [Backport #12343]
- * complex.c (rb_complex_set_imag): Fix to properly set imag
of complex.
* internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG
instead of duplicated undef RCOMPLEX_SET_REAL.
git-svn-id: svn+ssh://ci.ruby... -
05:32 PM Bug #12339: result of 123456789 ** -2 in doc
- 該当する部分は r54831 で Fixnum/Bignum メソッドの統合時に書き加えられていて、ruby_2_3 以前のブランチの rdoc 用コメントには存在しませんでした。また 1 ** -2 の例は正しく (1/2) の表記になっていました。
-
02:31 PM Bug #12339 (Closed): result of 123456789 ** -2 in doc - Applied in changeset r54898.
----------
Update result of 123456789 ** -2
* numeric.c: [DOC] Update result of 123456789 ** -2.
[ruby-dev:49606] [Bug #12339] -
05:28 AM Bug #12339 (Assigned): result of 123456789 ** -2 in doc
- 1.9でRationalが組み込みになって動作が変わったはずです。
-
03:20 PM Bug #12342: DRb.stop_service doesn't kill sleeping TimerIdConv threads
- Here is a link to our workaround: https://github.com/ManageIQ/manageiq/pull/8399
-
03:17 PM Bug #12342 (Closed): DRb.stop_service doesn't kill sleeping TimerIdConv threads
- According to this commit[1], it's a good idea for DRb.stop_service to kill threads it creates.
My problem is I have a workflow that creates a new DRb server and provides it a TimerIdConv for keeping drb objects alive until it's not ac... -
02:31 PM Revision 8ef6dacb (git): Update result of 123456789 ** -2
- * numeric.c: [DOC] Update result of 123456789 ** -2.
[ruby-dev:49606] [Bug #12339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:19 PM Bug #11903: [BUG] vm_call_cfunc - cfp consistency error
- I can reproduce in ruby 2.3.1 by lazy loading a sequence in FactoryGirl which has the same name as the attribute it is meant for.
Consider a Car model with a "position" attribute, the following works:
~~~ruby
FactoryGirl.define do... -
02:12 PM Revision 5bc03ef4 (git): * internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG
- instead of duplicated undef RCOMPLEX_SET_REAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:54 PM Revision c949686d (git): * complex.c (rb_complex_set_imag): Fix to properly set imag
- of complex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:20 PM Feature #12336 (Closed): Use -std=gnu99 instead of -std=c99 for GCC
- Applied in changeset r54895.
----------
* configure.in (warnflags): use -std=gnu99 instead of
-std=iso9899:1999. [Feature #12336] -
01:20 PM Revision 03cbafcf (git): * configure.in (warnflags): use -std=gnu99 instead of
- -std=iso9899:1999. [Feature #12336]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:14 PM Revision cdef0bc8 (git): * string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount
- only if it can use SSE 4.2 POPCNT whose latency is 3 cycle.
* internal.h (rb_popcount64): use __builtin_popcountll because now
it is in fast path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54894 b2dd03c8-39d4-4d8f-98ff-823fe6... -
12:36 PM Feature #9999: Type Annotations (Static Type Checking)
- Nobuyoshi Nakada wrote:
> Alexey Babich wrote:
> ...
As I know, currently syntax like
~~~ruby
def B a(...); end
~~~
is not possible and raises smth like
~~~ruby
SyntaxError: (irb):11: syntax error, unexpected '(', expecting... -
11:26 AM Feature #9999: Type Annotations (Static Type Checking)
- Alexey Babich wrote:
> ~~~ruby
> ...
How to know if it doesn't define a method `ReturnType`?
-
09:33 AM Feature #9999: Type Annotations (Static Type Checking)
- **For usage level**:
Static type checking looks most useful as syntax pre-compilation feature to speed-up code execution and
code/syntax verification-before-execution improvements
**For syntax**:
Current syntax (e.g. 2.3*) shows th... -
11:36 AM Bug #12337: inconsistency between Fixnum#coerce and Bignum#coerce
- Akira Tanaka wrote:
> Bignum.coerce(Fixnum) is used to implement fixnum binop bignum.
> ...
Thanks for the clarification.
In the specific case of Fixnum binop Bignum, I expect all Fixnum methods already know about Bignum and do not ca... -
10:07 AM Bug #12337: inconsistency between Fixnum#coerce and Bignum#coerce
- Bignum.coerce(Fixnum) is used to implement fixnum binop bignum.
(binop is binary operator such as +, -, etc.)
x binop y is implemented as follows if x's class doesn't know y's class.
```
u, v = y.coerce(x)
u binop v
```
This... -
09:27 AM Bug #12337: inconsistency between Fixnum#coerce and Bignum#coerce
- I had a question about Bignum#coerce in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/75176.
I think it has limited value to have Bignum.coerce(Fixnum) or Fixnum.coerce(Bignum) return [Bignum, Bignum] instead of just the... -
09:10 AM Bug #12337: inconsistency between Fixnum#coerce and Bignum#coerce
- I made a patch to fix this problem.
This implements bignum.coerce(float) to be [float, float] and
fixnum.coerce(bignum) to be [bignum, bignum].
```
% ./ruby -e '
fixnum = 3
bignum = 2**70
float = 5.0
[fixnum, bignum, floa... -
10:18 AM Feature #12005: Unify Fixnum and Bignum into Integer
- I made a patch to unify Fixnum and Bignum:
unify-fixnum-and-bignum.patch
For rough compatibility, I defined Fixnum and Bignum as Integer.
So, foo.kind_of?(Fixnum) works as foo.kind_of?(Integer).
This works mostly because most appli... -
08:23 AM Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
- Satoru, thank you for the patch.
And you are making good points with the questions you raised.
> * What is the appropriate behavior when calling concat/prepend without argument?
> ...
I agree with this behavior. I think this would... -
08:08 AM Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
- I wrote another patch refined for a problem stated in a previous post.
It behaves like below
~~~
ar = [1]
ar.concat(ar, ar) #=> [1,1,1]
str = "ab"
str.concat(str, str) #=> "ababab"
~~~ -
07:15 AM Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
- I have written a patch.
And, there are some points to ask
* What is the appropriate behavior when calling concat/prepend without argument?
* The code attached now returns just self
* What should happen when writing ar.concat(a... -
05:19 AM Bug #10763 (Closed): do not receive TracePoint event for elsif
- Applied in changeset r54893.
----------
parse.y: trace elsif
* parse.y (new_if_gen): set newline flag to NODE_IF to trace all
if/elsif statements. [ruby-core:67720] [Bug #10763] -
05:19 AM Revision e0611820 (git): parse.y: trace elsif
- * parse.y (new_if_gen): set newline flag to NODE_IF to trace all
if/elsif statements. [ruby-core:67720] [Bug #10763]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:22 AM Revision e0a0c2b8 (git): eval.c: constify
- * eval.c (extract_raise_opts): constify argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e