Sha256: 61f46311f55c6420c55735e3dce3d499ce3f5a6e250f61e5c222ae3484e202ee

Contents?: true

Size: 1.11 KB

Versions: 49

Compression:

Stored size: 1.11 KB

Contents

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "qu/version"

desc 'Build gem into the pkg directory'
task :build do
  FileUtils.rm_rf('pkg')
  Dir['*.gemspec'].each do |gemspec|
    system "gem build #{gemspec}"
  end
  FileUtils.mkdir_p('pkg')
  FileUtils.mv(Dir['*.gem'], 'pkg')
end

desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
  sh 'git', 'tag', '-m', changelog, "v#{Qu::VERSION}"
  sh "git push origin master"
  sh "git push origin v#{Qu::VERSION}"
  sh "ls pkg/*.gem | xargs -n 1 gem push"
end

require 'rspec/core/rake_task'

desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = %w[--color]
  t.verbose = false
end

namespace :spec do
  Backends = %w(mongo redis)

  Backends.each do |backend|
    desc "Run specs for #{backend} backend"
    RSpec::Core::RakeTask.new(backend) do |t|
      t.rspec_opts = %w[--color]
      t.verbose = false
      t.pattern = "spec/qu/backend/#{backend}_spec.rb"
    end
  end

  task :backends => Backends
end

def changelog
  File.read('ChangeLog').split("\n\n\n", 2).first
end

task :default => :spec

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.7.4 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.7.3 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.7.2 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.7.1 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.7.0 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.9 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.8 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.7 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.6 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.5 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.4 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.3 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.2 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.1 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.6.0 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.5.17 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.5.16 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.5.15 vendor/bundle/gems/qu-0.1.4/Rakefile
classiccms-0.5.14 vendor/bundle/gems/qu-0.1.4/Rakefile