net-ping 1.7.1-universal-mingw32 → 1.7.2-universal-mingw32

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,87 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ping
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: ffi
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ! '>='
18
- - !ruby/object:Gem::Version
19
- version: 1.0.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ! '>='
25
- - !ruby/object:Gem::Version
26
- version: 1.0.0
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: test-unit
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - ! '>='
17
+ - - '>='
32
18
  - !ruby/object:Gem::Version
33
- version: 2.5.0
19
+ version: '0'
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ! '>='
24
+ - - '>='
39
25
  - !ruby/object:Gem::Version
40
- version: 2.5.0
26
+ version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: fakeweb
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ! '>='
31
+ - - '>='
46
32
  - !ruby/object:Gem::Version
47
- version: 1.3.0
33
+ version: '0'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ! '>='
38
+ - - '>='
53
39
  - !ruby/object:Gem::Version
54
- version: 1.3.0
40
+ version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ! '>='
45
+ - - '>='
60
46
  - !ruby/object:Gem::Version
61
47
  version: '0'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ! '>='
52
+ - - '>='
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: win32-security
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ! '>='
59
+ - - '>='
74
60
  - !ruby/object:Gem::Version
75
61
  version: 0.2.0
76
62
  type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ! '>='
66
+ - - '>='
81
67
  - !ruby/object:Gem::Version
82
68
  version: 0.2.0
83
- description: ! " The net-ping library provides a ping interface for Ruby. It includes\n
84
- \ separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping\n classes.\n"
69
+ description: |2
70
+ The net-ping library provides a ping interface for Ruby. It includes
71
+ separate TCP, HTTP, LDAP, ICMP, UDP, WMI (for Windows) and external ping
72
+ classes.
85
73
  email: djberg96@gmail.com
86
74
  executables: []
87
75
  extensions: []
@@ -98,7 +86,6 @@ files:
98
86
  - examples/example_pingudp.rb
99
87
  - Gemfile
100
88
  - lib/net/ping/external.rb
101
- - lib/net/ping/helper.rb
102
89
  - lib/net/ping/http.rb
103
90
  - lib/net/ping/icmp.rb
104
91
  - lib/net/ping/ping.rb
@@ -127,12 +114,12 @@ require_paths:
127
114
  - lib
128
115
  required_ruby_version: !ruby/object:Gem::Requirement
129
116
  requirements:
130
- - - ! '>='
117
+ - - '>='
131
118
  - !ruby/object:Gem::Version
132
119
  version: 1.9.1
133
120
  required_rubygems_version: !ruby/object:Gem::Requirement
134
121
  requirements:
135
- - - ! '>='
122
+ - - '>='
136
123
  - !ruby/object:Gem::Version
137
124
  version: '0'
138
125
  requirements: []
@@ -1,33 +0,0 @@
1
- require 'ffi'
2
-
3
- module Windows
4
- extend FFI::Library
5
- ffi_lib :kernel32
6
-
7
- attach_function :GetVersion, [], :ulong
8
-
9
- def version
10
- version = GetVersion()
11
- major = LOBYTE(LOWORD(version))
12
- minor = HIBYTE(LOWORD(version))
13
- eval("Float(#{major}.#{minor})")
14
- end
15
-
16
- private
17
-
18
- class << self
19
- def LOWORD(l)
20
- l & 0xffff
21
- end
22
-
23
- def LOBYTE(w)
24
- w & 0xff
25
- end
26
-
27
- def HIBYTE(w)
28
- w >> 8
29
- end
30
- end
31
-
32
- module_function :version
33
- end