Sha256: 885346431f7b29fc3f317434a6970884db377f2af90bc7b90372e1719c0d7f8d

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

require 'bundler'
require 'jeweler'

begin
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "sappy"
    gemspec.summary = "Wrapping that shit!"
    gemspec.description = "A wrapper for the SiteUptime API"
    gemspec.email = ["dylanegan@gmail.com", "tim@spork.in"]
    gemspec.homepage = "http://github.com/abcde/sappy"
    gemspec.authors = ["Dylan Egan", "Tim Carey-Smith"]
    # reject people's local copies of credentials
    project_files = Dir.glob("{lib,spec}/**/*").reject { |file| file =~ %r!spec/credentials.rb! }
    gemspec.files = %w(README.markdown Rakefile VERSION) + project_files
    gemspec.rubyforge_project = 'abcde'
    manifest = Bundler::Environment.load(File.dirname(__FILE__) + '/Gemfile')
    manifest.dependencies.each do |d|
      next unless d.only && d.only.include?('release')
      gemspec.add_dependency(d.name, d.version)
    end
  end

  Jeweler::RubyforgeTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
end

require 'spec/rake/spectask'
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = %w(-fs --color)

  t.rcov = ENV['RCOV'] == "true"
  t.rcov_opts << '--exclude' << 'spec'
  t.rcov_opts << '--text-summary'
  t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
end

desc 'Default: Runs rspec'
task :default => :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sappy-0.1.5 Rakefile