Sha256: bd83574d92f47e97f6131a8837c787a8a9d1edf3b18c4212a3ba4babe4f868ec

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

# encoding: UTF-8
require "bundler"
Bundler.setup

require 'rake'
require 'rake/gempackagetask'

gemspec = eval(File.read('sprite.gemspec'))
Rake::GemPackageTask.new(gemspec) do |pkg|
  pkg.gem_spec = gemspec
end

desc "build the gem and release it to rubygems.org"
task :release => :gem do
  puts "Tagging #{gemspec.version}..."
  system "git tag -a #{gemspec.version} -m 'Tagging #{gemspec.version}'"
  puts "Pushing to Github..."
  system "git push --tags"
  puts "Pushing to rubygems.org..."
  system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end

require "rspec"
require "rspec/core/rake_task"

Rspec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = "spec/**/*_spec.rb"
end

Rspec::Core::RakeTask.new('spec:progress') do |spec|
  spec.rspec_opts = %w(--format progress)
  spec.pattern = "spec/**/*_spec.rb"
end

require "rake/rdoctask"
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.title = "Sprite #{gemspec.version}"
  rdoc.rdoc_files.include("README*")
  rdoc.rdoc_files.include("lib/**/*.rb")
end


task :default => :spec

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sprite-0.2.7 Rakefile
sprite-0.2.6 Rakefile
sprite-0.2.5 Rakefile
sprite-0.2.4 Rakefile
sprite-0.2.2 Rakefile
sprite-0.2.1 Rakefile
sprite-0.2.0 Rakefile