aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/lib/action_text/gem_version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actiontext/lib/action_text/gem_version.rb')
-rw-r--r--actiontext/lib/action_text/gem_version.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/actiontext/lib/action_text/gem_version.rb b/actiontext/lib/action_text/gem_version.rb
new file mode 100644
index 0000000000..ecd32d5f69
--- /dev/null
+++ b/actiontext/lib/action_text/gem_version.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module ActionText
+ # Returns the currently-loaded version of Action Text as a <tt>Gem::Version</tt>.
+ def self.gem_version
+ Gem::Version.new VERSION::STRING
+ end
+
+ module VERSION
+ MAJOR = 6
+ MINOR = 0
+ TINY = 0
+ PRE = "beta3"
+
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
+ end
+end