cronitor 1.1.0 → 1.1.1
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 +3 -3
- data/lib/cronitor.rb +0 -12
- 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: 2c4d6e86216ce953f1785789a31307f39b70fc27
|
|
4
|
+
data.tar.gz: 1611b429956eb06d5cfa6ec35a824eede312fd66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5c84f159a905fee122b521f2b57000e0f5fd90c35f66e673cf0cd91956f5491fc5e193a86ac834efa8d4c212986cf4351ccbe88b1dcec9ae5083de64c383dcb
|
|
7
|
+
data.tar.gz: de8bcb6df31bfe8eed8207da872eb4090f0e918f18b67190ffc966f8eb56c8f8ed491acf220ce5dd2dbeacce84f80bfbc5d2f6950437453354d79366f91e1a49
|
data/README.md
CHANGED
|
@@ -72,9 +72,9 @@ monitor_options = {
|
|
|
72
72
|
Once you’ve created a monitor, you can continue to use the existing instance of the object to ping the monitor that your task status: `run`, `complete`, or `fail`.
|
|
73
73
|
|
|
74
74
|
```ruby
|
|
75
|
-
my_monitor.run
|
|
76
|
-
my_monitor.complete
|
|
77
|
-
my_monitor.fail 'A short description of the failure'
|
|
75
|
+
my_monitor.ping 'run'
|
|
76
|
+
my_monitor.ping 'complete'
|
|
77
|
+
my_monitor.ping 'fail', 'A short description of the failure'
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
### Pinging a monitor when you have a Cronitor code
|
data/lib/cronitor.rb
CHANGED
|
@@ -51,18 +51,6 @@ class Cronitor
|
|
|
51
51
|
true
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
def run
|
|
55
|
-
ping 'run'
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def complete
|
|
59
|
-
ping 'complete'
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def fail(msg = nil)
|
|
63
|
-
ping 'fail', msg
|
|
64
|
-
end
|
|
65
|
-
|
|
66
54
|
def ping(type, msg = nil)
|
|
67
55
|
url = "#{PING_URL}/#{code}/#{type}"
|
|
68
56
|
url += "?msg=#{URI.escape msg}" if type == 'fail' && !msg.nil?
|
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.1
|
|
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-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unirest
|