Rakefile in elekk-0.0.1 vs Rakefile in elekk-0.0.2
- old
+ new
@@ -1,23 +1,34 @@
require 'rubygems'
require 'rake'
-require 'spec/rake/spectask'
-require 'echoe'
-Echoe.new('elekk') do |p|
- p.summary = "A simple library for World of Warcraft data in Ruby."
- p.description = "Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write access to the social graph via the Graph API and the older REST API, as well as support for realtime updates and OAuth and Facebook Connect authentication. Koala is fully tested and supports Net::HTTP and Typhoeus connections out of the box and can accept custom modules for other services."
- p.url = "http://github.com/agnoster/elekk"
- p.author = "Isaac Wasileski"
- p.email = "agnoster@gmail.com"
- p.ignore_pattern = ["tmp/*", "script/*", "pkg/*"]
- p.development_dependencies = ['rspec']
- p.runtime_dependencies = ['typhoeus', 'memcached', 'nokogiri', 'json']
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "elekk"
+ s.summary = "A simple library for World of Warcraft data in Ruby."
+ s.email = "agnoster@gmail.com"
+ s.homepage = "http://github.com/agnoster/elekk"
+ s.description = "A simple library for World of Warcraft data in Ruby."
+ s.authors = ["Isaac Wasileski"]
+ s.files = FileList["*", "{lib,spec}/**/*"]
+ s.add_dependency 'typhoeus'
+ s.add_dependency 'memcached'
+ s.add_dependency 'nokogiri'
+ s.add_dependency 'json'
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
-
-desc "Run all tests"
-Spec::Rake::SpecTask.new('spec') do |t|
- t.spec_files = FileList['spec/**/*.rb']
- t.spec_opts = ["--color", "--format", "specdoc"]
- t.fail_on_error = false
+begin
+ require 'spec/rake/spectask'
+ desc "Run all tests"
+ Spec::Rake::SpecTask.new('spec') do |t|
+ t.spec_files = FileList['spec/**/*.rb']
+ t.spec_opts = ["--color", "--format", "specdoc"]
+ t.fail_on_error = false
+ end
+rescue LoadError
+ puts "No rspec installed, can't run tests"
end
\ No newline at end of file