lib/protobuf/common/util.rb in ruby_protobuf-0.4.4 vs lib/protobuf/common/util.rb in ruby_protobuf-0.4.5

- old
+ new

@@ -12,6 +12,12 @@ def underscore(name) name.to_s.gsub(/\B[A-Z]/, '_\&').downcase end end + + begin + Version = File.read(File.dirname(__FILE__) + '/../../../VERSION') + rescue + Version = 'unknown' + end end