custos_notifier 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/custos_notifier.rb +4 -2
- metadata +4 -4
data/lib/custos_notifier.rb
CHANGED
@@ -58,7 +58,7 @@ module CustosNotifier
|
|
58
58
|
# Send custom notification to Custos service. Any messages can be sent to service in
|
59
59
|
# <tt>message</tt> param. Second parameter is optional and could be anything you want.
|
60
60
|
def custom_notify(message, parameters = {})
|
61
|
-
return if ["
|
61
|
+
return if ["test"].include? configuration.stage.downcase
|
62
62
|
|
63
63
|
url = "#{ configuration.url }/notifications"
|
64
64
|
notify_params = {
|
@@ -114,6 +114,7 @@ module CustosNotifier
|
|
114
114
|
@query_string = rack_env(:query_string) || ""
|
115
115
|
@connection = rack_env(:env) { |env| env["HTTP_CONNECTION"] } || ""
|
116
116
|
@server_name = rack_env(:env) { |env| env["SERVER_NAME"] } || ""
|
117
|
+
@session = rack_env(:env) { |env| env["rack.session"].inspect }
|
117
118
|
end
|
118
119
|
|
119
120
|
|
@@ -147,7 +148,8 @@ module CustosNotifier
|
|
147
148
|
:query_string => @query_string,
|
148
149
|
:connection => @connection,
|
149
150
|
:server_name => @server_name,
|
150
|
-
:http_method => @http_method
|
151
|
+
:http_method => @http_method,
|
152
|
+
:session => @session
|
151
153
|
}
|
152
154
|
}
|
153
155
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custos_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sebastian Nowak
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-01 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|