Project

oblivion

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby code uglifier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.2.6
~> 6.0
~> 3.9
~> 0.89.1
~> 0.19.0

Runtime

~> 2.7
~> 0.3.0
~> 1.0
~> 0.4.7
 Project Readme

Oblivion

Gem Version ci codecov

Oblivion minimizes and obfuscates Ruby source code by:

  • randomly but consistently renaming private methods, local variables and unexposed instance variables
  • Replacing all whitespace with semicolons

Limitations

At the moment two types of inputs are supported:

The compiled source code will be written to standard output.

Usage

Install the gem

gem install oblivion

Uglify a Ruby file

oblivion ruby my_million_dollar_algorithm.rb > ready_for_publishing.rb

Uglify a DragonRuby game project

oblivion dragonruby ./games/light_souls > ./games/light_souls/app/compiled.rb

This will read your game's app/main.rb prepend all required files in order before compiling the source code.

In the case of the above example you could then move all your old source code out of the project and replace with a app/main.rb containing your compiled output.