Rakefile in ezmobius-redis-0.0.3.4 vs Rakefile in ezmobius-redis-0.1

- old
+ new

@@ -6,14 +6,14 @@ require 'tasks/redis.tasks' GEM = 'redis' GEM_NAME = 'redis' -GEM_VERSION = '0.0.3.3' -AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley', 'Matthew Clark'] -EMAIL = "matt.clark@punchstock.com" -HOMEPAGE = "http://github.com/winescout/redis-rb" +GEM_VERSION = '0.1' +AUTHORS = ['Ezra Zygmuntowicz', 'Taylor Weibley', 'Matthew Clark', 'Brian McKinney', 'Salvatore Sanfilippo', 'Luca Guidi'] +EMAIL = "ez@engineyard.com" +HOMEPAGE = "http://github.com/ezmobius/redis-rb" SUMMARY = "Ruby client library for redis key value storage server" spec = Gem::Specification.new do |s| s.name = GEM s.version = GEM_VERSION @@ -23,17 +23,14 @@ s.summary = SUMMARY s.description = s.summary s.authors = AUTHORS s.email = EMAIL s.homepage = HOMEPAGE - - # Uncomment this to add a dependency - # s.add_dependency "foo" - + s.add_dependency "rspec" s.require_path = 'lib' s.autorequire = GEM - s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec}/**/*") + s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,tasks,spec}/**/*") end task :default => :spec desc "Run specs" @@ -54,6 +51,12 @@ desc "create a gemspec file" task :make_spec do File.open("#{GEM}.gemspec", "w") do |file| file.puts spec.to_ruby end -end \ No newline at end of file +end + +desc "Run all examples with RCov" +Spec::Rake::SpecTask.new(:rcov) do |t| + t.spec_files = FileList['spec/**/*_spec.rb'] + t.rcov = true +end