cronitor 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f852a88bb9a1d55729161521e841a533198f5b
4
- data.tar.gz: f8202fa60a98954c8d45c66e00aecdb0e67e449e
3
+ metadata.gz: 2c4d6e86216ce953f1785789a31307f39b70fc27
4
+ data.tar.gz: 1611b429956eb06d5cfa6ec35a824eede312fd66
5
5
  SHA512:
6
- metadata.gz: d4a60d0d6c8de4afd286d00e9869e0f5a26bd593c630521869e84dc5c04f833f1ed92c0231709a80675e80176e381755f7c821857205bcd5b36a062ec0321993
7
- data.tar.gz: 9d667dcc744903d1324b11ec824c7d2d387a18effd5cc93ed7a8b4cf45c920a8741f4b6f8a3b4b32edf993d13fa2649b5cfcf934903654431150b1068a4cb68f
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?
@@ -1,3 +1,3 @@
1
1
  class Cronitor
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2015-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unirest