General

Profile

rohitpaulk (Paul Kuruvilla)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

03/13/2022

08:43 PM Ruby Revision 840bef0e (git): [rubygems/rubygems] Remove extra closing bracket in version warning
https://github.com/rubygems/rubygems/commit/a3b9f19080 rohitpaulk (Paul Kuruvilla)

01/21/2018

01:21 PM Ruby Bug #14349: Fix Net::HTTP documentation around connection reuse
Makes sense, I've attached a patch that fixes the documentation (generated from https://github.com/ruby/ruby/pull/1794). rohitpaulk (Paul Kuruvilla)

01/10/2018

05:37 PM Ruby Bug #14349: Fix Net::HTTP documentation around connection reuse
> This happens because when start is called without a block and a connection doesn't exist, it proxies to a call with a block.
Oops, this should've read: "When request is called and a connection doesn't exist, it proxies to a `start` ...
rohitpaulk (Paul Kuruvilla)
05:34 PM Ruby Bug #14349 (Closed): Fix Net::HTTP documentation around connection reuse
From [Net::HTTP's docs](http://ruby-doc.org/stdlib-2.5.0/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-How+to+use+Net-3A-3AHTTP):
> ::start immediately creates a connection to an HTTP server which is kept open for the dura...
rohitpaulk (Paul Kuruvilla)

10/24/2017

12:02 PM Ruby Bug #14048 (Closed): Enumerable#sum sometimes assumes objects are `Range`s when they're not
If a class defines the methods `begin` and `end`, Enumerable assumes that it is a `Range` object and tries to access the `exclude_end?` method.
~~~ruby
class NotARange
include Enumerable # Defines the `#sum` method
def each
...
rohitpaulk (Paul Kuruvilla)

10/23/2017

01:13 PM Ruby Feature #14042: IO#puts: use writev if available
> Would it make sense to add a deprecation warning in this case? i.e. If the receiver doesn't accept multiple arguments, we emit a deprecation warning and make 2 calls instead of one. If the receiver accepts multiple arguments, we make a... rohitpaulk (Paul Kuruvilla)
12:24 PM Ruby Feature #14042: IO#puts: use writev if available
> Probably one needs to check that the receiver #write can accept multiple arguments
I think that'd be a good approach to ensure that mocked objects in existing programs don't break.
Would it make sense to add a deprecation warnin...
rohitpaulk (Paul Kuruvilla)
12:07 PM Ruby Feature #14042: IO#puts: use writev if available
Patch updated (attached) to fix the failures mentioned.
There were 10 failures, all within `test/mkmf`. The mocked IO object's `#write` method has been changed to support the interface change in https://bugs.ruby-lang.org/projects/ru...
rohitpaulk (Paul Kuruvilla)

10/22/2017

03:41 PM Ruby Feature #14042 (Closed): IO#puts: use writev if available
Hi,
I've attached a patch to make IO#puts use writev if available. Currently, IO#puts calls `write` twice: Once to write the string, and the second to write a newline (if the string doesn't end with one already). With this patch, tho...
rohitpaulk (Paul Kuruvilla)

10/09/2015

07:12 AM Ruby Feature #11575: Blocks in ERB don't work as intended?
I'm sorry I didn't make myself clear. Whitespace isn't the issue here - look at what's in `$results`.
With Erubis:
```
First call to return_block:
This should be stored in $results, but not sent to output
Second call to r...
rohitpaulk (Paul Kuruvilla)

Also available in: Atom