diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2014-05-18 11:44:28 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2014-05-18 11:44:28 +0200 |
commit | a832bc387bd80760f7a362664115f2e78085838e (patch) | |
tree | f456df81a8fdd2c7e6871fdbe04809a4768f2980 /lib/active_job/gem_version.rb | |
download | rails-a832bc387bd80760f7a362664115f2e78085838e.tar.gz rails-a832bc387bd80760f7a362664115f2e78085838e.tar.bz2 rails-a832bc387bd80760f7a362664115f2e78085838e.zip |
Skeleton gem
Diffstat (limited to 'lib/active_job/gem_version.rb')
-rw-r--r-- | lib/active_job/gem_version.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/active_job/gem_version.rb b/lib/active_job/gem_version.rb new file mode 100644 index 0000000000..c166020b28 --- /dev/null +++ b/lib/active_job/gem_version.rb @@ -0,0 +1,15 @@ +module ActiveJob + # Returns the version of the currently loaded ActiveJob 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 |