Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version bump and JRuby handling.

  • Loading branch information...
commit 035c9667dd43881ed8b2b0014824826c6e569c51 1 parent eeaa8bb
@djberg96 authored
Showing with 28 additions and 26 deletions.
  1. +28 −26 net-ping.gemspec
View
54 net-ping.gemspec
@@ -2,35 +2,37 @@ require 'rubygems'
require 'rbconfig'
Gem::Specification.new do |gem|
- gem.name = 'net-ping'
- gem.version = '1.3.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.has_rdoc = true
- gem.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
+ gem.name = 'net-ping'
+ gem.version = '1.3.3'
+ 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.has_rdoc = true
+ gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
- gem.rubyforge_project = 'shards'
- gem.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
+ gem.rubyforge_project = 'shards'
+ gem.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
- gem.add_development_dependency('test-unit', '>= 2.0.3')
+ gem.add_development_dependency('test-unit', '>= 2.0.9')
- # These dependencies are for Net::Ping::External
- if Config::CONFIG['host_os'] =~ /mswin|dos|win32|cygwin|mingw/i
- gem.platform = Gem::Platform::CURRENT
- gem.add_dependency('windows-pr', '>= 1.0.8')
+ # These dependencies are for Net::Ping::External
+ if Config::CONFIG['host_os'] =~ /mswin|dos|win32|cygwin|mingw/i &&
+ RUBY_PLATFORM != 'java'
+ then
+ gem.platform = Gem::Platform::CURRENT
+ gem.add_dependency('windows-pr', '>= 1.0.8')
- if RUBY_VERSION.to_f < 1.9
- gem.add_dependency('win32-open3', '>= 0.3.1')
- end
- end
+ if RUBY_VERSION.to_f < 1.9
+ gem.add_dependency('win32-open3', '>= 0.3.1')
+ end
+ end
- gem.description = <<-EOF
- The net-ping library provides a ping interface for Ruby. It includes
- separate TCP, HTTP, ICMP, UDP, WMI (for Windows) and external ping
- classes.
- EOF
+ gem.description = <<-EOF
+ The net-ping library provides a ping interface for Ruby. It includes
+ separate TCP, HTTP, ICMP, UDP, WMI (for Windows) and external ping
+ classes.
+ EOF
end
Please sign in to comment.
Something went wrong with that request. Please try again.