General

Profile

bdimych (Dmitry Bolshakov)

  • Login: bdimych
  • Email: bdimych@narod.ru
  • Registered on: 07/28/2013
  • Last sign in: 12/26/2014

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 8 9

Activity

10/10/2014

10:04 AM Ruby Bug #10362 (Closed): spawn doesn't raise exception on redirection error
~~~
irb(main):002:0*
irb(main):003:0*
irb(main):004:0* system 'cmd', '/c', 'echo', 'aaa'
aaa
=> true
irb(main):005:0>
irb(main):006:0*
irb(main):007:0*
irb(main):008:0* system 'cmd', '/c', 'echo', 'aaa', :out => ['bad/file.txt',...
bdimych (Dmitry Bolshakov)

06/14/2014

12:41 PM Ruby Bug #9944 (Rejected): in ruby for windows in "system" a redirection to append a file works incorrectly
~~~
c:\Users\bdimych>
c:\Users\bdimych>
c:\Users\bdimych>
c:\Users\bdimych>
c:\Users\bdimych>C:\Ruby200\bin\ruby.exe -v
ruby 2.0.0p481 (2014-05-08) [i386-mingw32]
c:\Users\bdimych>
c:\Users\bdimych>
c:\Users\bdimych>
c:\Users...
bdimych (Dmitry Bolshakov)

02/18/2014

10:59 AM Ruby Feature #9527 (Open): make Net::HTTP.get_print not only to $stdout but to an IO as a parameter
e.g.
url = 'http://server/path/large-file.zip'
fh = File.new(File.basename(url), 'wb')
Net::HTTP.get_print(URI(url), fh)
fh.close
imho looks good
bdimych (Dmitry Bolshakov)

01/19/2014

09:33 PM Ruby Bug #9431 (Rejected): In windows ruby IO.write returns count of bytes without count of CR character
C:\Users\bdimych>ruby -e "p IO.write('temp.txt', %Q(123\n)); p File.size('temp.txt')"
4
5
imho it looks unexpected
bdimych (Dmitry Bolshakov)

12/31/2013

06:59 AM Ruby Bug #9327 (Closed): Why FileUtils.rmdir ignores Errno::ENOTEMPTY ?
It catches Errno::ENOTEMPTY and Errno::ENOENT and just does nothing.
Most of other FileUtils methods have option "force" which is false by default
but rmdir behaves as if it is true implicitly.
Imho it looks unexpected.
bdimych (Dmitry Bolshakov)

12/19/2013

12:27 AM Ruby Feature #9260 (Closed): make FileUtils.rm_rf raise on errors
I did have read that "force" flag ignores StandardError,
but it was unexpected for me because of linux's "rm -rf" fails if it can't delete.
"rm --help" says "-f ignore nonexistent files"
Imho it sounds better than just ignore all erro...
bdimych (Dmitry Bolshakov)

09/04/2013

02:50 PM Ruby Feature #8859 (Rejected): Possibility to declare local varibles like "my" in Perl
Hi
I think it would be useful to have an analogue of the "my" keyword in Perl
e.g.
x = 'outer value'
p = Proc.new {
...
many code here
...
my x = 'local value does not affect outer variable'
}
I know I can declare local...
bdimych (Dmitry Bolshakov)

08/03/2013

04:56 AM Ruby Feature #8725 (Feedback): Possibility to get a signal handler without changing it
in Perl
$xxxHandler = $SIG{XXX}
in Ruby it could be
xxxHandler = trap 'XXX'
bdimych (Dmitry Bolshakov)

07/30/2013

11:10 PM Ruby Bug #8708 (Closed): It seems that a call to the "system" changes the handler of the INT signal
this is only on cygwin, on linux all ok
$ uname -a
CYGWIN_NT-5.1 bolshakovxp 1.7.21(0.267/5/3) 2013-07-15 12:17 i686 Cygwin
--- test script ---
#!/usr/bin/ruby
STDOUT.sync = true
puts 'before "system" ctrl-c stops the script ...
bdimych (Dmitry Bolshakov)

Also available in: Atom