Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tag 0.1.2 release

  • Loading branch information...
commit 36309ea4bb47280963ba08c1dcf05e42b457198b 1 parent 257880e
Aaron Pfeifer obrie authored
Showing with 23 additions and 24 deletions.
  1. +4 −0 CHANGELOG
  2. +19 −24 Rakefile
4 CHANGELOG
View
@@ -1,5 +1,9 @@
*SVN*
+*0.1.2* (June 22nd, 2008)
+
+* Remove log files from gems
+
*0.1.1* (June 20th, 2008)
* Rename preference_values hash to preferences
43 Rakefile
View
@@ -3,11 +3,6 @@ require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/sshpublisher'
-PKG_NAME = 'preferences'
-PKG_VERSION = '0.1.1'
-PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
-RUBY_FORGE_PROJECT = 'pluginaweek'
-
desc 'Default: run unit tests.'
task :default => :test
@@ -29,20 +24,20 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
end
spec = Gem::Specification.new do |s|
- s.name = PKG_NAME
- s.version = PKG_VERSION
- s.platform = Gem::Platform::RUBY
- s.summary = 'Adds support for easily creating custom preferences for models'
+ s.name = 'preferences'
+ s.version = '0.1.2'
+ s.platform = Gem::Platform::RUBY
+ s.summary = 'Adds support for easily creating custom preferences for models'
- s.files = FileList['{app,lib,test}/**/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
- s.require_path = 'lib'
- s.autorequire = 'preferences'
- s.has_rdoc = true
- s.test_files = Dir['test/**/*_test.rb']
+ s.files = FileList['{app,lib,test}/**/*'].to_a - FileList['test/app_root/log/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
+ s.require_path = 'lib'
+ s.has_rdoc = true
+ s.test_files = Dir['test/**/*_test.rb']
- s.author = 'Aaron Pfeifer'
- s.email = 'aaron@pluginaweek.org'
- s.homepage = 'http://www.pluginaweek.org'
+ s.author = 'Aaron Pfeifer'
+ s.email = 'aaron@pluginaweek.org'
+ s.homepage = 'http://www.pluginaweek.org'
+ s.rubyforge_project = 'pluginaweek'
end
Rake::GemPackageTask.new(spec) do |p|
@@ -51,14 +46,14 @@ Rake::GemPackageTask.new(spec) do |p|
p.need_zip = true
end
-desc 'Publish the beta gem'
+desc 'Publish the beta gem.'
task :pgem => [:package] do
- Rake::SshFilePublisher.new('aaron@pluginaweek.org', '/home/aaron/gems.pluginaweek.org/public/gems', 'pkg', "#{PKG_FILE_NAME}.gem").upload
+ Rake::SshFilePublisher.new('aaron@pluginaweek.org', '/home/aaron/gems.pluginaweek.org/public/gems', 'pkg', "#{spec.name}-#{spec.version}.gem").upload
end
-desc 'Publish the API documentation'
+desc 'Publish the API documentation.'
task :pdoc => [:rdoc] do
- Rake::SshDirPublisher.new('aaron@pluginaweek.org', "/home/aaron/api.pluginaweek.org/public/#{PKG_NAME}", 'rdoc').upload
+ Rake::SshDirPublisher.new('aaron@pluginaweek.org', "/home/aaron/api.pluginaweek.org/public/#{spec.name}", 'rdoc').upload
end
desc 'Publish the API docs and gem'
@@ -71,10 +66,10 @@ task :release => [:gem, :package] do
ruby_forge = RubyForge.new.configure
ruby_forge.login
- %w( gem tgz zip ).each do |ext|
- file = "pkg/#{PKG_FILE_NAME}.#{ext}"
+ %w(gem tgz zip).each do |ext|
+ file = "pkg/#{spec.name}-#{spec.version}.#{ext}"
puts "Releasing #{File.basename(file)}..."
- ruby_forge.add_release(RUBY_FORGE_PROJECT, PKG_NAME, PKG_VERSION, file)
+ ruby_forge.add_release(spec.rubyforge_project, spec.name, spec.version, file)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.