Skip to content

Commit

Permalink
Removed install.rb files.
Browse files Browse the repository at this point in the history
Added support for RubyForge.
Added stubs for READMEs.
  • Loading branch information
obrie committed Jan 1, 2007
1 parent 72635bb commit 497920d
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 4 deletions.
29 changes: 27 additions & 2 deletions README
@@ -1,5 +1,30 @@
ActsAsPreferenced
=================
== acts_as_preferenced

acts_as_preferenced .

== Resources

Wiki

* http://wiki.pluginaweek.org/Acts_as_preferenced

Announcement

* http://www.pluginaweek.org/

Source

* http://svn.pluginaweek.org/trunk/plugins/active_record/acts/acts_as_preferenced

Development

* http://dev.pluginaweek.org/browser/trunk/plugins/active_record/acts/acts_as_preferenced

== Description



== Examples

user.preferred_email_address (text)
user.prefers_milk? (boolean)
Expand Down
61 changes: 60 additions & 1 deletion Rakefile
@@ -1,6 +1,12 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/sshpublisher'

PKG_NAME = 'acts_as_preferenced'
PKG_VERSION = '0.0.1'
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
RUBY_FORGE_PROJECT = 'pluginaweek'

desc 'Default: run unit tests.'
task :default => :test
Expand All @@ -20,3 +26,56 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end

spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.platform = Gem::Platform::RUBY
s.summary = ''

s.files = FileList['{app,db,lib,tasks,test}/**/*'].to_a + %w(init.rb MIT-LICENSE Rakefile README)
s.require_path = 'lib'
s.autorequire = 'acts_as_preferenced'
s.has_rdoc = true
s.test_files = Dir['test/**/*_test.rb']

s.author = 'Aaron Pfeifer and Neil Abraham'
s.email = 'info@pluginaweek.org'
s.homepage = 'http://www.pluginaweek.org'
end

Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
end

desc 'Publish the beta gem'
task :pgem => [:package] do
Rake::SshFilePublisher.new('pluginaweek@pluginaweek.org', '/home/pluginaweek/gems.pluginaweek.org/gems', 'pkg', "#{PKG_FILE_NAME}.gem").upload
end

desc 'Publish the API documentation'
task :pdoc => [:rdoc] do
Rake::SshDirPublisher.new('pluginaweek@pluginaweek.org', "/home/pluginaweek/api.pluginaweek.org/#{PKG_NAME}", 'rdoc').upload
end

desc 'Publish the API docs and gem'
task :publish => [:pdoc, :release]

desc 'Publish the release files to RubyForge.'
task :release => [:gem, :package] do
require 'rubyforge'

options = {'cookie_jar' => RubyForge::COOKIE_F}
options['password'] = ENV['RUBY_FORGE_PASSWORD'] if ENV['RUBY_FORGE_PASSWORD']
ruby_forge = RubyForge.new("./config.yml", options)
ruby_forge.login

%w( gem tgz zip ).each do |ext|
file = "pkg/#{PKG_FILE_NAME}.#{ext}"
puts "Releasing #{File.basename(file)}..."

ruby_forge.add_release(RUBY_FORGE_PROJECT, PKG_NAME, PKG_VERSION, file)
end
end
14 changes: 14 additions & 0 deletions config.yml
@@ -0,0 +1,14 @@
uri: http://rubyforge.org
username: pluginaweek
is_private: false
rubyforge:
group_ids:
pluginaweek: 2608
package_ids:
acts_as_preferenced:
type_ids:
.zip: 3000
.tgz: 5000
.gem: 1400
processor_ids:
Any: 8000
1 change: 0 additions & 1 deletion install.rb

This file was deleted.

0 comments on commit 497920d

Please sign in to comment.