bin/cheat in cheat-1.2.1 vs bin/cheat in cheat-1.3.0
- old
+ new
@@ -1,4 +1,10 @@
#!/usr/bin/env ruby
-require 'rubygems'
-require 'cheat'
+
+begin
+ require 'cheat'
+rescue LoadError
+ require 'rubygems'
+ require 'cheat'
+end
+
Cheat.sheets(ARGV)