Sha256: 08bc17738a38e41fb7f370d28cdf076c2a8f36477f8bf29a885c7506946fe4fc

Contents?: true

Size: 1.37 KB

Versions: 7

Compression:

Stored size: 1.37 KB

Contents

# Gem building and publication:
#
#  rake gemspec_valid     # Validate the gemspec
#
#  rake build             # Build cant_wait-X.Y.Z.gem into the pkg directory.
#  rake clean             # Clean automatically generated gem files (removes the pkg folder).
#
#  rake install           # Build and install cant_wait-X.Y.Z.gem into system gems.
#
#  rake push              # Push pkg/cant_wait-X.Y.Z.gem to rubygems, if it exists.
#  rake release           # Create tag vX.Y.Z and build and push cant_wait-X.Y.Z.gem to Rubygems

begin
  require 'bundler/gem_tasks'  # Adds these tasks: build, install and release
rescue LoadError
  puts 'You may need Bundler to build this gem.'
end

desc 'Validate the gemspec'
#  It calls the instance method Gem::Specification.validate
#    It checks that the specification contains all required fields, and does a very basic sanity check.
#    It raises InvalidSpecificationException if the spec does not pass the checks...
#      Otherwise outputs nothing
#    See http://rubygems.rubyforge.org/rubygems-update/Gem/Specification.html
task :gemspec_valid do
  @gem_spec.validate
end

desc 'Clean automatically generated gem files (removes the pkg folder).'
task :clean do
  FileUtils.rm_rf 'pkg'
end

desc "Push pkg/#{@gem_spec.name}-#{@gem_spec.version}.gem to rubygems, if it exists."
task :push do
  system "gem push pkg/#{@gem_spec.name}-#{@gem_spec.version}.gem"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cant_wait-1.1.1 tasks/publishing.rake
cant_wait-1.1.0 tasks/publishing.rake
cant_wait-1.0.1 tasks/publishing.rake
cant_wait-1.0.0 tasks/publishing.rake
cant_wait-0.0.4 tasks/publishing.rake
cant_wait-0.0.3 tasks/publishing.rake
cant_wait-0.0.2 tasks/publishing.rake