From noreply at rubyforge.org Mon Dec 8 14:23:20 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 8 Dec 2008 14:23:20 -0500 (EST) Subject: [Facets] [ facets-Bugs-23146 ] facets/dictionary broken Message-ID: <20081208192320.AB1E8185859C@rubyforge.org> Bugs item #23146, was opened at 2008-12-08 21:23 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23146&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pavel Valodzka (valodzka) Assigned to: Nobody (None) Summary: facets/dictionary broken Initial Comment: >> require 'facets/dictionary' => true >> Dictionary[1=>3, 2=>4] NoMethodError: undefined method `order' for {1=>3, 2=>4}:Hash from /usr/lib/ruby/gems/1.8/gems/facets-2.5.0/lib/more/facets/dictionary.rb:356:in `replace' from /usr/lib/ruby/gems/1.8/gems/facets-2.5.0/lib/more/facets/dictionary.rb:131:in `[]' from (irb):9 from :0 Problem in method replace, which think that every hash has order method: def replace( hsh2 ) @order = hsh2.order @hash = hsh2.hash end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23146&group_id=804