bullet 5.4.1 → 5.4.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/CHANGELOG.md +4 -0
- data/lib/bullet.rb +3 -1
- data/lib/bullet/version.rb +1 -1
- data/spec/bullet_spec.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: a2e6c4a9a98e1cf85620eeafb1d6feadc997c785
|
4
|
+
data.tar.gz: 520006e52a1880e2209e488c2d0a5013ca86a5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2322a95010d451bb1c8f8328db39de6c14b2bd5d6136117bf6df04d7b0446ce0d6f5d05646583391a1245675a06d4274d4e8b70b1f949c8e0cf337ca357f173c
|
7
|
+
data.tar.gz: e0c76d61753a3f3b8d898d3f22b6948a3cc51ca36c88b2bcdd816d6330b3262bc2621876813fac62e28de7e6ca1f3c77d56ceeb8dbea7261af91373f81885923
|
data/CHANGELOG.md
CHANGED
data/lib/bullet.rb
CHANGED
@@ -167,7 +167,7 @@ module Bullet
|
|
167
167
|
end
|
168
168
|
|
169
169
|
def perform_out_of_channel_notifications(env = {})
|
170
|
-
request_uri =
|
170
|
+
request_uri = build_request_uri(env)
|
171
171
|
for_each_active_notifier_with_notification do |notification|
|
172
172
|
notification.url = request_uri
|
173
173
|
notification.notify_out_of_channel
|
@@ -221,6 +221,8 @@ module Bullet
|
|
221
221
|
end
|
222
222
|
|
223
223
|
def build_request_uri(env)
|
224
|
+
return "#{env['REQUEST_METHOD']} #{env['REQUEST_URI']}" if env['REQUEST_URI']
|
225
|
+
|
224
226
|
if env['QUERY_STRING'].present?
|
225
227
|
"#{env['REQUEST_METHOD']} #{env['PATH_INFO']}?#{env['QUERY_STRING']}"
|
226
228
|
else
|
data/lib/bullet/version.rb
CHANGED
data/spec/bullet_spec.rb
CHANGED
@@ -125,7 +125,7 @@ describe Bullet, focused: true do
|
|
125
125
|
before { env['REQUEST_URI'] = 'http://example.com/path' }
|
126
126
|
|
127
127
|
it "should notification.url is env['REQUEST_URI']" do
|
128
|
-
expect(notification).to receive(:url=).with(
|
128
|
+
expect(notification).to receive(:url=).with('GET http://example.com/path')
|
129
129
|
Bullet.perform_out_of_channel_notifications(env)
|
130
130
|
end
|
131
131
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|