aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/gem_version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/active_storage/gem_version.rb')
-rw-r--r--activestorage/lib/active_storage/gem_version.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/gem_version.rb b/activestorage/lib/active_storage/gem_version.rb
new file mode 100644
index 0000000000..492620731b
--- /dev/null
+++ b/activestorage/lib/active_storage/gem_version.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module ActiveStorage
+ # Returns the version of the currently loaded Active Storage 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 = "alpha"
+
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
+ end
+end