summaryrefslogtreecommitdiffstats
path: root/test/lib/spec/version.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:48:41 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:48:41 +0000
commitba23a5ac276e59fdda8186750c6d0fd2cfecdeac (patch)
tree1e14b25ade74ea52d8da2788ede9b12b507867e8 /test/lib/spec/version.rb
parent8ea6adaeb1e3d0aa6348c2a2c3a385d185372d06 (diff)
downloadpuppet-ba23a5ac276e59fdda8186750c6d0fd2cfecdeac.tar.gz
puppet-ba23a5ac276e59fdda8186750c6d0fd2cfecdeac.tar.xz
puppet-ba23a5ac276e59fdda8186750c6d0fd2cfecdeac.zip
Adding spec libs, so we can use them some day
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2283 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib/spec/version.rb')
-rw-r--r--test/lib/spec/version.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/lib/spec/version.rb b/test/lib/spec/version.rb
new file mode 100644
index 000000000..924d8458a
--- /dev/null
+++ b/test/lib/spec/version.rb
@@ -0,0 +1,30 @@
+module Spec
+ module VERSION
+ def self.build_tag
+ tag = "REL_" + [MAJOR, MINOR, TINY].join('_')
+ if defined?(RELEASE_CANDIDATE)
+ tag << "_" << RELEASE_CANDIDATE
+ end
+ tag
+ end
+
+ unless defined? MAJOR
+ MAJOR = 0
+ MINOR = 8
+ TINY = 2
+ # RELEASE_CANDIDATE = "RC1"
+
+ # RANDOM_TOKEN: 0.375509844656552
+ REV = "$LastChangedRevision$".match(/LastChangedRevision: (\d+)/)[1]
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ FULL_VERSION = "#{STRING} (r#{REV})"
+ TAG = build_tag
+
+ NAME = "RSpec"
+ URL = "http://rspec.rubyforge.org/"
+
+ DESCRIPTION = "#{NAME}-#{FULL_VERSION} - BDD for Ruby\n#{URL}"
+ end
+ end
+end \ No newline at end of file