README.markdown in safemode-0.0.2 vs README.markdown in safemode-1.0.0

- old
+ new

@@ -9,10 +9,15 @@ anything beyond experiments and playing. That said, please **do** play with it, read and run the unit tests and provide feedback to help make it waterproof and finally suitable for serious purposes. +### Installation + +safemode is available as gem, therefore you can use bundler or gem install to the +tool. The above warning still applies. + ### Usage For manual evaluation of Ruby code and ERB templates see demo.rb You can use the ActionView template handlers by registering them, e.g., in @@ -33,22 +38,22 @@ class User class Jail < Safemode::Jail allow :name end - end - + end + This will allow your template users to access the name method on your User objects. For more details about the concepts behind Safemode please refer to the following blog posts until a more comprehensive writeup is available: * Initial reasoning: [http://www.artweb-design.de/2008/2/5/sexy-theme-templating-with-haml-safemode-finally](http://www.artweb-design.de/2008/2/5/sexy-theme-templating-with-haml-safemode-finally) * Refined concept: [http://www.artweb-design.de/2008/2/17/sending-ruby-to-the-jail-an-attemp-on-a-haml-safemode](http://www.artweb-design.de/2008/2/17/sending-ruby-to-the-jail-an-attemp-on-a-haml-safemode) * ActionView ERB handler: [http://www.artweb-design.de/2008/4/22/an-erb-safemode-handler-for-actionview](http://www.artweb-design.de/2008/4/22/an-erb-safemode-handler-for-actionview) - + ### Dependencies Requires the gems: * RubyParser @@ -62,10 +67,14 @@ ### Credits * Sven Fuchs - Maintainer * Peter Cooper +* Ohad Levy +* Matthias Viehweger -This code and all of the Safemode library's code was initially written by +This code and all of the Safemode library's code was initially written by Sven Fuchs to allow Haml to have a safe mode. It was then modified and re-structured by Peter Cooper and Sven Fuchs to extend the idea to generic Ruby eval situations. + +Thanks to Ohad Levy for gemifying it.