Sha256: 5859efdf6e30025f14eb96cf9d01713b6d8c8557687f997c8717b7c9cf406abd
Contents?: true
Size: 928 Bytes
Versions: 15
Compression:
Stored size: 928 Bytes
Contents
require 'bump/tasks' require_relative 'lib/restpack_serializer/version' task :default => :test task :test => :spec begin require "rspec/core/rake_task" desc "Run all specs" RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = ['-cfs'] end rescue LoadError end namespace :test do task :irb do exec "irb -r ./spec/spec_helper.rb" end end task :gem do Rake::Task["gem:bump"].invoke Rake::Task["gem:tag"].invoke Rake::Task["gem:build"].invoke Rake::Task["gem:push"].invoke end namespace :gem do task :build do sh "gem build restpack_serializer.gemspec" end task :push do require 'bump' sh "gem push restpack_serializer-#{Bump::Bump.current}.gem" end task :tag do require 'bump' version = Bump::Bump.current puts "tagging v#{version}" `git push && git tag v#{version} && git push --tags` end task :bump do Rake::Task["bump:patch"].invoke end end
Version data entries
15 entries across 15 versions & 1 rubygems