Commit 0f6a01c6 authored by jplang's avatar jplang

Just use current date.

git-svn-id: https://svn.redmine.org/redmine/trunk@17376 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent cfbb530f
#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'
require 'date'
VERSION = '1.0.0'
......@@ -216,18 +217,7 @@ module Redmine
end
def release_date
@r_date.empty? ? (@release_date || parse_release_date) : @r_date
end
def parse_release_date
version_details = retrieve_version_details
release_date = version_details.css(RELEASE_DATE_SELECTOR).first.text
unless release_date =~ RELEASE_DATE_REGEX_COMPLETE
release_date = release_date.match(RELEASE_DATE_REGEX_INCOMPLETE)
release_date = release_date[1]
end
@release_date = release_date
@r_date.empty? ? (@release_date || Date.today.strftime("%Y-%m-%d")) : @r_date
end
def retrieve_version_details
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment