Sha256: c5c8e006f2d8aa1b4eadc0b6eaef3585fefcdc30cffc80825035bef977b50d13

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

require 'rubygems'
require 'rspec/core/rake_task'
require 'rubygems/package_task'
  
task :default => ['spec:coverage']

namespace :twog do
  desc "Clean out the coverage and the pkg"
  task :clean do
    rm_rf 'coverage'
    rm_rf 'pkg'
  end
end

desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
  spec.rspec_opts = ['--color']
end

namespace :spec do  
  desc "Run coverage on the spec files"
  RSpec::Core::RakeTask.new(:coverage) do |spec|
    spec.pattern = FileList['spec/**/*_spec.rb']
    spec.rspec_opts = ['--color']
    ENV['COVERAGE'] = "true"
  end
end

begin
  gem 'jeweler', '>= 0.11.0'
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "twog"
    s.summary = %Q{Tool to tweet blog posts}
    s.email = ["jmeridth@gmail.com"]
    s.homepage = "http://github.com/jmeridth/twog"
    s.description = "Tool to tweet blog posts"
    s.authors = ["Jason Meridth"]
    s.rubyforge_project = "twog"
    s.add_dependency('twitter_oauth', '>= 0.3.3')
    s.add_dependency('bitly', '>= 0.4.0')
    s.add_dependency('whenever', '>= 0.4.1')
    s.add_dependency('activesupport', '>= 2.3.5')
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler --version '>= 0.11.0'"
  exit(1)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twog-0.3.4 Rakefile
twog-0.3.3 Rakefile
twog-0.3.2 Rakefile