summaryrefslogtreecommitdiff
path: root/ext/date/lib/date.rb
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2021-11-16 14:14:28 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-11-18 19:39:55 +0900
commit3ce27552df3411ea75ac8f24023194ec373e0f0c (patch)
treefe30a0c4ba78623e660634f5c97dbce238414807 /ext/date/lib/date.rb
parent2efbb35a8fdf1bea4c914f19f9c0beb52fa77e78 (diff)
[ruby/date] Expose Date::VERSION
An almost universal convention for gems is to expose `Namespace::VERSION` which makes it mcuh easier when debugging etc. Many gems extracted from ruby don't do this, even though it would be even more useful because they ship with ruby, so it's less clear which version it is. https://github.com/ruby/date/commit/fef7ec18d8
Diffstat (limited to 'ext/date/lib/date.rb')
-rw-r--r--ext/date/lib/date.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb
index 4901219503..c8fad9ac87 100644
--- a/ext/date/lib/date.rb
+++ b/ext/date/lib/date.rb
@@ -4,6 +4,7 @@
require 'date_core'
class Date
+ VERSION = '3.2.1' # :nodoc:
def infinite?
false