pingly 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/pingly.rb +2 -2
  2. metadata +2 -2
data/lib/pingly.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Pingly
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
 
4
4
  attr_accessor :host, :timeout, :raw_response
5
5
 
@@ -8,7 +8,7 @@ class Pingly
8
8
  p = new(host)
9
9
  p.ping!
10
10
 
11
- if p.packet_loss > 0.25
11
+ if p.packet_loss > 25
12
12
  yield if block_given?
13
13
  end
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-03 00:00:00.000000000 Z
13
+ date: 2013-01-04 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Ping a specified host, logs the output, and calls a block on packet loss.
16
16
  email: