uptimerobot 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/uptimerobot/client.rb +3 -3
- data/lib/uptimerobot/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d5e170641cb08fbf29051fa5773449de3ae206
|
4
|
+
data.tar.gz: e8b79c5ec5aaab40aed415bb1a6f90b41da7639d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a49f3e63dc3fcede29d3d4dc8338bc08ac058f048467826256a7efbfd3bed87171de15f1380dc0936a33837b3ea76edd99e6c712d12cc98370006047a80b21
|
7
|
+
data.tar.gz: 6edfe1d497d0ae681250379641119aab93d8e37e38d65b7eac66ef65560bc756dc2488d08560f3496418a96487e5d18b5a93f21913127a2ed76f3ec3f9cbffc0
|
data/README.md
CHANGED
data/lib/uptimerobot/client.rb
CHANGED
@@ -19,9 +19,9 @@ class UptimeRobot::Client
|
|
19
19
|
]
|
20
20
|
|
21
21
|
def initialize(options)
|
22
|
-
@
|
22
|
+
@apiKey = options.delete(:apiKey)
|
23
23
|
|
24
|
-
raise ':
|
24
|
+
raise ':apiKey is required' unless @apiKey
|
25
25
|
|
26
26
|
options[:url] ||= ENDPOINT
|
27
27
|
|
@@ -59,7 +59,7 @@ class UptimeRobot::Client
|
|
59
59
|
|
60
60
|
def request(method_name, params = {})
|
61
61
|
params.update(
|
62
|
-
:apiKey => @
|
62
|
+
:apiKey => @apiKey,
|
63
63
|
:format => 'json',
|
64
64
|
:noJsonCallback => 1
|
65
65
|
)
|
data/lib/uptimerobot/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -9,7 +9,7 @@ DEFAULT_PARAMS = {
|
|
9
9
|
def uptime_robot
|
10
10
|
stubs = Faraday::Adapter::Test::Stubs.new
|
11
11
|
|
12
|
-
described_class.new(
|
12
|
+
described_class.new(apiKey: 'ZAPZAPZAP') do |faraday|
|
13
13
|
faraday.adapter :test, stubs do |stub|
|
14
14
|
yield(stub)
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uptimerobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|