From transfire at gmail.com Tue Jan 1 17:48:38 2008 From: transfire at gmail.com (Trans) Date: Tue, 1 Jan 2008 14:48:38 -0800 (PST) Subject: [Facets] Unable to use facets/string/format In-Reply-To: <1656378a-c6c6-49bf-b900-1ed24320d00b@b40g2000prf.googlegroups.com> References: <47699D78.3050801@hylesanderson.edu> <1656378a-c6c6-49bf-b900-1ed24320d00b@b40g2000prf.googlegroups.com> Message-ID: On Dec 19 2007, 11:16 pm, Trans wrote: > Jack Christensen wrote: > > Even though it says loading facets/string/format works the methods are > > unavailable. > > > irb(main):001:0> require 'facets/string/format' > > => true > > irb(main):002:0> "This is a big long string to be word > > wrapped".word_wrap(10) > > NoMethodError: undefined method `word_wrap' for "This is a big long > > string to be word wrapped":String > > from (irb):2 > > > If I directly load the file it works. > > > irb(main):001:0> require > > 'C:\ruby\lib\ruby\gems\1.8\gems\facets-2.2.0\lib\core\facets\string\format.rb' > > => true > > irb(main):002:0> "This is a big long string to be word > > wrapped".word_wrap(10) > > => "This is a\nbig long\nstring to\nbe word\nwrapped\n" > > > I've tried this on multiple computers and with a fresh install of ruby > > one-click with no change. > > > Am I totally missing something or is there a bug here? > > Thanks for the report. Something is odd b/c for me: > > irb(main):001:0> require 'facets/string/format' > => true > irb(main):002:0> "blah".word_wrap > => "blah\n" > > Ok... I. figured out why. When using RubyGems (I'm using Rolls, btw) > methods/facets/string/format.rb is being loaded instead of core/facets/ > string/format.rb. I have a name clash between a categorically named > require and a per-method require. I thought I had resolved all these, > but now I see that it still arises in certain cases. I'll have to > think about how best to resolve this. > > Thanks again for this report. I'm going to sit down tomorrow and > resolve this once and for all. BTW. I did this in the latest release. I got rid of the lib/methods/ directory and moved everything to lib/core/. So there won't be any more name conflicts. The change is fairly sizeable, so there may a few kinks to iron out from it yet, but there will be no more name conflicts per above. Also note one other important change, Enumerable#collate has changed to Enumerable#mash (or the original alias, #graph), and #collate now means something different. T. From transfire at gmail.com Sat Jan 5 12:01:49 2008 From: transfire at gmail.com (Trans) Date: Sat, 5 Jan 2008 09:01:49 -0800 (PST) Subject: [Facets] Deprecation of some Hash methods Message-ID: In the latest release a few Hash methods have been deprecated from Core that some of you may have been using. Namely #symbolize_keys and #stringify_keys, and the related methods that went along with them (eg. in place versions, a couple of aliases, etc.) I had added these methods to Core for greater interoperability with ActiveSupport, but after lengthy consideration, I feel it is a waste to have so many methods when a single method does the job just as well: Hash#rekey. Unless you have reason to do otherwise, I encourage you to use #rekey instead of any of these other methods. If for some reason you still need/want to use these methods, in the latest release I moved them to a More lib called "hash_keyize.rb". Just load that lib explicitly and you'll have them back. (NOTE: in the very next release I will move that to "hash/keyize.rb" instead). HTH, T. From noreply at rubyforge.org Sat Jan 19 23:34:12 2008 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 19 Jan 2008 23:34:12 -0500 (EST) Subject: [Facets] [ facets-Patches-17243 ] ForwardableChain: a superset of Ruby Core Forwardable enabling chains of delegates Message-ID: <20080120043412.545271858673@rubyforge.org> Patches item #17243, was opened at 2008-01-19 22:34 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3171&aid=17243&group_id=804 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nils Jonsson (njonsson) Assigned to: Nobody (None) Summary: ForwardableChain: a superset of Ruby Core Forwardable enabling chains of delegates Initial Comment: The ForwardableChain module is a superset of the capabilities of Forwardable. It provides delegation of specified methods to a chain of designated objects, using the class method _def_delegator_chain_. This class method becomes available to your module when ForwardableChain is included in your module as in the example below. (Note: *include* rather than _extend_.) Your module will reveal ForwardableChain to be in its type hierarchy (see Module#ancestors), which can be useful for debugging. The pattern implemented by ForwardableChain is useful in creating presenter classes and facade classes whose purpose is to abstract away the complexity of working with graphs of objects. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=3171&aid=17243&group_id=804 From transfire at gmail.com Sat Jan 26 18:05:42 2008 From: transfire at gmail.com (Trans) Date: Sat, 26 Jan 2008 15:05:42 -0800 (PST) Subject: [Facets] Test Message-ID: I received a report that posting wasn't working via the google group, so this is a test. From transfire at gmail.com Mon Jan 28 14:03:18 2008 From: transfire at gmail.com (Trans) Date: Mon, 28 Jan 2008 11:03:18 -0800 (PST) Subject: [Facets] Test In-Reply-To: References: Message-ID: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> If any of you might take a moment and respond to this post, I'd really appreciate it. I'm trying to figure out why some posts aren't getting through. Please specify how you are posting --via Google Group Web interface, via the Google Group email address or via the original Rubyforge address. Thanks, T. From jackc at hylesanderson.edu Mon Jan 28 14:16:49 2008 From: jackc at hylesanderson.edu (Jack Christensen) Date: Mon, 28 Jan 2008 13:16:49 -0600 Subject: [Facets] Test In-Reply-To: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> References: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> Message-ID: <479E2A21.10001@hylesanderson.edu> Trans wrote: > If any of you might take a moment and respond to this post, I'd really > appreciate it. I'm trying to figure out why some posts aren't getting > through. > > Please specify how you are posting --via Google Group Web interface, > via the Google Group email address or via the original Rubyforge > address. > > Thanks, > T. > _______________________________________________ > facets-universal mailing list > facets-universal at rubyforge.org > http://rubyforge.org/mailman/listinfo/facets-universal > > I'm responding via facets-universal at rubyforge.org -- Jack Christensen jackc at hylesanderson.edu From john at oxyliquit.de Mon Jan 28 16:06:09 2008 From: john at oxyliquit.de (Jonathan Buch) Date: Mon, 28 Jan 2008 22:06:09 +0100 Subject: [Facets] Test In-Reply-To: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> References: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> Message-ID: Hi, > If any of you might take a moment and respond to this post, I'd really > appreciate it. I'm trying to figure out why some posts aren't getting > through. > > Please specify how you are posting --via Google Group Web interface, > via the Google Group email address or via the original Rubyforge > address. pong. :) (via facets-universal at rubyforge.org) Jo -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From o.renaud at laposte.net Tue Jan 29 04:46:35 2008 From: o.renaud at laposte.net (Olivier Renaud) Date: Tue, 29 Jan 2008 10:46:35 +0100 Subject: [Facets] Test In-Reply-To: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> References: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> Message-ID: <479EF5FB.6040404@laposte.net> Trans a ?crit : > If any of you might take a moment and respond to this post, I'd really > appreciate it. I'm trying to figure out why some posts aren't getting > through. > > Please specify how you are posting --via Google Group Web interface, > via the Google Group email address or via the original Rubyforge > address. > > Thanks, > T. > _______________________________________________ > facets-universal mailing list > facets-universal at rubyforge.org > http://rubyforge.org/mailman/listinfo/facets-universal > > Hi, I'm replying via the rubyforge address. -- Olivier Renaud From transfire at gmail.com Thu Jan 31 08:12:00 2008 From: transfire at gmail.com (Trans) Date: Thu, 31 Jan 2008 05:12:00 -0800 (PST) Subject: [Facets] Test In-Reply-To: <479EF5FB.6040404@laposte.net> References: <98f45375-050a-43fa-bb98-eec03a000b37@j78g2000hsd.googlegroups.com> <479EF5FB.6040404@laposte.net> Message-ID: Thanks all. It would appear all avenues of communication are open. Not sure why Gavin was having problems. Please let me know if anyone else has problems posting to the list. T.