Skip to content

Commit

Permalink
preparing release of 1.1.0
Browse files Browse the repository at this point in the history
git-svn-id: http://redmics.googlecode.com/svn/trunk@22 acf60f71-8f59-d6b5-87f9-fce14783422e
  • Loading branch information
fs5 committed Feb 6, 2011
1 parent 1d82fa8 commit c73c599
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Rakefile
Expand Up @@ -5,7 +5,6 @@ require 'zip/zipfilesystem'
require 'fileutils'

PROJECT_NAME = 'redmine_ics_export'
PROJECT_VERSION = '1.0.2'

task :default => [:clean, :dist]

Expand All @@ -19,12 +18,22 @@ end

desc 'Packages the distribution'
task :dist do
project_version = get_version_from_plugin_init
source_files = Dir.glob('**/*') - ['Rakefile']
Zip::ZipFile.open("#{PROJECT_NAME}-#{PROJECT_VERSION}.zip", 'w') {|zipfile|
Zip::ZipFile.open("#{PROJECT_NAME}-#{project_version}.zip", 'w') {|zipfile|
puts "Adding to #{zipfile}"
source_files.each {|file|
puts "\t#{file}"
zipfile.add("#{PROJECT_NAME}/#{file}", file)
}
}
end

def get_version_from_plugin_init
File.open( 'init.rb' ) do |f|
f.grep( /^\s+version '(.*)'/ ) do
return $1
end
end
'snapshot'
end
2 changes: 1 addition & 1 deletion init.rb
Expand Up @@ -23,7 +23,7 @@
name 'redmine ics export plugin (aka redmics)'
author 'Frank Schwarz'
description 'ICalendar view of issue- and version-deadlines'
version '1.0.2'
version '1.1.0'
url 'http://code.google.com/p/redmics/'
author_url 'http://www.buschmais.de/author/frank/'
end

0 comments on commit c73c599

Please sign in to comment.