flapjack 0.7.28 → 0.7.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +10 -0
- data/features/notification_rules.feature +25 -25
- data/features/rollup.feature +38 -18
- data/features/steps/events_steps.rb +10 -5
- data/features/steps/notifications_steps.rb +8 -4
- data/lib/flapjack/data/alert.rb +207 -0
- data/lib/flapjack/data/contact.rb +14 -7
- data/lib/flapjack/data/entity_check.rb +4 -3
- data/lib/flapjack/data/notification.rb +28 -27
- data/lib/flapjack/gateways/api/contact_methods.rb +32 -12
- data/lib/flapjack/gateways/email.rb +49 -53
- data/lib/flapjack/gateways/email/alert.html.erb +15 -15
- data/lib/flapjack/gateways/email/alert.text.erb +15 -15
- data/lib/flapjack/gateways/email/alert_subject.text.erb +3 -13
- data/lib/flapjack/gateways/email/rollup.html.erb +6 -6
- data/lib/flapjack/gateways/email/rollup.text.erb +7 -7
- data/lib/flapjack/gateways/email/rollup_subject.text.erb +1 -19
- data/lib/flapjack/gateways/jabber.rb +57 -47
- data/lib/flapjack/gateways/jabber/alert.text.erb +12 -0
- data/lib/flapjack/gateways/jabber/rollup.text.erb +2 -0
- data/lib/flapjack/gateways/pagerduty.rb +60 -30
- data/lib/flapjack/gateways/pagerduty/alert.text.erb +10 -0
- data/lib/flapjack/gateways/sms_messagenet.rb +29 -36
- data/lib/flapjack/gateways/sms_messagenet/alert.text.erb +4 -14
- data/lib/flapjack/gateways/sms_messagenet/rollup.text.erb +2 -34
- data/lib/flapjack/gateways/web.rb +23 -14
- data/lib/flapjack/gateways/web/views/check.html.erb +16 -11
- data/lib/flapjack/gateways/web/views/contact.html.erb +58 -16
- data/lib/flapjack/gateways/web/views/self_stats.html.erb +80 -71
- data/lib/flapjack/notifier.rb +8 -2
- data/lib/flapjack/pikelet.rb +17 -3
- data/lib/flapjack/processor.rb +0 -1
- data/lib/flapjack/redis_pool.rb +1 -1
- data/lib/flapjack/utility.rb +13 -0
- data/lib/flapjack/version.rb +1 -1
- data/spec/lib/flapjack/data/contact_spec.rb +44 -29
- data/spec/lib/flapjack/gateways/api/contact_methods_spec.rb +24 -4
- data/spec/lib/flapjack/gateways/email_spec.rb +0 -5
- data/spec/lib/flapjack/gateways/jabber_spec.rb +5 -1
- data/spec/lib/flapjack/gateways/pagerduty_spec.rb +5 -2
- data/spec/lib/flapjack/gateways/{sms_messagenet.spec.rb → sms_messagenet_spec.rb} +16 -12
- data/spec/lib/flapjack/gateways/web_spec.rb +1 -1
- data/spec/spec_helper.rb +28 -6
- metadata +43 -89
@@ -10,7 +10,7 @@ describe Flapjack::Gateways::SmsMessagenet, :logger => true do
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
|
-
let(:time) { Time.
|
13
|
+
let(:time) { Time.new(2013, 10, 31, 13, 45) }
|
14
14
|
|
15
15
|
let(:time_str) { Time.at(time).strftime('%-d %b %H:%M') }
|
16
16
|
|
@@ -24,15 +24,18 @@ describe Flapjack::Gateways::SmsMessagenet, :logger => true do
|
|
24
24
|
'time' => time.to_i,
|
25
25
|
'address' => '555-555555',
|
26
26
|
'event_id' => 'example.com:ping',
|
27
|
-
'id' => '123456789'
|
27
|
+
'id' => '123456789',
|
28
|
+
'duration' => 55,
|
29
|
+
'state_duration' => 23
|
28
30
|
}
|
29
31
|
}
|
30
32
|
|
31
33
|
it "sends an SMS message" do
|
32
34
|
req = stub_request(:get, "https://www.messagenet.com.au/dotnet/Lodge.asmx/LodgeSMSMessage").
|
33
|
-
with(:query => {'PhoneNumber'
|
34
|
-
'Username'
|
35
|
-
'
|
35
|
+
with(:query => {'PhoneNumber' => '555-555555',
|
36
|
+
'Username' => 'user',
|
37
|
+
'Pwd' => 'password',
|
38
|
+
'PhoneMessage' => "Recovery: 'ping' on example.com is OK at #{time_str}, smile"}).
|
36
39
|
to_return(:status => 200)
|
37
40
|
|
38
41
|
EM.synchrony do
|
@@ -51,12 +54,13 @@ describe Flapjack::Gateways::SmsMessagenet, :logger => true do
|
|
51
54
|
'Liberty, and dedicated to the proposition that all men are created equal.')
|
52
55
|
|
53
56
|
req = stub_request(:get, "https://www.messagenet.com.au/dotnet/Lodge.asmx/LodgeSMSMessage").
|
54
|
-
with(:query => {'PhoneNumber'
|
55
|
-
'Username'
|
56
|
-
'
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
with(:query => {'PhoneNumber' => '555-555555',
|
58
|
+
'Username' => 'user',
|
59
|
+
'Pwd' => 'password',
|
60
|
+
'PhoneMessage' => "Recovery: 'ping' on example.com is " +
|
61
|
+
"OK at #{time_str}, Four score and seven years ago " +
|
62
|
+
'our fathers brought forth on this continent, a new ' +
|
63
|
+
'nation, conceived i...'}).
|
60
64
|
to_return(:status => 200)
|
61
65
|
|
62
66
|
EM.synchrony do
|
@@ -82,4 +86,4 @@ describe Flapjack::Gateways::SmsMessagenet, :logger => true do
|
|
82
86
|
"https://www.messagenet.com.au/dotnet/Lodge.asmx/LodgeSMSMessage")
|
83
87
|
end
|
84
88
|
|
85
|
-
end
|
89
|
+
end
|
@@ -36,7 +36,7 @@ describe Flapjack::Gateways::Web, :sinatra => true, :logger => true do
|
|
36
36
|
def expect_stats
|
37
37
|
redis.should_receive(:dbsize).and_return(3)
|
38
38
|
redis.should_receive(:keys).with('executive_instance:*').and_return(["executive_instance:foo-app-01"])
|
39
|
-
redis.should_receive(:hget).
|
39
|
+
redis.should_receive(:hget).once.and_return(Time.now.to_i - 60)
|
40
40
|
redis.should_receive(:hgetall).twice.and_return({'all' => '8001', 'ok' => '8002'},
|
41
41
|
{'all' => '9001', 'ok' => '9002'})
|
42
42
|
redis.should_receive(:llen).with('events')
|
data/spec/spec_helper.rb
CHANGED
@@ -24,19 +24,30 @@ $:.unshift(File.dirname(__FILE__) + '/../lib')
|
|
24
24
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
25
25
|
|
26
26
|
class MockLogger
|
27
|
-
attr_accessor :messages
|
27
|
+
attr_accessor :messages, :errors
|
28
28
|
|
29
29
|
def initialize
|
30
30
|
@messages = []
|
31
|
+
@errors = []
|
31
32
|
end
|
32
33
|
|
33
|
-
%w(debug info warn
|
34
|
+
%w(debug info warn).each do |level|
|
34
35
|
class_eval <<-RUBY
|
35
36
|
def #{level}(msg)
|
36
|
-
@messages << msg
|
37
|
+
@messages << '#{level.upcase}' + ': ' + msg
|
37
38
|
end
|
38
39
|
RUBY
|
39
40
|
end
|
41
|
+
|
42
|
+
%w(error fatal).each do |level|
|
43
|
+
class_eval <<-ERRORS
|
44
|
+
def #{level}(msg)
|
45
|
+
@messages << '#{level.upcase}' + ': ' + msg
|
46
|
+
@errors << '#{level.upcase}' + ': ' + msg
|
47
|
+
end
|
48
|
+
ERRORS
|
49
|
+
end
|
50
|
+
|
40
51
|
end
|
41
52
|
|
42
53
|
JsonSpec.configure do
|
@@ -61,6 +72,10 @@ RSpec.configure do |config|
|
|
61
72
|
# --seed 1234
|
62
73
|
config.order = 'random'
|
63
74
|
|
75
|
+
if !(ENV.keys & ['SHOW_LOGGER_ALL', 'SHOW_LOGGER_ERRORS']).empty?
|
76
|
+
config.formatter = :documentation
|
77
|
+
end
|
78
|
+
|
64
79
|
config.around(:each, :redis => true) do |example|
|
65
80
|
@redis = ::Redis.new(:db => 14, :driver => :ruby)
|
66
81
|
@redis.flushdb
|
@@ -71,9 +86,16 @@ RSpec.configure do |config|
|
|
71
86
|
config.around(:each, :logger => true) do |example|
|
72
87
|
@logger = MockLogger.new
|
73
88
|
example.run
|
74
|
-
|
75
|
-
|
76
|
-
|
89
|
+
|
90
|
+
if ENV['SHOW_LOGGER_ALL']
|
91
|
+
puts @logger.messages.compact.join("\n")
|
92
|
+
end
|
93
|
+
|
94
|
+
if ENV['SHOW_LOGGER_ERRORS']
|
95
|
+
puts @logger.errors.compact.join("\n")
|
96
|
+
end
|
97
|
+
|
98
|
+
@logger.errors.clear
|
77
99
|
end
|
78
100
|
|
79
101
|
config.after(:each, :time => true) do
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flapjack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.29
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lindsay Holmwood
|
@@ -11,44 +10,39 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: dante
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: oj
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - '>='
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '0'
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - '>='
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '0'
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: eventmachine
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
47
|
- - ~>
|
54
48
|
- !ruby/object:Gem::Version
|
@@ -56,7 +50,6 @@ dependencies:
|
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
54
|
- - ~>
|
62
55
|
- !ruby/object:Gem::Version
|
@@ -64,23 +57,20 @@ dependencies:
|
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: hiredis
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
|
-
- -
|
61
|
+
- - '>='
|
70
62
|
- !ruby/object:Gem::Version
|
71
63
|
version: '0'
|
72
64
|
type: :runtime
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
|
-
- -
|
68
|
+
- - '>='
|
78
69
|
- !ruby/object:Gem::Version
|
79
70
|
version: '0'
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: em-synchrony
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
75
|
- - ~>
|
86
76
|
- !ruby/object:Gem::Version
|
@@ -88,7 +78,6 @@ dependencies:
|
|
88
78
|
type: :runtime
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
82
|
- - ~>
|
94
83
|
- !ruby/object:Gem::Version
|
@@ -96,55 +85,48 @@ dependencies:
|
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: em-http-request
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
|
-
- -
|
89
|
+
- - '>='
|
102
90
|
- !ruby/object:Gem::Version
|
103
91
|
version: '0'
|
104
92
|
type: :runtime
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
|
-
- -
|
96
|
+
- - '>='
|
110
97
|
- !ruby/object:Gem::Version
|
111
98
|
version: '0'
|
112
99
|
- !ruby/object:Gem::Dependency
|
113
100
|
name: redis
|
114
101
|
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
102
|
requirements:
|
117
|
-
- -
|
103
|
+
- - '>='
|
118
104
|
- !ruby/object:Gem::Version
|
119
105
|
version: '0'
|
120
106
|
type: :runtime
|
121
107
|
prerelease: false
|
122
108
|
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
109
|
requirements:
|
125
|
-
- -
|
110
|
+
- - '>='
|
126
111
|
- !ruby/object:Gem::Version
|
127
112
|
version: '0'
|
128
113
|
- !ruby/object:Gem::Dependency
|
129
114
|
name: em-resque
|
130
115
|
requirement: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
116
|
requirements:
|
133
|
-
- -
|
117
|
+
- - '>='
|
134
118
|
- !ruby/object:Gem::Version
|
135
119
|
version: '0'
|
136
120
|
type: :runtime
|
137
121
|
prerelease: false
|
138
122
|
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
123
|
requirements:
|
141
|
-
- -
|
124
|
+
- - '>='
|
142
125
|
- !ruby/object:Gem::Version
|
143
126
|
version: '0'
|
144
127
|
- !ruby/object:Gem::Dependency
|
145
128
|
name: resque
|
146
129
|
requirement: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
130
|
requirements:
|
149
131
|
- - ~>
|
150
132
|
- !ruby/object:Gem::Version
|
@@ -152,7 +134,6 @@ dependencies:
|
|
152
134
|
type: :runtime
|
153
135
|
prerelease: false
|
154
136
|
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
137
|
requirements:
|
157
138
|
- - ~>
|
158
139
|
- !ruby/object:Gem::Version
|
@@ -160,71 +141,62 @@ dependencies:
|
|
160
141
|
- !ruby/object:Gem::Dependency
|
161
142
|
name: sinatra
|
162
143
|
requirement: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
144
|
requirements:
|
165
|
-
- -
|
145
|
+
- - '>='
|
166
146
|
- !ruby/object:Gem::Version
|
167
147
|
version: '0'
|
168
148
|
type: :runtime
|
169
149
|
prerelease: false
|
170
150
|
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
151
|
requirements:
|
173
|
-
- -
|
152
|
+
- - '>='
|
174
153
|
- !ruby/object:Gem::Version
|
175
154
|
version: '0'
|
176
155
|
- !ruby/object:Gem::Dependency
|
177
156
|
name: rack-fiber_pool
|
178
157
|
requirement: !ruby/object:Gem::Requirement
|
179
|
-
none: false
|
180
158
|
requirements:
|
181
|
-
- -
|
159
|
+
- - '>='
|
182
160
|
- !ruby/object:Gem::Version
|
183
161
|
version: '0'
|
184
162
|
type: :runtime
|
185
163
|
prerelease: false
|
186
164
|
version_requirements: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
165
|
requirements:
|
189
|
-
- -
|
166
|
+
- - '>='
|
190
167
|
- !ruby/object:Gem::Version
|
191
168
|
version: '0'
|
192
169
|
- !ruby/object:Gem::Dependency
|
193
170
|
name: thin
|
194
171
|
requirement: !ruby/object:Gem::Requirement
|
195
|
-
none: false
|
196
172
|
requirements:
|
197
|
-
- -
|
173
|
+
- - '>='
|
198
174
|
- !ruby/object:Gem::Version
|
199
175
|
version: '0'
|
200
176
|
type: :runtime
|
201
177
|
prerelease: false
|
202
178
|
version_requirements: !ruby/object:Gem::Requirement
|
203
|
-
none: false
|
204
179
|
requirements:
|
205
|
-
- -
|
180
|
+
- - '>='
|
206
181
|
- !ruby/object:Gem::Version
|
207
182
|
version: '0'
|
208
183
|
- !ruby/object:Gem::Dependency
|
209
184
|
name: mail
|
210
185
|
requirement: !ruby/object:Gem::Requirement
|
211
|
-
none: false
|
212
186
|
requirements:
|
213
|
-
- -
|
187
|
+
- - '>='
|
214
188
|
- !ruby/object:Gem::Version
|
215
189
|
version: '0'
|
216
190
|
type: :runtime
|
217
191
|
prerelease: false
|
218
192
|
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
none: false
|
220
193
|
requirements:
|
221
|
-
- -
|
194
|
+
- - '>='
|
222
195
|
- !ruby/object:Gem::Version
|
223
196
|
version: '0'
|
224
197
|
- !ruby/object:Gem::Dependency
|
225
198
|
name: blather
|
226
199
|
requirement: !ruby/object:Gem::Requirement
|
227
|
-
none: false
|
228
200
|
requirements:
|
229
201
|
- - ~>
|
230
202
|
- !ruby/object:Gem::Version
|
@@ -232,7 +204,6 @@ dependencies:
|
|
232
204
|
type: :runtime
|
233
205
|
prerelease: false
|
234
206
|
version_requirements: !ruby/object:Gem::Requirement
|
235
|
-
none: false
|
236
207
|
requirements:
|
237
208
|
- - ~>
|
238
209
|
- !ruby/object:Gem::Version
|
@@ -240,39 +211,34 @@ dependencies:
|
|
240
211
|
- !ruby/object:Gem::Dependency
|
241
212
|
name: chronic
|
242
213
|
requirement: !ruby/object:Gem::Requirement
|
243
|
-
none: false
|
244
214
|
requirements:
|
245
|
-
- -
|
215
|
+
- - '>='
|
246
216
|
- !ruby/object:Gem::Version
|
247
217
|
version: '0'
|
248
218
|
type: :runtime
|
249
219
|
prerelease: false
|
250
220
|
version_requirements: !ruby/object:Gem::Requirement
|
251
|
-
none: false
|
252
221
|
requirements:
|
253
|
-
- -
|
222
|
+
- - '>='
|
254
223
|
- !ruby/object:Gem::Version
|
255
224
|
version: '0'
|
256
225
|
- !ruby/object:Gem::Dependency
|
257
226
|
name: chronic_duration
|
258
227
|
requirement: !ruby/object:Gem::Requirement
|
259
|
-
none: false
|
260
228
|
requirements:
|
261
|
-
- -
|
229
|
+
- - '>='
|
262
230
|
- !ruby/object:Gem::Version
|
263
231
|
version: '0'
|
264
232
|
type: :runtime
|
265
233
|
prerelease: false
|
266
234
|
version_requirements: !ruby/object:Gem::Requirement
|
267
|
-
none: false
|
268
235
|
requirements:
|
269
|
-
- -
|
236
|
+
- - '>='
|
270
237
|
- !ruby/object:Gem::Version
|
271
238
|
version: '0'
|
272
239
|
- !ruby/object:Gem::Dependency
|
273
240
|
name: activesupport
|
274
241
|
requirement: !ruby/object:Gem::Requirement
|
275
|
-
none: false
|
276
242
|
requirements:
|
277
243
|
- - ~>
|
278
244
|
- !ruby/object:Gem::Version
|
@@ -280,7 +246,6 @@ dependencies:
|
|
280
246
|
type: :runtime
|
281
247
|
prerelease: false
|
282
248
|
version_requirements: !ruby/object:Gem::Requirement
|
283
|
-
none: false
|
284
249
|
requirements:
|
285
250
|
- - ~>
|
286
251
|
- !ruby/object:Gem::Version
|
@@ -288,23 +253,20 @@ dependencies:
|
|
288
253
|
- !ruby/object:Gem::Dependency
|
289
254
|
name: ice_cube
|
290
255
|
requirement: !ruby/object:Gem::Requirement
|
291
|
-
none: false
|
292
256
|
requirements:
|
293
|
-
- -
|
257
|
+
- - '>='
|
294
258
|
- !ruby/object:Gem::Version
|
295
259
|
version: '0'
|
296
260
|
type: :runtime
|
297
261
|
prerelease: false
|
298
262
|
version_requirements: !ruby/object:Gem::Requirement
|
299
|
-
none: false
|
300
263
|
requirements:
|
301
|
-
- -
|
264
|
+
- - '>='
|
302
265
|
- !ruby/object:Gem::Version
|
303
266
|
version: '0'
|
304
267
|
- !ruby/object:Gem::Dependency
|
305
268
|
name: tzinfo
|
306
269
|
requirement: !ruby/object:Gem::Requirement
|
307
|
-
none: false
|
308
270
|
requirements:
|
309
271
|
- - ~>
|
310
272
|
- !ruby/object:Gem::Version
|
@@ -312,7 +274,6 @@ dependencies:
|
|
312
274
|
type: :runtime
|
313
275
|
prerelease: false
|
314
276
|
version_requirements: !ruby/object:Gem::Requirement
|
315
|
-
none: false
|
316
277
|
requirements:
|
317
278
|
- - ~>
|
318
279
|
- !ruby/object:Gem::Version
|
@@ -320,33 +281,29 @@ dependencies:
|
|
320
281
|
- !ruby/object:Gem::Dependency
|
321
282
|
name: tzinfo-data
|
322
283
|
requirement: !ruby/object:Gem::Requirement
|
323
|
-
none: false
|
324
284
|
requirements:
|
325
|
-
- -
|
285
|
+
- - '>='
|
326
286
|
- !ruby/object:Gem::Version
|
327
287
|
version: '0'
|
328
288
|
type: :runtime
|
329
289
|
prerelease: false
|
330
290
|
version_requirements: !ruby/object:Gem::Requirement
|
331
|
-
none: false
|
332
291
|
requirements:
|
333
|
-
- -
|
292
|
+
- - '>='
|
334
293
|
- !ruby/object:Gem::Version
|
335
294
|
version: '0'
|
336
295
|
- !ruby/object:Gem::Dependency
|
337
296
|
name: rake
|
338
297
|
requirement: !ruby/object:Gem::Requirement
|
339
|
-
none: false
|
340
298
|
requirements:
|
341
|
-
- -
|
299
|
+
- - '>='
|
342
300
|
- !ruby/object:Gem::Version
|
343
301
|
version: '0'
|
344
302
|
type: :development
|
345
303
|
prerelease: false
|
346
304
|
version_requirements: !ruby/object:Gem::Requirement
|
347
|
-
none: false
|
348
305
|
requirements:
|
349
|
-
- -
|
306
|
+
- - '>='
|
350
307
|
- !ruby/object:Gem::Version
|
351
308
|
version: '0'
|
352
309
|
description: Flapjack is distributed monitoring notification system that provides
|
@@ -415,6 +372,7 @@ files:
|
|
415
372
|
- lib/flapjack/checks/ping
|
416
373
|
- lib/flapjack/configuration.rb
|
417
374
|
- lib/flapjack/coordinator.rb
|
375
|
+
- lib/flapjack/data/alert.rb
|
418
376
|
- lib/flapjack/data/contact.rb
|
419
377
|
- lib/flapjack/data/entity.rb
|
420
378
|
- lib/flapjack/data/entity_check.rb
|
@@ -445,8 +403,11 @@ files:
|
|
445
403
|
- lib/flapjack/gateways/email/rollup.text.erb
|
446
404
|
- lib/flapjack/gateways/email/rollup_subject.text.erb
|
447
405
|
- lib/flapjack/gateways/jabber.rb
|
406
|
+
- lib/flapjack/gateways/jabber/alert.text.erb
|
407
|
+
- lib/flapjack/gateways/jabber/rollup.text.erb
|
448
408
|
- lib/flapjack/gateways/oobetet.rb
|
449
409
|
- lib/flapjack/gateways/pagerduty.rb
|
410
|
+
- lib/flapjack/gateways/pagerduty/alert.text.erb
|
450
411
|
- lib/flapjack/gateways/sms_messagenet.rb
|
451
412
|
- lib/flapjack/gateways/sms_messagenet/alert.text.erb
|
452
413
|
- lib/flapjack/gateways/sms_messagenet/rollup.text.erb
|
@@ -508,7 +469,7 @@ files:
|
|
508
469
|
- spec/lib/flapjack/gateways/jabber_spec.rb
|
509
470
|
- spec/lib/flapjack/gateways/oobetet_spec.rb
|
510
471
|
- spec/lib/flapjack/gateways/pagerduty_spec.rb
|
511
|
-
- spec/lib/flapjack/gateways/
|
472
|
+
- spec/lib/flapjack/gateways/sms_messagenet_spec.rb
|
512
473
|
- spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
|
513
474
|
- spec/lib/flapjack/gateways/web/views/contact.html.erb_spec.rb
|
514
475
|
- spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
|
@@ -547,33 +508,26 @@ files:
|
|
547
508
|
homepage: http://flapjack-project.com/
|
548
509
|
licenses:
|
549
510
|
- MIT
|
511
|
+
metadata: {}
|
550
512
|
post_install_message:
|
551
513
|
rdoc_options: []
|
552
514
|
require_paths:
|
553
515
|
- lib
|
554
516
|
required_ruby_version: !ruby/object:Gem::Requirement
|
555
|
-
none: false
|
556
517
|
requirements:
|
557
|
-
- -
|
518
|
+
- - '>='
|
558
519
|
- !ruby/object:Gem::Version
|
559
520
|
version: '0'
|
560
|
-
segments:
|
561
|
-
- 0
|
562
|
-
hash: -3626435737663175396
|
563
521
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
564
|
-
none: false
|
565
522
|
requirements:
|
566
|
-
- -
|
523
|
+
- - '>='
|
567
524
|
- !ruby/object:Gem::Version
|
568
525
|
version: '0'
|
569
|
-
segments:
|
570
|
-
- 0
|
571
|
-
hash: -3626435737663175396
|
572
526
|
requirements: []
|
573
527
|
rubyforge_project:
|
574
|
-
rubygems_version:
|
528
|
+
rubygems_version: 2.0.3
|
575
529
|
signing_key:
|
576
|
-
specification_version:
|
530
|
+
specification_version: 4
|
577
531
|
summary: Intelligent, scalable, distributed monitoring notification system.
|
578
532
|
test_files:
|
579
533
|
- features/cli.feature
|
@@ -616,7 +570,7 @@ test_files:
|
|
616
570
|
- spec/lib/flapjack/gateways/jabber_spec.rb
|
617
571
|
- spec/lib/flapjack/gateways/oobetet_spec.rb
|
618
572
|
- spec/lib/flapjack/gateways/pagerduty_spec.rb
|
619
|
-
- spec/lib/flapjack/gateways/
|
573
|
+
- spec/lib/flapjack/gateways/sms_messagenet_spec.rb
|
620
574
|
- spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb
|
621
575
|
- spec/lib/flapjack/gateways/web/views/contact.html.erb_spec.rb
|
622
576
|
- spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb
|