Add lowercase and uppercase alphanumeric generators#47
Add lowercase and uppercase alphanumeric generators#47vinc wants to merge 3 commits intothetron:update/mongoid-4from
Conversation
|
@vinc Thanks for this - I hadn't considered that this might be a use case. The current master branch also resolves the build error you're having on Travis, with your branch. The one thing I will note with your commits is that you transitioned some of the generator methods to I've actually been meaning to migrate some of the other generator methods to the more optimal style. If you don't mind rolling back some of those bigger changes, I'd be more than happy to include your upper and lower alphanumeric token! Thanks again for your contribution! 🍰 |
I wanted to generate lowercase alphanumeric tokens so I modified the Generator module to do that and the same for uppercase. I added
%aand%Aquite arbitrary, maybe there's a better letter.I'm using the mongoid-4 branch and the code contains a new helper function
rand_string_from_charsso my PR is based on this branch instead of master.