aboutsummaryrefslogtreecommitdiffstats
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2019-01-04 00:07:34 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-15 00:32:00 +0900
commit423feb53a20f323d6b7e27e132e68b70b888ffe9 (patch)
tree369aadf2f3572c31e41e850e47bd7416a6c77925 /lib/matrix.rb
parent4403130193ac895820d9ccc8ec2ab13de37bfea6 (diff)
downloadruby-423feb53a20f323d6b7e27e132e68b70b888ffe9.tar.gz
[ruby/matrix] Add Matrix::VERSION constant
Add Matrix::VERSION for the gem version, use it in the gemspec, and make it also available for library users. https://github.com/ruby/matrix/commit/65c2bb1fa1
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 34602f5c40..b8139b547f 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -14,6 +14,8 @@
require "e2mmap"
+require_relative "matrix/version"
+
module ExceptionForMatrix # :nodoc:
extend Exception2MessageMapper
def_e2message(TypeError, "wrong argument type %s (expected %s)")