ruby-thumbor 2.0.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +0,0 @@
1
- def decrypt_in_thumbor(str)
2
- command = "python -c 'from thumbor.crypto import Cryptor; cr = Cryptor(\"my-security-keymy\"); print cr.decrypt(\"" << str << "\")'"
3
- result = Array.new
4
- IO.popen(command) { |f| result.push(f.gets) }
5
- result = result.join('').strip
6
- JSON.parse(result.gsub('"', "@@@").gsub("'", '"').gsub("@@@", '\\"').gsub('True', 'true').gsub('False', 'false').gsub('None', 'null'))
7
- end