Sha256: 6ee16335dd83faddbe929426dc43768adab09a47ff01d52b5616fafbcdb48507

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

require 'rake'

task :default => :spec

begin
  require 'spec/rake/spectask'

  desc "Run all examples"
  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_files = FileList['spec/**/*.rb']
  end

  desc "Run all examples with RCov"
  Spec::Rake::SpecTask.new('spec:rcov') do |t|
    t.spec_files = FileList['spec/**/*.rb']
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec,gem']
  end
rescue LoadError
  # puts "Could not load Rspec. To run tests, use `gem install rspec`"
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "maintain"
    gemspec.summary = "A Ruby state machine that lets your code do the driving"
    gemspec.description = %{
      Maintain is a simple state machine mixin for Ruby objects. It supports comparisons, bitmasks,
      and hooks that really work. It can be used for multiple attributes and will always do its best to
      stay out of your way and let your code drive the machine, and not vice versa.
    }
    gemspec.email = "flip@x451.com"
    gemspec.homepage = "http://github.com/flipsasser/maintain"
    gemspec.authors = ["Flip Sasser"]
  end
rescue LoadError
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maintain-0.2.20 Rakefile
maintain-0.2.19 Rakefile
maintain-0.2.18 Rakefile