The Owasp ESAPI Ruby project
The Owasp ESAPI Ruby is a port for outstanding release quality Owasp ESAPI project to the Ruby programming language.
Ruby is now a famous programming language due to its Rails framework developed by David Heinemeier Hansson (twitter.com/dhh) that simplify the creation of a web application using a convention over configuration approach to simplify programmers' life.
Despite Rails diffusion, there are a lot of Web framework out there that allow people to write web apps in Ruby (merb, sinatra, vintage) [accidentaltechnologist.com/ruby/10-alternative-ruby-web-frameworks/]. Owasp Esapi Ruby wants to bring all Ruby deevelopers a gem full of Secure APIs they can use whatever the framework they choose.
Why supporting only Ruby 1.9.2 and beyond?
The OWASP Esapi Ruby gem will require at least version 1.9.2 of Ruby interpreter to make sure to have full advantages of the newer language APIs.
In particular version 1.9.2 introduces radical changes in the following areas:
Regular expression engine
(to be written)
Unicode support in 1.9.2 is much better and provides better support for character set encoding/decoding
All strings have an additional chunk of info attached: Encoding
String#size takes encoding into account – returns the encoded character count
You can get the raw datasize
Indexed access is by encoded data – characters, not bytes
You can change encoding by force but it doesn’t convert the data
Dates and Time
From “Programming Ruby 1.9”
“As of Ruby 1.9.2, the range of dates that can be represented is no longer limited by the under- lying operating system’s time representation (so there’s no year 2038 problem). As a result, the year passed to the methods gm, local, new, mktime, and utc must now include the century—a year of 90 now represents 90 and not 1990.”
Please see ChangeLog file.
Note on Patches/Pull Requests
Fork the project.
Create documentation with rake yard task
Make your feature addition or bug fix.
Add tests for it. This is important so I don't break it in a future version unintentionally.
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
Send me a pull request. Bonus points for topic branches.
Copyright © 2011 the OWASP Foundation. See LICENSE for details.
- 0.30.0 - March 08, 2011 (39 KB)