Sha256: 467263804b5027b00aa52724fdd5b07262248db1c82832c2545b9b7f112daace
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require "bundler" Bundler.setup require "rake" require "rspec/core/rake_task" $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "mongoid/version" task :gem => :build task :build do system "gem build mongoid.gemspec" end task :install => :build do system "sudo gem install mongoid-#{Mongoid::VERSION}.gem" end task :release => :build do system "git tag -a v#{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'" system "git push --tags" system "gem push mongoid-#{Mongoid::VERSION}.gem" system "rm mongoid-#{Mongoid::VERSION}.gem" end 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 task :default => :spec desc "Generate all documentation" task :docs => 'docs:yard' namespace :docs do desc "Generate yard documention" task :yard do out = File.join('yard-docs', Mongoid::VERSION) FileUtils.rm_rf(out) system "yardoc -o #{out} --title mongoid-#{Mongoid::VERSION}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoid-7.1.2 | Rakefile |
mongoid-7.1.1 | Rakefile |
mongoid-7.1.0 | Rakefile |
mongoid-7.1.0.rc0 | Rakefile |