diff options
author | Jeffrey J McCune <jeff.mccune@northstarlabs.net> | 2007-08-16 14:25:31 -0400 |
---|---|---|
committer | Jeffrey J McCune <jeff.mccune@northstarlabs.net> | 2007-08-16 14:25:31 -0400 |
commit | 09f7da5a5000876e03e9103c76089cfad9a1ba88 (patch) | |
tree | ced3b091a3e80b200781f5ab231fb78f25136360 | |
parent | 7d09d4624dd1d4d69cf5acd355762503e9cb448c (diff) | |
parent | 282ec893ef895e0d386126ba70494a3b086030b9 (diff) | |
download | puppet-09f7da5a5000876e03e9103c76089cfad9a1ba88.tar.gz puppet-09f7da5a5000876e03e9103c76089cfad9a1ba88.tar.xz puppet-09f7da5a5000876e03e9103c76089cfad9a1ba88.zip |
Merge branch 'master' of git://reductivelabs.com/puppet
-rw-r--r-- | test/lib/spec/version.rb | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/test/lib/spec/version.rb b/test/lib/spec/version.rb index 924d8458a..e692a87ee 100644 --- a/test/lib/spec/version.rb +++ b/test/lib/spec/version.rb @@ -1,30 +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"
-
+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 + REV = "$LastChangedRevision: 2283$".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 |