require File.expand_path("../lib/hiredis/version", __FILE__)

Gem::Specification.new do |s|
  s.name = "hiredis"
  s.version = Hiredis::VERSION
  s.homepage = "http://github.com/pietern/hiredis-rb"
  s.authors = ["Pieter Noordhuis"]
  s.email = ["pcnoordhuis@gmail.com"]
  s.summary = "Ruby extension that wraps Hiredis (blocking connection and reply parsing)"
  s.description = s.summary

  s.require_path = "lib"
  s.files = []

  if RUBY_PLATFORM =~ /java/
    s.platform = "java"
  else
    s.extensions = Dir["ext/**/extconf.rb"]
    s.files += Dir["ext/**/*.{rb,c,h}"]
    s.files += Dir["vendor/hiredis/*.{c,h}"] -
      Dir["vendor/hiredis/example*"] +
      Dir["vendor/hiredis/COPYING"] +
      Dir["vendor/hiredis/Makefile"]
  end

  s.files += Dir["lib/**/*.rb"]
  s.files += %w(COPYING Rakefile)

  s.add_development_dependency "rake-compiler", "~> 0.7.1"
end

require File.expand_path("../lib/hiredis/version", __FILE__)

Gem::Specification.new do |s|
  s.name = "hiredis"
  s.version = Hiredis::VERSION
  s.homepage = "http://github.com/redis/hiredis-rb"
  s.authors = ["Pieter Noordhuis"]
  s.email = ["pcnoordhuis@gmail.com"]
  s.summary = "Ruby wrapper for hiredis (protocol serialization/deserialization and blocking I/O)"
  s.description = s.summary

  s.require_path = "lib"
  s.files = []

  if RUBY_PLATFORM =~ /java/
    s.platform = "java"
  else
    s.extensions = Dir["ext/**/extconf.rb"]
    s.files += Dir["ext/**/*.{rb,c,h}"]
    s.files += Dir["vendor/hiredis/*.{c,h}"] -
      Dir["vendor/hiredis/example*"] +
      Dir["vendor/hiredis/COPYING"] +
      Dir["vendor/hiredis/Makefile"]
  end

  s.files += Dir["lib/**/*.rb"]
  s.files += %w(COPYING Rakefile)

  s.add_development_dependency "rake-compiler", "~> 0.7.1"
end

Update URL and summary in gemspec
Update URL and summary in gemspec
