pingdom-client 0.0.3.alpha → 0.0.4.alpha
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.
- data/Readme.md +4 -0
- data/lib/pingdom-client.rb +1 -0
- data/lib/pingdom.rb +1 -1
- data/lib/pingdom/summary/performance.rb +1 -1
- data/pingdom-client.gemspec +2 -2
- metadata +5 -5
data/Readme.md
CHANGED
@@ -27,6 +27,10 @@ NOTE: This is a 3rd party gem and not an official product from Pingdom.
|
|
27
27
|
probe_avg.response_time #=> 120 (ms)
|
28
28
|
probe_avg.probe.name #=> "Atlanta, GA"
|
29
29
|
|
30
|
+
## Contributors
|
31
|
+
|
32
|
+
* Emily Price ([duien](http://github.com/duien))
|
33
|
+
|
30
34
|
## License
|
31
35
|
|
32
36
|
The MIT License
|
data/lib/pingdom-client.rb
CHANGED
@@ -10,6 +10,7 @@ require 'active_support/core_ext/hash/indifferent_access'
|
|
10
10
|
require 'active_support/core_ext/hash/reverse_merge'
|
11
11
|
require 'active_support/core_ext/array/wrap'
|
12
12
|
require 'active_support/core_ext/hash/slice'
|
13
|
+
require 'active_support/inflector'
|
13
14
|
|
14
15
|
require 'pingdom'
|
15
16
|
require 'pingdom/client'
|
data/lib/pingdom.rb
CHANGED
@@ -23,7 +23,7 @@ module Pingdom
|
|
23
23
|
def self.parse(client, response)
|
24
24
|
body = super[:summary]
|
25
25
|
interval = body.keys.detect{ |k| INTERVALS.keys.include?(k.chomp('s').to_s) }.chomp('s').to_sym
|
26
|
-
intervals = body[interval]
|
26
|
+
intervals = body[interval.to_s.pluralize]
|
27
27
|
|
28
28
|
intervals.map do |perf|
|
29
29
|
perf[:interval] = interval
|
data/pingdom-client.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{pingdom-client}
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.4.alpha"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Matt Todd"]
|
7
|
-
s.date = %q{2011-03-
|
7
|
+
s.date = %q{2011-03-02}
|
8
8
|
s.description = %q{Pingdom Ruby Client}
|
9
9
|
s.email = %q{chiology@gmail.com}
|
10
10
|
s.files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pingdom-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1851332178
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 4
|
10
10
|
- alpha
|
11
|
-
version: 0.0.
|
11
|
+
version: 0.0.4.alpha
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Matt Todd
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-03-
|
19
|
+
date: 2011-03-02 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
requirements: []
|
207
207
|
|
208
208
|
rubyforge_project:
|
209
|
-
rubygems_version: 1.
|
209
|
+
rubygems_version: 1.4.2
|
210
210
|
signing_key:
|
211
211
|
specification_version: 3
|
212
212
|
summary: Pingdom Ruby Client
|