aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/gem_version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/lib/action_mailer/gem_version.rb')
-rw-r--r--actionmailer/lib/action_mailer/gem_version.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/gem_version.rb b/actionmailer/lib/action_mailer/gem_version.rb
new file mode 100644
index 0000000000..b564813ccf
--- /dev/null
+++ b/actionmailer/lib/action_mailer/gem_version.rb
@@ -0,0 +1,15 @@
+module ActionMailer
+ # Returns the version of the currently loaded ActionMailer as a <tt>Gem::Version</tt>
+ def self.gem_version
+ Gem::Version.new VERSION::STRING
+ end
+
+ module VERSION
+ MAJOR = 4
+ MINOR = 2
+ TINY = 0
+ PRE = "alpha"
+
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
+ end
+end