msgr 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -5
- data/Gemfile +1 -0
- data/Rakefile +5 -1
- data/lib/msgr/railtie.rb +6 -12
- data/lib/msgr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0280e30254fa68bc13cde2f7bbae229f0e355c74ed14258aa71003e670982470'
|
4
|
+
data.tar.gz: c601b9c42f3d0a0a031f30aa7223009e5cfb90b51da28ff6d39d80961fd9d6d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4503d32dcaffef4c8259f5b5768144d0841f9437cdce6758d88b02f2465e1ffd1a3a1ad0b03130435f222a14971247c41957156088d14496465b5b44315cb02
|
7
|
+
data.tar.gz: f200f775facda3273f45746cbc3c7baa110f0b773ebe9d8c120f6956c2ad061a24c62c47b44660f699e55dd38b5f161595958d8685cbba1edf5d4b8657385804
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.3.1] - 2020-12-16
|
9
|
+
### Fixed
|
10
|
+
- Delay setting default options for correct relative routing file path
|
11
|
+
|
8
12
|
## [1.3.0] - 2020-12-16
|
9
13
|
### Added
|
10
14
|
- Support and testing for Rails 6.1
|
@@ -90,14 +94,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
90
94
|
### Fixed
|
91
95
|
- Fix bug with empty routes on client start
|
92
96
|
|
93
|
-
## 0.4.0 - 0.10.0
|
94
|
-
### Changed
|
95
|
-
- Some lost history due to several crises
|
96
|
-
|
97
97
|
## [0.4.0] - 2014-03-04
|
98
98
|
### Changed
|
99
99
|
- Improve railtie and autostart code
|
100
100
|
|
101
|
+
## 0.4.0 - 0.10.0
|
102
|
+
### Changed
|
103
|
+
- Some lost history due to several crises
|
104
|
+
|
101
105
|
## [0.3.0] - 2014-03-03
|
102
106
|
### Added
|
103
107
|
- Support for forking web servers like unicorn
|
@@ -110,7 +114,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
110
114
|
### Changed
|
111
115
|
- Improve rails initializer code
|
112
116
|
|
113
|
-
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.3.
|
117
|
+
[Unreleased]: https://github.com/jgraichen/msgr/compare/v1.3.1...HEAD
|
118
|
+
[1.3.1]: https://github.com/jgraichen/msgr/compare/v1.3.0...v1.3.1
|
114
119
|
[1.3.0]: https://github.com/jgraichen/msgr/compare/v1.2.0...v1.3.0
|
115
120
|
[1.2.0]: https://github.com/jgraichen/msgr/compare/v1.1.0...v1.2.0
|
116
121
|
[1.1.0]: https://github.com/jgraichen/msgr/compare/v1.0.0...v1.1.0
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -7,9 +7,13 @@ rescue LoadError
|
|
7
7
|
end
|
8
8
|
|
9
9
|
require 'rake'
|
10
|
-
require '
|
10
|
+
require 'rake/release/task'
|
11
11
|
require 'rspec/core/rake_task'
|
12
12
|
|
13
|
+
Rake::Release::Task.new do |spec|
|
14
|
+
spec.sign_tag = true
|
15
|
+
end
|
16
|
+
|
13
17
|
# Delegate spec task task to spec:all to run all specs.
|
14
18
|
task spec: 'spec:all'
|
15
19
|
|
data/lib/msgr/railtie.rb
CHANGED
@@ -4,15 +4,6 @@ module Msgr
|
|
4
4
|
class Railtie < ::Rails::Railtie
|
5
5
|
config.msgr = ActiveSupport::OrderedOptions.new
|
6
6
|
|
7
|
-
DEFAULT_OPTIONS = {
|
8
|
-
checkcredentials: true,
|
9
|
-
routing_file: "#{Rails.root}/config/msgr.rb"
|
10
|
-
}.freeze
|
11
|
-
|
12
|
-
if File.exist?("#{Rails.root}/app/consumers")
|
13
|
-
config.autoload_paths << File.expand_path("#{Rails.root}/app/consumers")
|
14
|
-
end
|
15
|
-
|
16
7
|
initializer 'msgr.logger' do |app|
|
17
8
|
app.config.msgr.logger ||= Rails.logger
|
18
9
|
end
|
@@ -20,8 +11,7 @@ module Msgr
|
|
20
11
|
initializer 'msgr.start' do
|
21
12
|
config.after_initialize do |app|
|
22
13
|
Msgr.logger = app.config.msgr.logger
|
23
|
-
|
24
|
-
self.class.load(app.config_for(:rabbitmq))
|
14
|
+
self.class.load(app.config_for(:rabbitmq).symbolize_keys)
|
25
15
|
end
|
26
16
|
end
|
27
17
|
|
@@ -31,7 +21,11 @@ module Msgr
|
|
31
21
|
|
32
22
|
class << self
|
33
23
|
def load(config)
|
34
|
-
|
24
|
+
# Set defaults
|
25
|
+
config.reverse_merge!(
|
26
|
+
checkcredentials: true,
|
27
|
+
routing_file: Rails.root.join('config/msgr.rb').to_s
|
28
|
+
)
|
35
29
|
|
36
30
|
Msgr.config = config
|
37
31
|
Msgr.client.connect if config.fetch(:checkcredentials)
|
data/lib/msgr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
163
|
+
rubygems_version: 3.1.2
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: 'Msgr: Rails-like Messaging Framework'
|