Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 87 lines (75 sloc) 2.561 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "ealert"
    gem.summary = %Q{Event Alert Daemon}
    gem.description = %Q{Command line utility to stream twitter events.}
    gem.email = "robert@codewranglers.org"
    gem.homepage = "git.codewranglers.org:ealert.git"
    gem.authors = ["Robert R Evans"]
    gem.version = File.read('VERSION').chomp!

    gem.add_development_dependency "rspec", "~> 2.0.0.beta.20"
    gem.add_development_dependency "yard", "~> 0.5.8"
    gem.add_development_dependency 'webmock', "~> 1.3.4"
    gem.add_development_dependency 'simplecov-html', '~> 0.3.5'
    
    gem.add_dependency 'mongo', '~> 1.0.7'
    gem.add_dependency 'mongo_ext', '~> 0.19.3'
    gem.add_dependency 'twitter-stream', '~> 0.1.8'
    gem.add_dependency 'yajl-ruby', '~> 0.7.7'
    gem.add_dependency 'simplegeo', '~> 0.0.3'
    gem.add_dependency 'calais', '~> 0.0.11'
    gem.add_dependency 'em-websocket', '~> 0.1.4'

  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov_opts = ["--sort coverage",
                     "--profile",
                     "--rails",
                     "--exclude /gems/,/Library/,spec"]
  spec.rcov = true
end

task :spec => :check_dependencies

begin
  require 'reek/adapters/rake_task'
  Reek::RakeTask.new do |t|
    t.fail_on_error = true
    t.verbose = false
    t.source_files = 'lib/**/*.rb'
  end
rescue LoadError
  task :reek do
    abort "Reek is not available. In order to run reek, you must: sudo gem install reek"
  end
end

begin
  require 'roodi'
  require 'roodi_task'
  RoodiTask.new do |t|
    t.verbose = false
  end
rescue LoadError
  task :roodi do
    abort "Roodi is not available. In order to run roodi, you must: sudo gem install roodi"
  end
end

task :default => :spec

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end
Something went wrong with that request. Please try again.