General

Profile

foonlyboy (Eike Dierks)

  • Registered on: 09/22/2018
  • Last connection: 05/05/2019

Issues

Activity

05/05/2019

08:30 PM Ruby trunk Feature #15829: Object#then_if(condition){}
A more complex example:
``` ruby
scope :blacklisted_at, -> (seller=nil, flag=true) {
then_if(! flag.nil?) {
...
foonlyboy (Eike Dierks)
06:48 PM Ruby trunk Feature #15829: Object#then_if(condition){}
A (somehow contrived) example:
``` ruby
[1,2,3,4,5].map{|n| n.then_if(n.even?){'even'}}
=> [1, "even", 3, "even"...
foonlyboy (Eike Dierks)
06:35 PM Ruby trunk Feature #15829: Object#then_if(condition){}
``` ruby
class Object
def then_if(condition, &block)
if condition
self.then(&block)
else
...
foonlyboy (Eike Dierks)
06:26 PM Ruby trunk Feature #15829 (Open): Object#then_if(condition){}
I'd like to propose some sugar to Object#then
There should be `Object#then_if(condition, &block)`

The block sh...
foonlyboy (Eike Dierks)

03/15/2019

01:41 AM Ruby trunk Feature #15668 (Open): stdlib: Date - Time should return the difference in days
Hi at the ruby/stdlib,
Computing with times and dates is very complicated.
There are so many pitfalls lurking the...
foonlyboy (Eike Dierks)

12/27/2018

09:58 PM Ruby trunk Misc #15474 (Rejected): Running Rails with jit
I have installed ruby-2.6.0
I want to try to run my rails app with the jit.
How can this be done?
I should try e...
foonlyboy (Eike Dierks)

12/15/2018

06:43 PM Ruby trunk Misc #15418 (Open): Date.parse('2018')
Date.parse('2018')
ArgumentError: invalid date
I did expect that to return the same as:
Date.parse('2018-1-1')
...
foonlyboy (Eike Dierks)

11/29/2018

01:08 AM Ruby trunk Feature #14244: Better error messages for scripts with non-matching end statements
I fully agree with Martin that this is one of the most annoying problems.
I used ruby -w on my failing file and it...
foonlyboy (Eike Dierks)

10/12/2018

06:44 PM Ruby trunk Bug #15210: UTF-8 BOM should be removed from String in internal representation
I looked into it a bit more closely into it:
io.c does this in
~~~ c
static int
io_strip_bom(VALUE io)
~~~
wh...
foonlyboy (Eike Dierks)

10/06/2018

06:47 PM Ruby trunk Bug #15210 (Open): UTF-8 BOM should be removed from String in internal representation
Hi everyone working on the ruby trunk,
I encountered a problem with a BOM (Byte Order Mark) at the front of UTF-8...
foonlyboy (Eike Dierks)

Also available in: Atom