cronitor 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cronitor.rb +2 -2
- data/lib/cronitor/version.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: f7c630c9e75a3a005b00c6623e3727f76dbe0577
|
4
|
+
data.tar.gz: 0ca6517fb2fe4e56f4e53309a772e6713e5459f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6694d2e3b18dfedc2afe20bf10fd68166eb02943c650e9b08fa7049ee2ddd33228685218fc5157c05b227eab6e62ea437721aa1cc06411102a835e0f4de8270d
|
7
|
+
data.tar.gz: 00e23740317cc5f9f31b15843e557261211f012fa02727f6606202257fb80a13b9dbe016b783b85c9c3ae888100488a777140fab52d5cfb5211c18e12cd61495
|
data/lib/cronitor.rb
CHANGED
@@ -16,7 +16,7 @@ class Cronitor
|
|
16
16
|
@opts = opts
|
17
17
|
@code = code
|
18
18
|
|
19
|
-
if token.nil? && @code.nil?
|
19
|
+
if @token.nil? && @code.nil?
|
20
20
|
fail(
|
21
21
|
Cronitor::Error,
|
22
22
|
'Either a Cronitor API token or an existing monitor code must be ' \
|
@@ -41,7 +41,7 @@ class Cronitor
|
|
41
41
|
|
42
42
|
def exists?(name)
|
43
43
|
response = Unirest.get(
|
44
|
-
"#{API_URL}/monitors/#{URI.escape
|
44
|
+
"#{API_URL}/monitors/#{URI.escape(name).gsub('[', '%5B').gsub(']', '%5D')}",
|
45
45
|
auth: { user: token }
|
46
46
|
)
|
47
47
|
return false unless response.code == 200
|
data/lib/cronitor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Byrnes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unirest
|