Ruby’s structs are one of my favorite data types in Ruby. They help you to keep some defined structure in the dynamic world of Ruby. Often, it makes sense to use them instead of hashes or arrays. Read-only structs take the idea a level further.
- stores your passwords in a file on your disk
- encrypts the file with a master password
- is designed for every-day-use
- is written in
234lines of understandable Ruby code… Read it!
- is tested with 222 Cucumber steps
Rails migrations are easy to understand and easy to write. However, you can save some unnecessary key strokes by applying these three tips :)
Hirb: “A mini view framework for console/irb that’s easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.” now supports unicode in two ways:
│ Support for unicode full-width characters │ Unicode table characters instead of +/- chars │
Many people use irb with wirble. I also did.
I’ve been quite happy with it, but sometimes I noted that some symbols were displayed as : without the symbol name (e.g. in method name arrays) and that the representation of regexes looked quite strange.
This is why I’ve looked at the wirble tokenizer, fixed some bugs, liked it, extended it and created Wirb. These are the improvements:
- Use fancy colors! You can colorize the prompts, irb errors, stderr and stdout
- Output results as Ruby comments
- Enhance your output value using procs
There are many implementations of password managers/safes out there. But lots of them are black boxes, either because they are not open source, or because they have to much features and it gets complicated to understand the source (which is most likely not written in a happy programming language). You don’t know, what really happens with your passwords. So…
Do it yourself!
Do it with Ruby!
Do it in less than 250 lines ;)
.gemspec file of a gem allows to specify requirements for that gem – but usually you do not get to see them. These five lines patch RubyGems, so that
gem displays the requirements of a gem after it has been installed:
The Zucker gem has gotten some new features. Installation is as easy as
gem install zucker