#********************************************************************** #* * #* RmThemeGen - a ruby script to create random, usable themes for * #* text editors. Currently supports RubyMine 3.X.X * #* * #* By David Heitzman, 2011 * #* * #********************************************************************** #this is a version of the software that should work with ruby 1.8.7 #originally it was written and tested for ruby 1.9.2 require 'rubygems' require 'color' require 'xmlsimple' require File.dirname(__FILE__)+"/token_list" require File.dirname(__FILE__)+'/rgb_contrast_methods' require File.dirname(__FILE__)+'/rmthemegen_to_css' module RMThemeGen class ThemeGenerator < RMThemeParent attr_reader :xml_save, :themename attr_reader :xmlout #a huge structure of xml that can be given to XmlSimple.xml_out() to create that actual color theme file def initialize @theme_successfully_created = false @iterations = 1 @iterations = ARGV[0].to_s.to_i if ARGV[0] #bold: