From noreply at rubyforge.org Sun Jan 4 12:32:09 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 4 Jan 2009 12:32:09 -0500 (EST) Subject: [Facets] [ facets-Bugs-23146 ] facets/dictionary broken Message-ID: <20090104173209.ACEC9185859A@rubyforge.org> Bugs item #23146, was opened at 2008-12-08 14: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 ---------------------------------------------------------------------- >Comment By: 7rans (transami) Date: 2009-01-04 12:32 Message: Thanks. I think I've fixed this correctly with: def replace(hsh2) case hsh2 when Hash @order = hsh2.keys @hash = hsh2 else @order = hsh2.order @hash = hsh2.hash end end Look right to others? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23146&group_id=804 From noreply at rubyforge.org Tue Jan 27 07:53:43 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 27 Jan 2009 07:53:43 -0500 (EST) Subject: [Facets] [ facets-Bugs-23712 ] Enumerable#split fails on empty array Message-ID: <20090127125343.D83BD18580FA@rubyforge.org> Bugs item #23712, was opened at 2009-01-27 14:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pavel Valodzka (valodzka) Assigned to: Nobody (None) Summary: Enumerable#split fails on empty array Initial Comment: >> [].split /x/ NoMethodError: undefined method `empty?' for nil:NilClass from c:/ruby/lib/ruby/gems/1.8/gems/facets-2.5.0/lib/core/facets/enumer ble/split.rb:22:in `split' from (irb):2 >> ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 From transfire at gmail.com Tue Jan 27 09:07:45 2009 From: transfire at gmail.com (Trans) Date: Tue, 27 Jan 2009 06:07:45 -0800 (PST) Subject: [Facets] IMPORTANT: Posting through Google Groups Message-ID: To post to this Google Group you may need to first sign-up at: http://rubyforge.org/mailman/listinfo/facets-universal Be sure to use the same email address you plan to use to access the Google Group. If you do not wish to receive this list in your email, be sure to turn off that delivery option in your settings. From noreply at rubyforge.org Tue Jan 27 09:36:59 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 27 Jan 2009 09:36:59 -0500 (EST) Subject: [Facets] [ facets-Bugs-23712 ] Enumerable#split fails on empty array Message-ID: <20090127143659.D600C18580FA@rubyforge.org> Bugs item #23712, was opened at 2009-01-27 07:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pavel Valodzka (valodzka) Assigned to: Nobody (None) Summary: Enumerable#split fails on empty array Initial Comment: >> [].split /x/ NoMethodError: undefined method `empty?' for nil:NilClass from c:/ruby/lib/ruby/gems/1.8/gems/facets-2.5.0/lib/core/facets/enumer ble/split.rb:22:in `split' from (irb):2 >> ---------------------------------------------------------------------- >Comment By: 7rans (transami) Date: 2009-01-27 09:36 Message: This has been fixed. Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 From noreply at rubyforge.org Tue Jan 27 09:37:12 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 27 Jan 2009 09:37:12 -0500 (EST) Subject: [Facets] [ facets-Bugs-23712 ] Enumerable#split fails on empty array Message-ID: <20090127143712.C1C7718580FA@rubyforge.org> Bugs item #23712, was opened at 2009-01-27 07:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Pavel Valodzka (valodzka) Assigned to: Nobody (None) Summary: Enumerable#split fails on empty array Initial Comment: >> [].split /x/ NoMethodError: undefined method `empty?' for nil:NilClass from c:/ruby/lib/ruby/gems/1.8/gems/facets-2.5.0/lib/core/facets/enumer ble/split.rb:22:in `split' from (irb):2 >> ---------------------------------------------------------------------- Comment By: 7rans (transami) Date: 2009-01-27 09:36 Message: This has been fixed. Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23712&group_id=804 From noreply at rubyforge.org Wed Jan 28 10:05:45 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Jan 2009 10:05:45 -0500 (EST) Subject: [Facets] [ facets-Bugs-23727 ] Hash.collate corrupts the receiver Message-ID: <20090128150545.5B0F318580EE@rubyforge.org> Bugs item #23727, was opened at 2009-01-28 10:05 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23727&group_id=804 Category: Code Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Hash.collate corrupts the receiver Initial Comment: h1 = {"a"=>1, "b"=>[2, 6, 7], "c"=>[3, 4, 5]} h2 = {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} h1.collate h2 => {"a"=>[1, 10, 11], "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} # now both hashes h1 and h2 should be as they were before.. # ... because we didn't use collate! # # but instead we find h1 is corrupted.. h1 => {"a"=>1, "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} ^^^^^^^^^^^^ ^^^^^ !!!!!!!!!!!! !!!!! # h2 is intact: h2 => {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23727&group_id=804 From noreply at rubyforge.org Wed Jan 28 10:19:21 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Jan 2009 10:19:21 -0500 (EST) Subject: [Facets] [ facets-Bugs-23729 ] Hash.collate corrupts the receiver (UPDATED , includes FIX) Message-ID: <20090128151921.888D418580EA@rubyforge.org> Bugs item #23729, was opened at 2009-01-28 10:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Hash.collate corrupts the receiver (UPDATED , includes FIX) Initial Comment: # REPORTER: Tilo Sloboda h1 = {"a"=>1, "b"=>[2, 6, 7], "c"=>[3, 4, 5]} h2 = {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} h1.collate h2 => {"a"=>[1, 10, 11], "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} # now both hashes h1 and h2 should be as they were before.. # ... because we didn't use collate! # # but instead we find h1 is corrupted.. h1 => {"a"=>1, "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} ^^^^^^^^^^^^ ^^^^^ !!!!!!!!!!!! !!!!! -------------------------------------------------------------------------- FIX FOLLOWS -------------------------------------------------------------------------- CREDIT: Tilo Sloboda class Hash def collate(other_hash) h = Hash.new # Prepare, ensuring every existing key is already an Array each do |key, value| if value.is_a?(Array) h[key] = value else h[key] = [value] end end # Collate with values from other_hash other_hash.each do |key, value| if h[key] if value.is_a?(Array) h[key].concat( value ) else h[key] << value end elsif value.is_a?(Array) h[key] = value else h[key] = [value] end end #each{ |key, value| value.uniq! } if options[ :uniq ] h end def collate!(other_hash) result = self.collate(other_hash) self.replace(result) end end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 From noreply at rubyforge.org Thu Jan 29 09:27:23 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 29 Jan 2009 09:27:23 -0500 (EST) Subject: [Facets] [ facets-Bugs-23729 ] Hash.collate corrupts the receiver (UPDATED , includes FIX) Message-ID: <20090129142723.618B41779926@rubyforge.org> Bugs item #23729, was opened at 2009-01-28 10:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Hash.collate corrupts the receiver (UPDATED , includes FIX) Initial Comment: # REPORTER: Tilo Sloboda h1 = {"a"=>1, "b"=>[2, 6, 7], "c"=>[3, 4, 5]} h2 = {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} h1.collate h2 => {"a"=>[1, 10, 11], "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} # now both hashes h1 and h2 should be as they were before.. # ... because we didn't use collate! # # but instead we find h1 is corrupted.. h1 => {"a"=>1, "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} ^^^^^^^^^^^^ ^^^^^ !!!!!!!!!!!! !!!!! -------------------------------------------------------------------------- FIX FOLLOWS -------------------------------------------------------------------------- CREDIT: Tilo Sloboda class Hash def collate(other_hash) h = Hash.new # Prepare, ensuring every existing key is already an Array each do |key, value| if value.is_a?(Array) h[key] = value else h[key] = [value] end end # Collate with values from other_hash other_hash.each do |key, value| if h[key] if value.is_a?(Array) h[key].concat( value ) else h[key] << value end elsif value.is_a?(Array) h[key] = value else h[key] = [value] end end #each{ |key, value| value.uniq! } if options[ :uniq ] h end def collate!(other_hash) result = self.collate(other_hash) self.replace(result) end end ---------------------------------------------------------------------- >Comment By: 7rans (transami) Date: 2009-01-29 09:27 Message: Applied fix. Expect it the next release which will be out very soon. Thanks! ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 From noreply at rubyforge.org Thu Jan 29 09:27:34 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 29 Jan 2009 09:27:34 -0500 (EST) Subject: [Facets] [ facets-Bugs-23729 ] Hash.collate corrupts the receiver (UPDATED , includes FIX) Message-ID: <20090129142734.5F4EB1779926@rubyforge.org> Bugs item #23729, was opened at 2009-01-28 10:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Hash.collate corrupts the receiver (UPDATED , includes FIX) Initial Comment: # REPORTER: Tilo Sloboda h1 = {"a"=>1, "b"=>[2, 6, 7], "c"=>[3, 4, 5]} h2 = {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} h1.collate h2 => {"a"=>[1, 10, 11], "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} # now both hashes h1 and h2 should be as they were before.. # ... because we didn't use collate! # # but instead we find h1 is corrupted.. h1 => {"a"=>1, "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} ^^^^^^^^^^^^ ^^^^^ !!!!!!!!!!!! !!!!! -------------------------------------------------------------------------- FIX FOLLOWS -------------------------------------------------------------------------- CREDIT: Tilo Sloboda class Hash def collate(other_hash) h = Hash.new # Prepare, ensuring every existing key is already an Array each do |key, value| if value.is_a?(Array) h[key] = value else h[key] = [value] end end # Collate with values from other_hash other_hash.each do |key, value| if h[key] if value.is_a?(Array) h[key].concat( value ) else h[key] << value end elsif value.is_a?(Array) h[key] = value else h[key] = [value] end end #each{ |key, value| value.uniq! } if options[ :uniq ] h end def collate!(other_hash) result = self.collate(other_hash) self.replace(result) end end ---------------------------------------------------------------------- Comment By: 7rans (transami) Date: 2009-01-29 09:27 Message: Applied fix. Expect it the next release which will be out very soon. Thanks! ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23729&group_id=804 From noreply at rubyforge.org Thu Jan 29 09:27:43 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 29 Jan 2009 09:27:43 -0500 (EST) Subject: [Facets] [ facets-Bugs-23727 ] Hash.collate corrupts the receiver Message-ID: <20090129142743.8A9071779926@rubyforge.org> Bugs item #23727, was opened at 2009-01-28 10:05 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23727&group_id=804 Category: Code Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Hash.collate corrupts the receiver Initial Comment: h1 = {"a"=>1, "b"=>[2, 6, 7], "c"=>[3, 4, 5]} h2 = {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} h1.collate h2 => {"a"=>[1, 10, 11], "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} # now both hashes h1 and h2 should be as they were before.. # ... because we didn't use collate! # # but instead we find h1 is corrupted.. h1 => {"a"=>1, "b"=>[2, 6, 7, 13, 14, 15], "c"=>[3, 4, 5, 17]} ^^^^^^^^^^^^ ^^^^^ !!!!!!!!!!!! !!!!! # h2 is intact: h2 => {"a"=>[10, 11], "b"=>[13, 14, 15], "c"=>17} ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23727&group_id=804 From noreply at rubyforge.org Sat Jan 31 18:43:52 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 31 Jan 2009 18:43:52 -0500 (EST) Subject: [Facets] [ facets-Bugs-23146 ] facets/dictionary broken Message-ID: <20090131234353.1E9D818580F9@rubyforge.org> Bugs item #23146, was opened at 2008-12-08 14:23 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23146&group_id=804 Category: None Group: None >Status: Closed >Resolution: Accepted 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 ---------------------------------------------------------------------- Comment By: 7rans (transami) Date: 2009-01-04 12:32 Message: Thanks. I think I've fixed this correctly with: def replace(hsh2) case hsh2 when Hash @order = hsh2.keys @hash = hsh2 else @order = hsh2.order @hash = hsh2.hash end end Look right to others? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3169&aid=23146&group_id=804 From transfire at gmail.com Sat Jan 31 19:07:46 2009 From: transfire at gmail.com (Trans) Date: Sat, 31 Jan 2009 16:07:46 -0800 (PST) Subject: [Facets] Upcoming Release Message-ID: Unless something comes up I will most likely release Facets 2.5.1 here in the next week. This is primarily a bug fix release, and mostly for working with 1.9 at that. If anyone has any other issues addressed before the next release, please let me know soon. Thanks, T.