You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/10/01 16:02:23 UTC

svn commit: r700769 - in /incubator/buildr/trunk: lib/buildr/core/generate.rb spec/core/generate_spec.rb

Author: lacton
Date: Wed Oct  1 07:02:23 2008
New Revision: 700769

URL: http://svn.apache.org/viewvc?rev=700769&view=rev
Log:
BUILDR-141 Removed NEXT_VERSION from the template used to generate buildfiles automatically

Added:
    incubator/buildr/trunk/spec/core/generate_spec.rb
Modified:
    incubator/buildr/trunk/lib/buildr/core/generate.rb

Modified: incubator/buildr/trunk/lib/buildr/core/generate.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/generate.rb?rev=700769&r1=700768&r2=700769&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/generate.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/generate.rb Wed Oct  1 07:02:23 2008
@@ -50,8 +50,6 @@
           header = <<-EOF
 # Version number for this release
 VERSION_NUMBER = "1.0.0"
-# Version number for the next release
-NEXT_VERSION = "1.0.1"
 # Group identifier for your projects
 GROUP = "#{name}"
 COPYRIGHT = ""

Added: incubator/buildr/trunk/spec/core/generate_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/core/generate_spec.rb?rev=700769&view=auto
==============================================================================
--- incubator/buildr/trunk/spec/core/generate_spec.rb (added)
+++ incubator/buildr/trunk/spec/core/generate_spec.rb Wed Oct  1 07:02:23 2008
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership.  The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
+require File.join(File.dirname(__FILE__), '../spec_helpers')
+
+
+describe Buildr::Generate do
+  
+  describe 'Generated buildfile' do
+    it 'should not contain NEXT_VERSION because it was removed in buildr 1.3.3' do
+      buildfile = Generate.from_directory(true)
+      buildfile.each { |line| line.should_not include('NEXT_VERSION')}
+    end
+  end
+end
\ No newline at end of file