1 major enhancement
- Added method_missing to Random class, which looks for a method_name.dat file and fetches a random line for you (see docs for details) (Hugh Sasse)
- Added Random.date_between method to get a date between 2 given dates (Paul Barry)
- Added Random.boolean method to get a random true or false (Paul Barry)
- Added Random.number to get a random number less than a number or within a given range (Paul Barry)
- Enhanced Random.date method to handle a Range as well as a Fixnum, which allows you to get a date guaranteed to be in the past (Paul Barry)
- Location sources organized into more understandable categories, for easier future expansion (Hugh Sasse)
- Fixed path of require statements in random_data.rb (Paul Barry)
- Make initial never return nil, because if it returns nil then ContactInfo#email can thrown and error because it tries to call nil. (Paul Barry)
3 comments:
Would be great if you could update the ruby docs for this gem to reflect these enhancements. The docs still seem to reflect the first release, and I needed to use trial and error (and irb) to get the calls right.
Hey Craig, thanks for pointing this out. When I did the last deployment, I forgot to push the rdoc changes up to rubyforge. I just released 1.3.0 which includes all rdoc updates. Sorry for the extra pain and confusion!
-Mike
supra shoes
air max shoes
nike outlet
nike basketball shoes
lebron james shoes
kobe bryant shoes
nike air force
nike shox
nike sb
Post a Comment