Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.387 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'
6 spec.version = '1.5.3'
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.rubyforge_project = 'shards'
16 spec.extra_rdoc_files = ['README', 'CHANGES', 'doc/ping.txt']
17
18 spec.add_dependency('net-ldap', '~> 0.2.2')
19 spec.add_dependency('ffi', '>= 1.0.0')
20
1a64980 @djberg96 Updated dev dependency and home page in gemspec.
authored
21 spec.add_development_dependency('test-unit', '>= 2.5.0')
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
22 spec.add_development_dependency('fakeweb', '>= 1.3.0')
23 spec.add_development_dependency('fakeldap', '~> 0.0.1')
24
0a60f9e @djberg96 Gemspec fix for Windows.
authored
25 if File::ALT_SEPARATOR && RUBY_PLATFORM != 'java'
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
26 spec.platform = Gem::Platform::CURRENT
27 spec.platform.cpu = 'universal'
28 spec.platform.version = nil
29
30 # Used primarily for icmp pings.
d8b21fe @djberg96 Windows dependency change and a minor update for win32-security.
authored
31 spec.add_development_dependency('win32-security', '>= 0.2.0')
18e6e23 @djberg96 Initial conversion to git.
authored
32
035c966 @djberg96 Version bump and JRuby handling.
authored
33 if RUBY_VERSION.to_f < 1.9
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
34 spec.add_dependency('win32-open3', '>= 0.3.1')
035c966 @djberg96 Version bump and JRuby handling.
authored
35 end
36 end
18e6e23 @djberg96 Initial conversion to git.
authored
37
6c4edeb @djberg96 Updated specs for Windows, and set cpu to 'universal'.
authored
38 spec.description = <<-EOF
035c966 @djberg96 Version bump and JRuby handling.
authored
39 The net-ping library provides a ping interface for Ruby. It includes
0f62d00 @tardate Added initial Net::Ping::LDAP implementation
tardate authored
40 separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping
035c966 @djberg96 Version bump and JRuby handling.
authored
41 classes.
42 EOF
18e6e23 @djberg96 Initial conversion to git.
authored
43 end
Something went wrong with that request. Please try again.