lib/rudy/scm/svn.rb in rudy-0.2.2 vs lib/rudy/scm/svn.rb in rudy-0.2.3

- old
+ new

@@ -8,28 +8,28 @@ def initialize(uri) @base_uri = uri end - def create_release + def create_release_tag raise "There are local changes. Please revert or check them in!" unless everything_checked_in? raise "Invalid base URI (#{@base_uri}). Check RUDY_SVN_BASE." unless valid_uri?(@base_uri) raise "You must run this command from SVN you want to release from!" unless svn_dir?(Dir.pwd) re = `svn info`.match /^URL:\s+(.+)$/ release = re[1] if re - release_tag = "#{@base_uri}/#{generate_release_tag}" + release_tag = "#{@base_uri}/#{generate_release_tag_name}" puts "Creating tag: #{release_tag}" cmd = "svn copy -m 'Another Release by Rudy!' #{release} #{release_tag}" `#{cmd} 2>&1` release_tag end - def generate_release_tag + def generate_release_tag_name now = Time.now mon = now.mon.to_s.rjust(2, '0') day = now.day.to_s.rjust(2, '0') rev = "r01" criteria = ['rudy', now.year, mon, day, rev] \ No newline at end of file