lib/storazzo.rb in storazzo-0.0.6 vs lib/storazzo.rb in storazzo-0.1.1

- old
+ new

@@ -1,43 +1,30 @@ -# copied from https://guides.rubygems.org/make-your-own-gem/#introduction +# Inspired from https://guides.rubygems.org/make-your-own-gem/#introduction -#require 'storazzo/colors' -module StorazzoMod - VERSION = File.read('./VERSION').chomp # "10.0.0" +module Storazzo + #VERSION = File.read('./VERSION').chomp # "10.0.0" #require 'storazzo/translator' - def latest_version + def latest_parser_version "1.2" end -end -class Storazzo - require 'storazzo/colors' - - # version 1.2 - def self.hi - puts "Hello from Storazzo v#{StorazzoMod::VERSION rescue :ERROR}!" + # Finds RAILS_ROOT for Storazzo Gem. Copied from: + # https://stackoverflow.com/questions/10132949/finding-the-gem-root + def self.root + File.expand_path '../..', __FILE__ end - def self.all_tests - # include vs extend: https://stackoverflow.com/questions/15097929/ruby-module-require-and-include - # => http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/ - #include Storazzo::Colors - extend Storazzo::Colors - - pwhite "All tests BEGIN" - deb "Maybe debug is enabled?" - #puts "This is Storazzo v#{StorazzoMod::VERSION}" - hi - # This works with EXTEND.. - puts(yellow "Just YELLOW 0") - # This reqwuires a INCLUDE. - #puts(Storazzo::Colors.yellow "Test YELLOW 1 self") - #puts(Colors.yellow "Test YELLOW 1 self") - #puts(Colors.green "Test YELLOW 2 ohne self") - pwhite "All tests END" - #puts "All tests END" + def self.version + File.read('./VERSION').chomp # "10.0.0" end - end +end +require 'storazzo/colors' +require 'storazzo/hashify' +require 'storazzo/ric_disk' +require 'storazzo/main' require 'storazzo/translator' + +puts Storazzo::Main.hi +