You cannot post messages because only members can post, and you are not currently a member.
Description:
Facets universal is an archive of the facets-universal rubyforge mailing list.
|
|
|
Gem.search
|
| |
Hi, in lib/standard/facets/gem there is the Gem::search extension. What is the correct way to require that, please? vlad
|
|
Interest in a more useful String#titlecase?
|
| |
I've written a custom #titleize for my Rails apps that'd make a good ...grammar rules for capitalizing titles. It also handles Unicode whitespace correctly: it "does a better titleize" do # The basic case "The dog is home".titleize.should == 'The Dog is Home' # Handle Unicode NBSP's "Fishery management".titleize.should == 'Fishery Management' # space... more »
|
|
Symbols as part of Pathname path construction
|
| |
I'd like to be able to do the following: Pathname.root /:usr/:local/:bin => #<Pathname:/usr/local/bin> The most obvious way for me to do this would be to alias Symbol#to_str to Symbol#to_s (in 1.8) and/or Symbol#to_path to Symbol#to_s (1.9). I'd be happy to contribute this extension to Facets.... more »
|
|
deeply "filter" an Hash
|
| |
Hi! Given some nested data in form of a Hash: h = { :a => 1, :b => { :x => 10, :y => 20 }, :c=>3 } I would like to "authorize" only certain part of such data to pass in, in a granular way. authorize = { :a => true, :b => { :x => true... more »
|
|
Float.close?(a, b, epsilon=0.0000001)
|
| |
Comparing two Floats is a general-purpose feature that could be added to Facets. I've implemented it in two projects that I'm working on, and submit it for consideration. Here is my code: class ::Float def Float.close?(a, b, epsilon=0.0000001) a, b = a.to_f, b.to_f if a.zero? or b.zero?... more »
|
|
extending Digest::(MD5|SHA1|...) ?
|
| |
How about extending Digest::MD5 and other message-digest algorithm classes from the std library? Some sugar like this would be really sweet: Digest::MD5::LENGTH #=> 256 Digest::length(:MD5) #=> 256 Digest::MD5.digest('secret', :salt => 'mysalt') The following would auto-generate a random salt of the optimal length... more »
|
|
missing feature? Object#deep_map
|
| |
Hi, Consider a deeply nested structure made up of hashes and arrays, something like: o = { 'a' => C.new, 'b' => C.new, 'c' => [ C.new, C.new, { 'a' => C.new, 'b' => C.new, 'c => { 'a' => C.new, 'b' => [C.new, C.new, C.new]... more »
|
|
Facets 2.9.0.pre.1
|
| |
Just released a pre-release of v2.9.0. $ gem install --pre facets You can read the release history here: [link] Please report any bugs and/or suggestions. Thanks. Note that Facets test suite currently relies on versions of Lemon and QED that haven't been released yet. They will be ready for release in... more »
|
|
New Website -- 2.9 close to release
|
| |
New website went up today, as a precursor to the 2.9 release that's a few of days away. [link] ______________________________ _________________ facets-universal mailing list facets-univer...@rubyforge.org [link]
|
|
Better name for Module#parent?
|
| |
Currently Facets has methods Module#parent and Module#parents. These simply return the module/class name spaces of a module or class, e.g. Test::Unit::TestCase.parent #=> Test::Unit Test::Unit::TestCase.parents #=> [Test, Test::Unit] I do not think that names of these methods really capture their... more »
|
|
|