Sha256: dda3645a02d657b530df85716cc3073c1aacabd70e515ddb8a1ecbf223f19be9
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = URLParameter.rb -- The TaskJuggler III Project Management Software # # Copyright (c) 2006, 2007, 2008, 2009, 2010 by Chris Schlaeger <cs@kde.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'zlib' class TaskJuggler class URLParameter def URLParameter.encode(data) [Zlib::Deflate.deflate(data)].pack('m') end def URLParameter.decode(data) Zlib::Inflate.inflate(data.unpack('m')[0]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskjuggler-0.0.8 | lib/URLParameter.rb |
taskjuggler-0.0.7 | lib/URLParameter.rb |
taskjuggler-0.0.6 | lib/URLParameter.rb |