General

Profile

meta (mathew murphy)

  • Login: meta
  • Email: [email protected]
  • Registered on: 08/18/2009
  • Last sign in: 12/09/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 13 13

Activity

12/09/2016

03:31 PM Ruby Bug #12958: Breaking change in how `#round` works
For the record, I think that the new choice of default is poor.
People have a normal everyday expectation for how numbers are rounded. I claim that the expectation is that >= .5 rounds up, <.5 rounds down.
I cite as evidence:
...
meta (mathew murphy)

01/25/2016

06:49 PM Ruby Misc #12004: Code of Conduct
Jonathan Eyler-Werve wrote:
> If I were moderating this exchange, I think a clear set of guidelines for participation with clear enforcement policies would be useful right now.
Exactly. All discussions of Codes of Conduct eventually ...
meta (mathew murphy)

01/06/2016

04:19 PM Ruby Misc #11960 (Closed): Tiny documentation improvement for URI.escape
This just cropped up on Reddit. A user was confused by URI.escape's behavior, why it was obsolete, and what should be used instead. So, here's a trivial doc patch:
```
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 4c7d112...
meta (mathew murphy)

08/15/2014

10:28 PM Ruby Bug #10132: unpack() ignores default encoding when generating strings, always uses ASCII-8BIT
Now that I read [the documentation on encodings](http://ruby-doc.org/core-2.0/Encoding.html) more carefully, I think the real problem is more fundamental: `__ENCODING__` doesn't determine the encoding of *all* created strings; it only af... meta (mathew murphy)
10:13 PM Ruby Bug #10132: unpack() ignores default encoding when generating strings, always uses ASCII-8BIT
The Ruby documentation says:
M | **String** | quoted printable, MIME encoding (see RFC2045)
And [RFC 2045](http://tools.ietf.org/html/rfc2045) section 6.7 says:
> The Quoted-Printable encoding is intended to represent data th...
meta (mathew murphy)

08/14/2014

06:48 PM Ruby Bug #10132: unpack() ignores default encoding when generating strings, always uses ASCII-8BIT
In case there's confusion because of the strange splits in my examples:
["ünicode"].pack('M*').unpack('M*').first.encoding.name
=> "ASCII-8BIT"
meta (mathew murphy)
06:21 PM Ruby Bug #10132 (Rejected): unpack() ignores default encoding when generating strings, always uses ASCII-8BIT
New strings are generated in the default encoding:
irb> __ENCODING__.name
=> "UTF-8"
irb> "ünicode".encoding.name
=> "UTF-8"
...but not if they're generated by unpack:
irb> "ünicode".split.pack('M*').unpac...
meta (mathew murphy)

03/11/2014

07:34 PM Ruby Feature #2567: Net::HTTP does not handle encoding correctly
This still seems to be a problem in Ruby 2.1.1p76. Data ends up as ASCII-8BIT even if the server specifies that it's UTF-8 or ISO-8859-1, and I end up with errors when writing it out somewhere else as a result. meta (mathew murphy)

03/15/2013

02:27 AM Ruby Bug #8085: Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
Oops! Turns out this is a bug in ruby-build:
https://github.com/sstephenson/ruby-build/issues/325
Sorry.
meta (mathew murphy)

03/14/2013

06:23 AM Ruby Bug #8085 (Third Party's Issue): Debian configure failure because of nonexistent GCC flag -Werror=shorten-64-to-32
Trying to build Ruby 2.0.0 on Debian Stable:
ruby-2.0.0-p0/golf_prelude.c
/tmp/ruby-build.20130313161606.17854/ruby-2.0.0-p0 /tmp/ruby-build.20130313161606.17854 ~
checking build system type... x86_64-unknown-linux-gnu
checking hos...
meta (mathew murphy)

Also available in: Atom