action_subscriber 1.7.0.pre0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_subscriber/middleware/env.rb +3 -1
- data/lib/action_subscriber/version.rb +1 -1
- data/spec/spec_helper.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 573c8a147dbac009a027ad0d10b404484fc8221f
|
4
|
+
data.tar.gz: c137c197e7d3e047d836af47865ad41776e34ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22868e675b4aeddcff1627423628be69c9db6562ce35bfefb7e1121b74756fbbd6132bc9246dd5b80d14f2a9e5bbf63e5c03793725833c741ef28e28375dad44
|
7
|
+
data.tar.gz: 65b0a782d1791ba8a49a4f2c6a7e9ca2c6aefcdb026ac246dd607eb55d87dbdd05aae998df8393048e72953152f711429bc4af6816c0586a8ef159c7bef82ed3
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "securerandom"
|
2
|
+
|
1
3
|
module ActionSubscriber
|
2
4
|
module Middleware
|
3
5
|
class Env
|
@@ -30,7 +32,7 @@ module ActionSubscriber
|
|
30
32
|
@encoded_payload = encoded_payload
|
31
33
|
@exchange = properties.fetch(:exchange)
|
32
34
|
@headers = properties.fetch(:headers) || {}
|
33
|
-
@message_id = properties.fetch(:message_id) || ::
|
35
|
+
@message_id = properties.fetch(:message_id) || ::SecureRandom.hex(3)
|
34
36
|
@queue = properties.fetch(:queue)
|
35
37
|
@routing_key = properties.fetch(:routing_key)
|
36
38
|
@subscriber = subscriber
|
data/spec/spec_helper.rb
CHANGED
@@ -10,9 +10,11 @@ require 'active_record'
|
|
10
10
|
|
11
11
|
# Require spec support files
|
12
12
|
require 'support/user_subscriber'
|
13
|
-
|
14
13
|
require 'action_subscriber/rspec'
|
15
14
|
|
15
|
+
# Silence the Logger
|
16
|
+
::ActionSubscriber::Logging.initialize_logger(nil)
|
17
|
+
|
16
18
|
RSpec.configure do |config|
|
17
19
|
config.mock_with :rspec do |mocks|
|
18
20
|
mocks.verify_partial_doubles = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.0
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|
@@ -265,9 +265,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
265
|
version: '0'
|
266
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
|
-
- - "
|
268
|
+
- - ">="
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version:
|
270
|
+
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
273
|
rubygems_version: 2.5.1
|