Rakefile in gollum-lib-1.0.0 vs Rakefile in gollum-lib-1.0.1

- old
+ new

@@ -28,12 +28,12 @@ def bump_version old_file = File.read("lib/#{name}.rb") old_version_line = old_file[/^\s*VERSION\s*=\s*.*/] new_version = next_version - # replace first match of old vesion with new version - old_file.sub!(old_version_line, " VERSION = '#{new_version}'") + # replace first match of old version with new version + old_file.sub!(old_version_line, " VERSION = '#{new_version}'") File.write("lib/#{name}.rb", old_file) new_version end @@ -99,10 +99,15 @@ # Manually invoke gemspec then validate. Rake::Task[:gemspec].execute Rake::Task[:validate].execute end +desc "Build and install" +task :install => :build do + sh "gem install --local --no-ri --no-rdoc pkg/#{name}-#{version}.gem" +end + ############################################################################# # # Packaging tasks # ############################################################################# @@ -144,10 +149,10 @@ # determine file list from git ls-files files = `git ls-files`. split("\n"). sort. reject { |file| file =~ /^\./ }. - reject { |file| file =~ /^(rdoc|pkg|test|Home\.md|\.gitattributes)/ }. + reject { |file| file =~ /^(rdoc|pkg|test|Home\.md|\.gitattributes|Guardfile)/ }. map { |file| " #{file}" }. join("\n") # piece file back together and write manifest = " s.files = %w[\n#{files}\n ]\n"