Sha256: e7828d01d77c9e3b48c133218f0eecc032529a61551bd67ef21c7928310f1717

Contents?: true

Size: 1.11 KB

Versions: 26

Compression:

Stored size: 1.11 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

26 entries across 26 versions & 1 rubygems

Version Path
maintain-0.2.21 Rakefile
maintain-0.2.17 Rakefile
maintain-0.2.16 Rakefile
maintain-0.2.15 Rakefile
maintain-0.2.14 Rakefile
maintain-0.2.13 Rakefile
maintain-0.2.12 Rakefile
maintain-0.2.11 Rakefile
maintain-0.2.10 Rakefile
maintain-0.2.9 Rakefile
maintain-0.2.8 Rakefile
maintain-0.2.6 Rakefile
maintain-0.2.5 Rakefile
maintain-0.2.4 Rakefile
maintain-0.2.2 Rakefile
maintain-0.2.1 Rakefile
maintain-0.1.9 Rakefile
maintain-0.1.8 Rakefile
maintain-0.1.7 Rakefile
maintain-0.1.6 Rakefile