cronitor 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cronitor.gemspec +3 -0
- data/lib/cronitor.rb +7 -3
- data/lib/cronitor/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f2d92e9bff2665cff64e293fa9a2811fdd0f1ac
|
4
|
+
data.tar.gz: cc05a4d335a3a7272e1fe5430cc8e8ba5526bdd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b1571f0e348dadc27d5df8d36d53afeb8a65e2b750ec6e05dc93f1afa01b42d3da13adf629baa2c32509df988d74ce3717d810c4d70a90c2628943366c5a98
|
7
|
+
data.tar.gz: 384b8b8dece34c4d81057eafa338d0f9c8374fcb5988acaeb6010ac9241774236065b1b5b37f9af24060aa686f0ac511c4667b0a1e65d2ffaea785c55bb6c5b8
|
data/cronitor.gemspec
CHANGED
@@ -14,9 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
15
15
|
f.match(%r{^(test|spec|features)/})
|
16
16
|
end
|
17
|
+
spec.bindir = 'exe'
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
19
|
spec.require_paths = ['lib']
|
18
20
|
|
19
21
|
spec.add_dependency 'unirest', '~> 1.1'
|
22
|
+
spec.add_dependency 'hashie', '~> 3.4'
|
20
23
|
|
21
24
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
22
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/lib/cronitor.rb
CHANGED
@@ -20,11 +20,15 @@ class Cronitor
|
|
20
20
|
fail(
|
21
21
|
Cronitor::Error,
|
22
22
|
'Either a Cronitor API token or an existing monitor code must be ' \
|
23
|
-
'provided'
|
23
|
+
'provided'
|
24
|
+
)
|
24
25
|
end
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
if @opts
|
28
|
+
Hashie.symbolize_keys! @opts
|
29
|
+
exists? @opts[:name] if @opts.key? :name
|
30
|
+
human_readable @opts[:rules] if @opts.key? :rules
|
31
|
+
end
|
28
32
|
|
29
33
|
create if @code.nil?
|
30
34
|
end
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Byrnes
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unirest
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashie
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.4'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|