omnihooks 0.0.1 → 0.0.2
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 +4 -4
- data/lib/omnihooks/strategy.rb +5 -3
- data/lib/omnihooks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e366cffb1233828df52cb6c849fe97d29301d439
|
|
4
|
+
data.tar.gz: 95fa526fec779398eff993f2a2f0b00d6aff953d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2498312b7e43a1519a8d47ced0c1d07473f3a4655408eb7a0b3e5666fbe6cb5e33d9c738c0e301ccda50de514b2ea19efcc7dcac2edb6c2d233ebf86768a2084
|
|
7
|
+
data.tar.gz: 21afa30163e9630b4885c70dc5f41057e90e3e5f265c688888dff8024aa21510bae5076127518c053adbfbe300d559a0519ba2b762e8da6243a3944601905d1f
|
data/lib/omnihooks/strategy.rb
CHANGED
|
@@ -221,7 +221,6 @@ module OmniHooks
|
|
|
221
221
|
# @param env [Hash] The Rack environment.
|
|
222
222
|
def call!(env) # rubocop:disable CyclomaticComplexity, PerceivedComplexity
|
|
223
223
|
@env = env
|
|
224
|
-
|
|
225
224
|
return instrument if on_request_path? && OmniHooks.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
|
|
226
225
|
|
|
227
226
|
@app.call(env)
|
|
@@ -253,13 +252,16 @@ module OmniHooks
|
|
|
253
252
|
begin
|
|
254
253
|
evt = get_event
|
|
255
254
|
evt_type = get_event_type
|
|
255
|
+
|
|
256
256
|
self.class.instrument(evt_type, evt) if evt
|
|
257
257
|
rescue => e
|
|
258
258
|
log(:error, e.message)
|
|
259
|
-
|
|
259
|
+
log(:error, e.backtrace.join("\n"))
|
|
260
|
+
[500, {}, [EMPTY_STRING]]
|
|
260
261
|
else
|
|
262
|
+
log(:debug, "success")
|
|
261
263
|
# Send a 200 response back to
|
|
262
|
-
[200, {}, [
|
|
264
|
+
[200, {}, [EMPTY_STRING]]
|
|
263
265
|
end
|
|
264
266
|
end
|
|
265
267
|
|
data/lib/omnihooks/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omnihooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Falconer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|