Sha256: c324bc1f52c2f8f13a8a1d16f0b53e0dc61d3bcf5d70a5cc59e416570de2e923

Contents?: true

Size: 965 Bytes

Versions: 6

Compression:

Stored size: 965 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'

begin
  require 'bundler'
  require 'bundler/gem_tasks'
rescue LoadError
  raise '[FAIL] Bundler not found! Install it with ' +
        '`gem install bundler; bundle install`.'
end

default_groups = [:default, :testing]
Bundler.require(*default_groups)

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task :default => :spec

namespace :spec do
  task :ci => [:spec]
end

task :release => :spec do
  system "git tag -a #{Mongo::VERSION} -m 'Tagging release: #{Mongo::VERSION}'"
  system "git push --tags"
  system "gem build mongo.gemspec"
  system "gem push mongo-#{Mongo::VERSION}.gem"
  system "rm mongo-#{Mongo::VERSION}.gem"
end

desc "Generate all documentation"
task :docs => 'docs:yard'

namespace :docs do
  desc "Generate yard documention"
  task :yard do
    out = File.join('docs', Mongo::VERSION)
    FileUtils.rm_rf(out)
    system "yardoc -o #{out} --title mongo-#{Mongo::VERSION}"
  end
end

Version data entries

6 entries across 5 versions & 2 rubygems

Version Path
mongo-2.2.2 Rakefile
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongo-2.2.1/Rakefile
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongo-2.2.1/Rakefile
mongo-2.2.1 Rakefile
mongo-2.2.0 Rakefile
mongo-2.2.0.rc0 Rakefile