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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06d750a3ce695babe3b26f24e06284e0461d0654
4
- data.tar.gz: abdfb7fa508022788480938484238e044cd5b159
3
+ metadata.gz: 573c8a147dbac009a027ad0d10b404484fc8221f
4
+ data.tar.gz: c137c197e7d3e047d836af47865ad41776e34ad6
5
5
  SHA512:
6
- metadata.gz: 75831f62c6cc6652a8e4e99b4716af452e6dbe371bdb4c7057b5bca1c0fe4165a668db899205a79c622b5b7060abc07380951b3192d8f36894fc6099717c99d1
7
- data.tar.gz: e55a1dcd87c163f673819bb3aeb670c561023f493e7c6e0ad527a418ca4a6cfb52ae700765830c5ba313fb6cdda593cacab2b5d3be6a692e8755f6cb6db36f9b
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) || ::Random.new.bytes(3).unpack("H*")[0]
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
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "1.7.0.pre0"
2
+ VERSION = "1.7.0"
3
3
  end
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.pre0
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: 2015-12-23 00:00:00.000000000 Z
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: 1.3.1
270
+ version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
273
  rubygems_version: 2.5.1