uptrends 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +41 -3
- data/lib/uptrends/api_client.rb +58 -0
- data/lib/uptrends/probe.rb +26 -25
- data/lib/uptrends/probe_group.rb +44 -0
- data/lib/uptrends/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/GET_Probes.yml +243 -241
- data/spec/uptrends/api_client_spec.rb +4 -2
- metadata +3 -2
@@ -67,7 +67,8 @@ describe Uptrends::ApiClient do
|
|
67
67
|
|
68
68
|
describe "GET Probes" do
|
69
69
|
before do
|
70
|
-
VCR.insert_cassette('GET Probes', :record => :new_episodes)
|
70
|
+
VCR.insert_cassette('GET Probes', :record => :new_episodes, match_requests_on: [:method, :body, :headers, :query, :path])
|
71
|
+
#Did you mean one of :method, :uri, :body, :headers, :host, :path, :query, :body_as_json?
|
71
72
|
end
|
72
73
|
|
73
74
|
after do
|
@@ -83,8 +84,9 @@ describe Uptrends::ApiClient do
|
|
83
84
|
end
|
84
85
|
|
85
86
|
it "should return an array of Uptrends::Probe objects" do
|
86
|
-
probes = uac.
|
87
|
+
probes = uac.probes
|
87
88
|
probes.each do |probe|
|
89
|
+
#puts probe.class
|
88
90
|
probe.class.must_equal Uptrends::Probe
|
89
91
|
end
|
90
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptrends
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Barnett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- lib/uptrends.rb
|
42
42
|
- lib/uptrends/api_client.rb
|
43
43
|
- lib/uptrends/probe.rb
|
44
|
+
- lib/uptrends/probe_group.rb
|
44
45
|
- lib/uptrends/version.rb
|
45
46
|
- spec/fixtures/vcr_cassettes/GET_Probes.yml
|
46
47
|
- spec/spec_helper.rb
|