autocronitor 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ef24266bef64329922c6103e1a84c9f1222564f
4
- data.tar.gz: eeb612ab20b4acc31c8048015664b18cb75a5731
3
+ metadata.gz: b464526f93d9c2ae53c43aae7e2cf67d98af07ea
4
+ data.tar.gz: 8981f30a4439c66f69df6865088a2cbc8647de41
5
5
  SHA512:
6
- metadata.gz: 4938ca09e7b83f316aed480a96810be83c4978b7b3d7f2a2faa98b56d8653a1a13de04a9fdc0387cd854b811e5f31b7ca06e972c7f855ef75cb255432bfd7348
7
- data.tar.gz: 933a8561f48d7201aa58b1a2c8dd6c99247af6963a52f5c6b83d4947a89923cb8b52ecb9453f683857cebb3faacf76834a712fea5c8829c9b5158d20e271501f
6
+ metadata.gz: de45b35f5f8bbfdfddc4f38e9283d4a85568077860c72f947f011f83169bd6730693016d10896d3d06242145bcac95350728b9608abd3c21dc9fedb8569504f6
7
+ data.tar.gz: aa0905204df3268cb6d48912638e6e9604a238f468cb3916e00baa293306fc6fa77ec1f94e2f7bfb75897fddb4c29c704ed44a0d05e1259ea6992e264e202add
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## 0.0.1(14th Dec, 2015)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix notifications when used with template
6
+
7
+ ## 0.0.1(8th Dec, 2015)
8
+
9
+ Features:
10
+
11
+ - Initial Release
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # autocronitor
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/autocronitor.png)](http://badge.fury.io/rb/autocronitor)
4
+
3
5
  A CLI tool to parse a standard format crontab file, create monitors in cronitor.io for each job, and automatically add the necessary curl commands to the original crontab.
4
6
 
5
7
  It assumes that you are using cronitor's "template" feature to configure notifications for your monitors, and that you have created templates which will then be passed to autocronitor.
data/autocronitor.gemspec CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'autocronitor'
5
- gem.version = '0.0.2'
5
+ gem.version = '0.0.3'
6
6
  gem.authors = ["Jon Cowie"]
7
7
  gem.email = 'jonlives@gmail.com'
8
8
  gem.homepage = 'https://github.com/jonlives/autocronitor'
data/bin/autocronitor CHANGED
@@ -106,10 +106,9 @@ else
106
106
  # Create a new monitor via cronitor's API with the name and rules we've created
107
107
  puts "Creating monitor #{filtered_line}..."
108
108
  monitor_id = helper.monitor_create(filtered_line,rules,template_names)
109
- monitor_url = "#{@monitor_url}/#{monitor_id}"
110
109
 
111
110
  # Construct the replacement line to be written back to the file
112
- cronitored_line = "#{cron_expression} curl #{monitor_url + '/run'} -m 10 && #{remaining_line.join(" ")} && curl #{monitor_url + '/complete'} -m 10"
111
+ cronitored_line = "#{cron_expression} curl #{monitor_id + '/run'} -m 10 && #{remaining_line.join(" ")} && curl #{monitor_id + '/complete'} -m 10"
113
112
  new_file_lines << cronitored_line
114
113
  puts ""
115
114
  end
data/test.conf ADDED
@@ -0,0 +1 @@
1
+ 0 10 * * * curl /https://cronitor.link/aNVGQ6/run -m 10 && /usr/bin/test && curl /https://cronitor.link/aNVGQ6/complete -m 10
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocronitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Cowie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unirest
@@ -63,11 +63,13 @@ extensions: []
63
63
  extra_rdoc_files: []
64
64
  files:
65
65
  - .gitignore
66
+ - CHANGELOG.md
66
67
  - LICENSE
67
68
  - README.md
68
69
  - autocronitor.gemspec
69
70
  - bin/autocronitor
70
71
  - lib/autocronitor/helper.rb
72
+ - test.conf
71
73
  homepage: https://github.com/jonlives/autocronitor
72
74
  licenses:
73
75
  - MIT