Skip to content

Commit

Permalink
Rake gem building tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
brasten committed Aug 19, 2011
1 parent 216d18f commit 7283f50
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
@@ -1,5 +1,6 @@
require 'rspec/core'
require 'rspec/core/rake_task'
require 'rubygems/package_task'

RSpec::Core::RakeTask.new(:spec) do |spec|
end
Expand All @@ -8,3 +9,17 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
end

task :default => :spec

namespace :gem do

spec = Gem::Specification.load( 'active_shard.gemspec' )

Gem::PackageTask.new(spec) do
# defaults are fine, thanks!
end

desc "release active_shard-#{spec.version}.gem"
task :release => :package do
sh("gem push -k dashwire_api_key 'pkg/active_shard-#{spec.version}.gem'")
end
end
1 change: 1 addition & 0 deletions active_shard.gemspec
Expand Up @@ -6,6 +6,7 @@ Gem::Specification.new do |s|
s.version = ActiveShard::VERSION
s.summary = 'Sharding library for ActiveRecord'
s.description = 'ActiveShard is a library that implements flexible sharding in ActiveRecord and Rails.'
s.homepage = 'https://github.com/dashwire/active_shard'

s.required_ruby_version = '>= 1.8.7'
s.required_rubygems_version = ">= 1.3.6"
Expand Down

0 comments on commit 7283f50

Please sign in to comment.