Sha256: c45fe950545b0168eec3388926436c12a08ca1e2a1bce696bb6c8db92200578e
Contents?: true
Size: 1.42 KB
Versions: 4
Compression:
Stored size: 1.42 KB
Contents
require "bundler" require "bundler/gem_tasks" Bundler.setup require "rake" require "rspec/core/rake_task" $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "mongoid/version" tasks = Rake.application.instance_variable_get('@tasks') tasks['release:do'] = tasks.delete('release') 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 namespace :release do task :check_private_key do unless File.exist?('gem-private_key.pem') raise "No private key present, cannot release" end end end task :release => ['release:check_private_key', 'release:do']
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoid-6.4.8 | Rakefile |
mongoid-7.0.11 | Rakefile |
mongoid-7.0.10 | Rakefile |
mongoid-6.4.7 | Rakefile |