Permalink
Browse files

Updated specs for Windows, and set cpu to 'universal'.

  • Loading branch information...
1 parent 7480039 commit 6c4edebad79471bec3c8bbc4f660160ffdd43801 @djberg96 committed Feb 23, 2012
Showing with 29 additions and 25 deletions.
  1. +29 −25 net-ping.gemspec
View
@@ -1,37 +1,41 @@
require 'rubygems'
require 'rbconfig'
-Gem::Specification.new do |gem|
- gem.name = 'net-ping'
- gem.version = '1.5.2'
- gem.license = 'Artistic 2.0'
- gem.author = 'Daniel J. Berger'
- gem.email = 'djberg96@gmail.com'
- gem.homepage = 'http://www.rubyforge.org/projects/shards'
- gem.summary = 'A ping interface for Ruby.'
- gem.test_file = 'test/test_net_ping.rb'
- gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
-
- gem.rubyforge_project = 'shards'
- gem.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
-
- gem.add_dependency('net-ldap', '~> 0.2.2')
- gem.add_development_dependency('test-unit', '>= 2.1.2')
- gem.add_development_dependency('fakeweb', '>= 1.3.0')
- gem.add_development_dependency('fakeldap', '~> 0.0.1')
-
- # These dependencies are for Net::Ping::External
+Gem::Specification.new do |spec|
+ spec.name = 'net-ping'
+ spec.version = '1.5.3'
+ spec.license = 'Artistic 2.0'
+ spec.author = 'Daniel J. Berger'
+ spec.email = 'djberg96@gmail.com'
+ spec.homepage = 'http://www.rubyforge.org/projects/shards'
+ spec.summary = 'A ping interface for Ruby.'
+ spec.test_file = 'test/test_net_ping.rb'
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
+
+ spec.rubyforge_project = 'shards'
+ spec.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
+
+ spec.add_dependency('net-ldap', '~> 0.2.2')
+ spec.add_dependency('ffi', '>= 1.0.0')
+
+ spec.add_development_dependency('test-unit', '>= 2.1.2')
+ spec.add_development_dependency('fakeweb', '>= 1.3.0')
+ spec.add_development_dependency('fakeldap', '~> 0.0.1')
+
if File::ALT_SEPARATOR && RUBY_PLATFORM != 'java'
- gem.platform = Gem::Platform::CURRENT
- gem.add_dependency('windows-pr', '>= 1.0.8')
- gem.add_development_dependency('win32-security', '>= 1.0.8')
+ spec.platform = Gem::Platform::CURRENT
+ spec.platform.cpu = 'universal'
+ spec.platform.version = nil
+
+ # Used primarily for icmp pings.
+ spec.add_development_dependency('win32-security', '>= 1.0.8')
if RUBY_VERSION.to_f < 1.9
- gem.add_dependency('win32-open3', '>= 0.3.1')
+ spec.add_dependency('win32-open3', '>= 0.3.1')
end
end
- gem.description = <<-EOF
+ spec.description = <<-EOF
The net-ping library provides a ping interface for Ruby. It includes
separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping
classes.

0 comments on commit 6c4edeb

Please sign in to comment.