diff options
Diffstat (limited to 'lib/active_job')
-rw-r--r-- | lib/active_job/base.rb | 4 | ||||
-rw-r--r-- | lib/active_job/gem_version.rb | 15 | ||||
-rw-r--r-- | lib/active_job/version.rb | 8 |
3 files changed, 27 insertions, 0 deletions
diff --git a/lib/active_job/base.rb b/lib/active_job/base.rb new file mode 100644 index 0000000000..f2c76c1811 --- /dev/null +++ b/lib/active_job/base.rb @@ -0,0 +1,4 @@ +module ActiveJob + class Base + end +end
\ No newline at end of file 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 diff --git a/lib/active_job/version.rb b/lib/active_job/version.rb new file mode 100644 index 0000000000..0add9779d9 --- /dev/null +++ b/lib/active_job/version.rb @@ -0,0 +1,8 @@ +require_relative 'gem_version' + +module ActiveJob + # Returns the version of the currently loaded ActiveRecord as a <tt>Gem::Version</tt> + def self.version + gem_version + end +end |