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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7c630c9e75a3a005b00c6623e3727f76dbe0577
4
- data.tar.gz: 0ca6517fb2fe4e56f4e53309a772e6713e5459f9
3
+ metadata.gz: 8f2d92e9bff2665cff64e293fa9a2811fdd0f1ac
4
+ data.tar.gz: cc05a4d335a3a7272e1fe5430cc8e8ba5526bdd6
5
5
  SHA512:
6
- metadata.gz: 6694d2e3b18dfedc2afe20bf10fd68166eb02943c650e9b08fa7049ee2ddd33228685218fc5157c05b227eab6e62ea437721aa1cc06411102a835e0f4de8270d
7
- data.tar.gz: 00e23740317cc5f9f31b15843e557261211f012fa02727f6606202257fb80a13b9dbe016b783b85c9c3ae888100488a777140fab52d5cfb5211c18e12cd61495
6
+ metadata.gz: 39b1571f0e348dadc27d5df8d36d53afeb8a65e2b750ec6e05dc93f1afa01b42d3da13adf629baa2c32509df988d74ce3717d810c4d70a90c2628943366c5a98
7
+ data.tar.gz: 384b8b8dece34c4d81057eafa338d0f9c8374fcb5988acaeb6010ac9241774236065b1b5b37f9af24060aa686f0ac511c4667b0a1e65d2ffaea785c55bb6c5b8
@@ -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'
@@ -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
- exists? opts[:name] if opts && opts.key?(:name)
27
- human_readable opts[:rules] if opts && opts.key?(:rules)
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
@@ -1,3 +1,3 @@
1
1
  class Cronitor
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
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.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Byrnes
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
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