outpost 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,14 @@
1
+ == 0.2.2
2
+ * Features
3
+ * Using arrays in Response code
4
+ * Bugfix
5
+ * Fixed failing test about messages not cleaning up properly in notifiers.
6
+
1
7
  == 0.2.1
2
8
  * Features
3
9
  * Support for :warning status (by github.com/sryche)
4
10
  * Subclassing Outpost::Application is no longer required.
11
+ * It is now possible to pass more than one response code to Response code expectation
5
12
  * HTTP Scout responds to response_time now
6
13
  * Added scout data to the report (so you can read acquired data)
7
14
  * Support for creating scouts without any expectations (good if you're
@@ -10,7 +10,7 @@ GEM
10
10
  faraday (0.5.4)
11
11
  addressable (~> 2.2.2)
12
12
  multipart-post (~> 1.1.0)
13
- rack (< 2, >= 1.1.0)
13
+ rack (>= 1.1.0, < 2)
14
14
  i18n (0.5.0)
15
15
  linecache (0.43)
16
16
  linecache19 (0.5.11)
@@ -18,9 +18,10 @@ It should report a status per declared system.
18
18
  The idea is to make a reliable framework for the Ruby developer to create his own monitoring rules.
19
19
  So, summing it all up, Nagios in Ruby, much cooler!
20
20
 
21
- ## Information
21
+ ## Information and examples
22
22
 
23
23
  * [Rdoc](http://rdoc.info/github/vinibaggio/outpost/master/frames)
24
+ * [outpost-web](http://github.com/vinibaggio/outpost-web)
24
25
 
25
26
  ## Installing
26
27
 
@@ -36,16 +37,16 @@ To create your Outposts, you must require 'outpost'. You also need to include
36
37
  require 'outpost'
37
38
  require 'outpost/scouts'
38
39
 
39
- class Bla < Outpost::Application
40
+ class Monitor < Outpost::Application
40
41
  using Outpost::Scouts::Http => "web page" do
41
42
  options :host => 'localhost', :port => 3000
42
43
  report :up, :response_code => 200
43
44
  end
44
45
  end
45
46
 
46
- a = Bla.new
47
- a.run
48
- p a.messages # => ["Outpost::Scouts::Http: 'web page' is reporting up."]
47
+ monitor = Monitor.new
48
+ monitor.run
49
+ p monitor.messages # => ["Outpost::Scouts::Http: 'web page' is reporting up."]
49
50
 
50
51
 
51
52
  ## How it works
@@ -1,5 +1,5 @@
1
1
  module Outpost
2
- PATCH = 1
2
+ PATCH = 2
3
3
  MINOR = 2
4
4
  MAJOR = 0
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}".freeze
@@ -93,7 +93,7 @@ describe Outpost::Application do
93
93
  end
94
94
 
95
95
  describe "#notify" do
96
- after(:each) do
96
+ before(:each) do
97
97
  NotifierMock.last_messages = nil
98
98
  end
99
99
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: