pingly 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +3 -3
  2. data/lib/pingly.rb +2 -2
  3. metadata +1 -1
data/README.md CHANGED
@@ -8,7 +8,7 @@ to attempt a ping on the host specified and lets you access the results.
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem 'Pingly'
11
+ gem 'pingly'
12
12
 
13
13
  And then execute:
14
14
 
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- $ gem install Pingly
19
+ $ gem install pingly
20
20
 
21
21
  ## Usage
22
22
 
@@ -24,7 +24,7 @@ Use the Pingly binary (optionally specifying a host to ping) to ping every 5 sec
24
24
 
25
25
  You can also use this in your code to test if a service is up:
26
26
 
27
- require 'Pingly'
27
+ require 'pingly'
28
28
 
29
29
  # standard initialization
30
30
  p = Pingly.new('google.com')
data/lib/pingly.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Pingly
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.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
11
+ if p.packet_loss > 0.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.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: