bullet 5.4.1 → 5.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5470d4ec1cc862d90317ccc9f48af3c624929991
4
- data.tar.gz: 0b3b471d1542e53d2842a521e699740c9f03feb7
3
+ metadata.gz: a2e6c4a9a98e1cf85620eeafb1d6feadc997c785
4
+ data.tar.gz: 520006e52a1880e2209e488c2d0a5013ca86a5d4
5
5
  SHA512:
6
- metadata.gz: f37623de381c346b4eeb7e930c5db1f1a30bd820752b209be9d00d3aa277f547cc57844d484d549770e7a8a4aa0160c9ae1d1ef3071ebba05678e4d424db00db
7
- data.tar.gz: 2b88a23b0949f8a285f1d73582a4e81f6eb7a99c8d5dd527b2509c317dd007e7195c9e5e8a03cfcadc9b0d992912fc8c6f8b831ae709934983e9668cbbaa59c7
6
+ metadata.gz: 2322a95010d451bb1c8f8328db39de6c14b2bd5d6136117bf6df04d7b0446ce0d6f5d05646583391a1245675a06d4274d4e8b70b1f949c8e0cf337ca357f173c
7
+ data.tar.gz: e0c76d61753a3f3b8d898d3f22b6948a3cc51ca36c88b2bcdd816d6330b3262bc2621876813fac62e28de7e6ca1f3c77d56ceeb8dbea7261af91373f81885923
@@ -1,5 +1,9 @@
1
1
  # Next Release
2
2
 
3
+ ## 5.4.2
4
+
5
+ * Fix "display http request method" #311
6
+
3
7
  ## 5.4.1
4
8
 
5
9
  * Display http request method #311
@@ -167,7 +167,7 @@ module Bullet
167
167
  end
168
168
 
169
169
  def perform_out_of_channel_notifications(env = {})
170
- request_uri = env['REQUEST_URI'] || build_request_uri(env)
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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "5.4.1"
3
+ VERSION = "5.4.2"
4
4
  end
@@ -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(env['REQUEST_URI'])
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport