From transfire at gmail.com Mon Nov 2 18:49:26 2009 From: transfire at gmail.com (Trans) Date: Mon, 2 Nov 2009 15:49:26 -0800 (PST) Subject: [Facets] master repository has moved Message-ID: <98abf6b8-fc06-45dd-bc07-84dbf0e00abc@o10g2000yqa.googlegroups.com> If anyone was wondering, I moved the *master* Facets repository from 'trans' to the 'rubyworks' account on github: http://github.com/rubyworks/facets I'm now using my the 'trans' account just for forks to help other's and any experimental crap I may be playing with. All my solid (or at least close to solid) ruby projects are now under 'rubyworks' or 'proutils'. Sorry if that move caused anyone any inconvenience, Trans From tetradice at gmail.com Wed Nov 11 10:25:28 2009 From: tetradice at gmail.com (Dice) Date: Thu, 12 Nov 2009 00:25:28 +0900 Subject: [Facets] Fw: ini file In-Reply-To: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> References: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> Message-ID: <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> I'm sorry for this late reply. Thank you for explaining clearly, Trans. I have understood why ini file support was deprecated. I also think that inifile.rb is good and simple. But, I think that inifile.rb is not simplest. The simplest ini file support which I image is only to convert from a file to simple Hash. It should has only two functions - to parse string and to parse file. INI class is unnecessary. Comment should be ignored simply. In short, the following code is my expection. ini = Ini.parse_file('example.ini') p ini.class # => Hash p ini # => {'Section1' => {'Key1' => 'value1', 'Key2' => 'value2'}} I think that simplest ini file support is universal and good for Ruby Facets even though there is such as inifile. How about the simplest ini file support for Ruby Facets? How do you think whether it is "the most basic/universal addition" or not? If Ruby Facets accepts it, please see my library. Its library is attached this mail. P.S. Thanks for praising my name. -------------------------------- Dice tetradice at gmail.com 2009/10/10 Dice : > Hi Dice, > > You have a cool name, btw. > > On Oct 9, 7:42 am, Dice wrote: >> Hello, my name is Dice. I'm a rubyist in Japan. >> >> I loved ini file support of Ruby Facets because ini file is very >> simple and useful format for configuration. But ini.rb was deprecated >> at Ruby Facets 2.7. Which does the decision depend on importance >> problem, license problem or other problems? >> >> If it is license problem, my ini library on Public Domain can be >> included, instead of deprecated ini.rb? > > I will explain. Facets has gotten very big. At first I thought that > was good. But I realized that it was too big and that made it very > hard to maintain. So I decided to narrow it's focus to extension > methods and the most basic/universal additions only. That's why I > removed 40+ scripts. But just about all the stuff I deprecated I have > made sure is available in another way. It is better this way now b/c > it means Facets is more robust and also the libraries that have been > spun off are more robust too. I know that one of the nice things about > Facets was that you got a lot with a single dependency. That's good, > but only to an extent. It is better to have many dependencies if it > means each gem will be better for it. > > In the case of ini.rb, Tim Pease has a library called inifile (http:// > github.com/TwP/inifile). It is similar to ini.rb, and in fact I have > recently submitted some patches to add a few features it was missing > that ini.rb had. The only thing it lacks is the comment support. So > you may want to look into that. Perhaps your library has features that > you can contribute to inifile? ... yep, that's how having separate > gems allows things to gem better more easily :-) > > Also, I have another INI library that I a have started playing with, > one that handles all variations including comments. Don't have time to > work on it right now though, but if you need better ini support then > inifile maybe we can collaborate. > > ~Trans > -------------- next part -------------- A non-text attachment was scrubbed... Name: ini.rb Type: application/octet-stream Size: 1375 bytes Desc: not available URL: From transfire at gmail.com Wed Nov 11 14:28:27 2009 From: transfire at gmail.com (Trans) Date: Wed, 11 Nov 2009 11:28:27 -0800 (PST) Subject: [Facets] Fw: ini file In-Reply-To: <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> References: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> Message-ID: On Nov 11, 10:25?am, Dice wrote: > I'm sorry for this late reply. Thank you for explaining clearly, Trans. > > I have understood why ini file support was deprecated. I also think > that inifile.rb is good and simple. > > But, I think that inifile.rb is not simplest. The simplest ini file > support which I image is only to convert from a file to simple Hash. > It should has only two functions - to parse string and to parse file. > INI class is unnecessary. Comment should be ignored simply. > > In short, the following code is my expection. > > ? ? ini = Ini.parse_file('example.ini') > ? ? p ini.class # => Hash > ? ? p ini # => {'Section1' => {'Key1' => 'value1', 'Key2' => 'value2'}} > > I think that simplest ini file support is universal and good for Ruby > Facets even though there is such as inifile. > > How about the simplest ini file support for Ruby Facets? How do you > think whether it is "the most basic/universal addition" or not? If > Ruby Facets accepts it, please see my library. Its library is attached > this mail. Nice, I will have a look. After you contacted me last time I has decided to add ini file support back in and was planning just to put the script I had back, at least for time being. Now, I think I will review both libraries and do as you suggest by providing most basic support. I will let you know what I conclude. Thanks. T. From tetradice at gmail.com Fri Nov 13 07:54:07 2009 From: tetradice at gmail.com (Dice) Date: Fri, 13 Nov 2009 04:54:07 -0800 (PST) Subject: [Facets] Fw: ini file In-Reply-To: References: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> Message-ID: > After you contacted me last time I has decided to add ini file support > back in and was planning just to put the script I had back, at least > for time being. > > Now, I think I will review both libraries and do as you suggest by > providing most basic support. I will let you know what I conclude. That is good! Thanks for your consideration to ini file support. -------------------------------- Dice tetradice at gmail.com From tetradice at gmail.com Fri Nov 13 08:12:44 2009 From: tetradice at gmail.com (Dice) Date: Fri, 13 Nov 2009 22:12:44 +0900 Subject: [Facets] ini file support Message-ID: <4a57beea0911130512m65d9d90cw5ce7def3cbb39e74@mail.gmail.com> > After you contacted me last time I has decided to add ini file support > back in and was planning just to put the script I had back, at least > for time being. > > Now, I think I will review both libraries and do as you suggest by > providing most basic support. I will let you know what I conclude. That is good! Thanks for your consideration to ini file support. P.S. Sorry to increase threads. I don't know why, but my replying mail has been accepted by facets-universal. -------------------------------- Dice tetradice at gmail.com From tetradice at gmail.com Fri Nov 13 08:05:35 2009 From: tetradice at gmail.com (Dice) Date: Fri, 13 Nov 2009 22:05:35 +0900 Subject: [Facets] Fw: ini file In-Reply-To: <98162227-4355-491c-be0c-391b50cee53f@u16g2000pru.googlegroups.com> References: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> <98162227-4355-491c-be0c-391b50cee53f@u16g2000pru.googlegroups.com> Message-ID: <4a57beea0911130505h1155674ica2e8532443dd512@mail.gmail.com> > After you contacted me last time I has decided to add ini file support > back in and was planning just to put the script I had back, at least > for time being. > > Now, I think I will review both libraries and do as you suggest by > providing most basic support. I will let you know what I conclude. That is good! Thanks for your consideration to ini file support. -------------------------------- Dice tetradice at gmail.com From tetradice at gmail.com Fri Nov 13 08:00:28 2009 From: tetradice at gmail.com (Dice) Date: Fri, 13 Nov 2009 05:00:28 -0800 (PST) Subject: [Facets] Fw: ini file In-Reply-To: References: <4a57beea0910091629p1474fc8r7eb35463a210e5b@mail.gmail.com> <4a57beea0911110725k5dc4f265t5173f0bf8f52f4d@mail.gmail.com> Message-ID: > After you contacted me last time I has decided to add ini file support > back in and was planning just to put the script I had back, at least > for time being. > > Now, I think I will review both libraries and do as you suggest by > providing most basic support. I will let you know what I conclude. That is good! Thanks for your consideration to ini file support. -------------------------------- Dice tetradice at gmail.com From transfire at gmail.com Sun Nov 15 22:56:46 2009 From: transfire at gmail.com (Trans) Date: Sun, 15 Nov 2009 19:56:46 -0800 (PST) Subject: [Facets] Facets 2.8 released Message-ID: <3acb255c-6d83-4edf-a983-2e52f45cda6b@a21g2000yqc.googlegroups.com> == 2.8.0 / 2009-11-05 Facets 2.8 effectively completes the MORE library clean-up which peaked with the previous 2.7 release. Another eight libraries have been deprecated, a few of them spun-off to separate projects. However, this version also reverts a few of the deprecations made in the last version. These libs will remain in Facets' MORE library for the foreseeable future. This version effectively concludes the MORE library clean-up. Changes: * 6 Libraries Undeprecated: * ini.rb * linkedlist.rb * matcher.rb * memoizer.rb * roman.rb * semaphore.rb * 5 Libraries Deprecated: * fileable.rb (too esoteric) * ioredirect.rb (needs better implementation) * coroutine.rb (because of Fiber) * capsule.rb (may be spun-off) * recorder.rb (may be spun-off) * 3 Libraries Spun-Off and Deprecated: * ansicode.rb ansi * progressbar.rb ansi * logger.rb ansi * Additional Enhancements: * Kernel#extend can now take a block * Fixed kernel#d so it is usable * Added Range#at_rand (thanks to Tyler Rick) * Added Enumerable#map_detect (thanks to Scott Taylor) * String#/ calls File.join * Added String#newlines and String#cleanlines * String#titlecase includes apostrophe in words * BasicObject/BlankSlate is more compliant with 1.9.1 design * Enumerable#count can take multiple items, treats as logical Or * Class#class_extend extends class level, not class_eval * Integer#succ(n) becomes Fixnum#succ(n), succ.rb * Complete rewrite of Inheritor * Shellwords extensions have been reworked * Added String#similarity * Added Levenshtein String#edit_distance method * And other minor improvements (some thanks to ccjr)