public
Rubygem
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
Only generate a three-part VERSION if ENV['RELEASE'] is set.
jbarnette (author)
Thu Jul 03 13:53:26 -0700 2008
commit  5c40882c3aba3ce1f26bb07fee4593cc1199888b
tree    04c0ca283c1593021acf23d46099262cc7ad98aa
parent  57fe54d7dbd7dbb5dd3a23a2158db3c962fd885f
...
1
2
3
 
4
5
6
7
 
8
9
10
...
1
2
 
3
4
5
6
 
7
8
9
10
0
@@ -1,10 +1,10 @@
0
 Gem::Specification.new do |s|
0
   s.name = %q{johnson}
0
- s.version = "1.0.0.200806282156"
0
+ s.version = "1.0.0.200807031344"
0
 
0
   s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
0
   s.authors = ["John Barnette", "Aaron Patterson", "Yehuda Katz", "Matthew Draper"]
0
- s.date = %q{2008-06-28}
0
+ s.date = %q{2008-07-03}
0
   s.default_executable = %q{johnson}
0
   s.description = %q{Johnson wraps JavaScript in a loving Ruby embrace.}
0
   s.email = %q{johnson-talk@googlegroups.com}
...
1
2
3
 
 
 
 
4
...
1
 
 
2
3
4
5
6
0
@@ -1,4 +1,6 @@
0
 module Johnson #:nodoc:
0
- # FIXME: Don't add the timestamp for "release" versions
0
- VERSION = "1.0.0.#{Time.now.strftime("%Y%m%d%H%M")}".freeze
0
+ major, minor, tiny = 1, 0, 0
0
+ nano = ENV['RELEASE'] ? nil : Time.now.strftime("%Y%m%d%H%M")
0
+
0
+ VERSION = [major, minor, tiny, nano].compact.join('.').freeze
0
 end

Comments

    No one has commented yet.