lib/qp.rb in cutep-0.0.3 vs lib/qp.rb in cutep-1.0.0
- old
+ new
@@ -1,10 +1,15 @@
# Copyright (C) 2003-2007 Kouichirou Eto, All rights reserved.
# License: Ruby License
-require 'qp/version'
-
module QP #:nodoc:
+ module VERSION #:nodoc:
+ MAJOR = 1
+ MINOR = 0
+ TINY = 0
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ end
+
def caller_msg(ca) #:nodoc:
file, linenum, msg = ca.first.split(/:([0-9]+):/)
msg = $1 if /\Ain \`(.+)\'\z/ =~ msg
File.basename(file)+':'+linenum.to_s+':'+msg.to_s
end