Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (32 sloc) 1.251 kb
18e6e23 @djberg96 Initial conversion to git.
authored
1 require 'rubygems'
2 require 'rbconfig'
3
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
4 Gem::Specification.new do |spec|
5 spec.name = 'net-ping'
4f7164b @djberg96 Version bump.
authored
6 spec.version = '1.7.6'
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
7 spec.license = 'Artistic 2.0'
8 spec.author = 'Daniel J. Berger'
9 spec.email = 'djberg96@gmail.com'
1a64980 @djberg96 Updated dev dependency and home page in gemspec.
authored
10 spec.homepage = 'https://github.com/djberg96/net-ping'
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
11 spec.summary = 'A ping interface for Ruby.'
12 spec.test_file = 'test/test_net_ping.rb'
13 spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
14
15 spec.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
16
66cda33 @djberg96 Version bump and set required Ruby version to 1.9.1 or later.
authored
17 # The TCP Ping class requires this for non-blocking sockets.
5cd2419 @djberg96 Bumped version, minimum Ruby version.
authored
18 spec.required_ruby_version = ">= 1.9.3"
66cda33 @djberg96 Version bump and set required Ruby version to 1.9.1 or later.
authored
19
c9e6962 @djberg96 Updated gemspec for 1.7.2, removed ffi dependency.
authored
20 spec.add_development_dependency('test-unit')
21 spec.add_development_dependency('fakeweb')
bdeba97 @j15e Add missing rake development dependency
j15e authored
22 spec.add_development_dependency('rake')
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
23
8df7c7c @djberg96 Updated gemspec portion for Windows.
authored
24 if File::ALT_SEPARATOR
25 require 'rbconfig'
b84bf50 @djberg96 Minor tweak for JRuby.
authored
26 arch = RbConfig::CONFIG['build_os'] || 'mingw32' # JRuby
8df7c7c @djberg96 Updated gemspec portion for Windows.
authored
27 spec.platform = Gem::Platform.new(['universal', arch])
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
28 spec.platform.version = nil
29
8df7c7c @djberg96 Updated gemspec portion for Windows.
authored
30 # Used for icmp pings.
31 spec.add_dependency('win32-security', '>= 0.2.0')
035c966 @djberg96 Version bump and JRuby handling.
authored
32 end
18e6e23 @djberg96 Initial conversion to git.
authored
33
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
34 spec.description = <<-EOF
035c966 @djberg96 Version bump and JRuby handling.
authored
35 The net-ping library provides a ping interface for Ruby. It includes
0f62d00 @tardate Added initial Net::Ping::LDAP implementation
tardate authored
36 separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping
035c966 @djberg96 Version bump and JRuby handling.
authored
37 classes.
38 EOF
18e6e23 @djberg96 Initial conversion to git.
authored
39 end
Something went wrong with that request. Please try again.