Giter VIP home page Giter VIP logo

oblivion's Introduction

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.

oblivion's People

Contributors

kfischer-okarin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paulas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.