[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>
I would like to request developers meeting around April 17 or 18 in this mo=
14 messages
2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014
— Urabe Shyouhei <shyouhei@...>
2014/04/03
It's good if we have a meeting then.
[#61826] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/03
Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=
[#61833] Re: Plan Developers Meeting Japan April 2014
— Martin Bo煬et <martin.bosslet@...>
2014/04/03
Hi,
[#61847] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/03
Martin Boテ殕et <martin.bosslet@gmail.com> wrote:
[#61849] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I will post summary of meeting on Google docs after the meeting.
[#61852] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/04
Zachary Scott <e@zzak.io> wrote:
[#61860] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I=E2=80=99m ok with redmine, thanks for bringing up your concern!
[#62076] Candidacy to 2.1 branch maintainer. — Tomoyuki Chikanaga <nagachika00@...>
Hello,
7 messages
2014/04/17
[#62078] Re: Candidacy to 2.1 branch maintainer.
— SHIBATA Hiroshi <shibata.hiroshi@...>
2014/04/17
> And does anyone have counter proposal for 2.1 maintenance?
[ruby-core:61969] [ruby-trunk - Bug #9734] [Open] Rails' HashWithIndifferentAccess is incompatible with Ruby's keyword arguments
From:
vrinek@...
Date:
2014-04-11 15:14:09 UTC
List:
ruby-core #61969
Issue #9734 has been reported by Konstantinos Karachalios.
----------------------------------------
Bug #9734: Rails' HashWithIndifferentAccess is incompatible with Ruby's keyword arguments
https://bugs.ruby-lang.org/issues/9734
* Author: Konstantinos Karachalios
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: 2.1.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Origin: https://github.com/rails/rails/issues/14643
In Ruby it is possible to use a POR Hash in place of keyword arguments, making the transition between using an `options = {}` to keyword arguments easy.
The same is not true for HashWithIndifferentAccess and this makes it difficult to pass the `params` hash directly to methods with keyword arguments.
### Bug test
```ruby
require 'active_support/hash_with_indifferent_access'
require 'minitest/autorun'
def sum(a: 0, b: 0)
a + b
end
class BugTest < MiniTest::Unit::TestCase
def setup
@normal_hash = {a: 18, b: 24} # just a hash
@indiff_hash = ActiveSupport::HashWithIndifferentAccess.new(@normal_hash)
end
def test_ruby_hash
assert_equal 42, sum(@normal_hash)
end
def test_hash_with_indifferent_access
assert_equal 42, sum(@indiff_hash)
end
end
```
### Workaround
```ruby
sum(@indiff_args.symbolize_keys)
```
### VERSIONS
* ruby 2.0.0-p353 & activesupport 4.0.1
* ruby 2.1.0-p0 & activesupport 4.0.3
* ruby 2.1.1-p76 & activesupport 4.0.4, 3.2.17
--
https://bugs.ruby-lang.org/