Advertisement
v1ral_ITS

lolcat

Oct 2nd, 2018
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/usr/bin/ruby2.5
  2. #
  3. # This file was generated by RubyGems.
  4. #
  5. # The application 'lolcat' is installed as part of a gem, and
  6. # this file is here to facilitate running it.
  7. #
  8.  
  9. require 'rubygems'
  10.  
  11. version = ">= 0.a"
  12.  
  13. if ARGV.first
  14.   str = ARGV.first
  15.   str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
  16.   if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
  17.     version = $1
  18.     ARGV.shift
  19.   end
  20. end
  21.  
  22. if Gem.respond_to?(:activate_bin_path)
  23. load Gem.activate_bin_path('lolcat', 'lolcat', version)
  24. else
  25. gem "lolcat", version
  26. load Gem.bin_path("lolcat", "lolcat", version)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement