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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 898dc0c03776cd75ab5a187e1f2e12bce0e0eaf3e9da8ff4af02102b40e74e6b
4
- data.tar.gz: b66a13e734bf798e9d66a0bd410b5ee639fd220a5ffcf4de54f4f31cffd2d983
3
+ metadata.gz: '0280e30254fa68bc13cde2f7bbae229f0e355c74ed14258aa71003e670982470'
4
+ data.tar.gz: c601b9c42f3d0a0a031f30aa7223009e5cfb90b51da28ff6d39d80961fd9d6d7
5
5
  SHA512:
6
- metadata.gz: 2587a3caf44a860dfaaaabf2ba0e779de75cef86979cba46129e84390322ab4f260beeada492c055c8dc6ebac3ecb3ba9f12254b4a25d04fa83f9f8f515d6450
7
- data.tar.gz: ca8eab4d0cfe267756adf3294d78e5892c2bb940f5d936b31c7a1909df32b4348441fc2e0e088fdfd27bfb0edc7cd7b4c72d81fde6b8c511073f6176abecbaa5
6
+ metadata.gz: c4503d32dcaffef4c8259f5b5768144d0841f9437cdce6758d88b02f2465e1ffd1a3a1ad0b03130435f222a14971247c41957156088d14496465b5b44315cb02
7
+ data.tar.gz: f200f775facda3273f45746cbc3c7baa110f0b773ebe9d8c120f6956c2ad061a24c62c47b44660f699e55dd38b5f161595958d8685cbba1edf5d4b8657385804
@@ -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.0...HEAD
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
@@ -6,6 +6,7 @@ gem 'appraisal'
6
6
  gem 'coveralls'
7
7
  gem 'my-rubocop', github: 'jgraichen/my-rubocop'
8
8
  gem 'rake'
9
+ gem 'rake-release', '~> 1.1'
9
10
  gem 'rspec', '~> 3.0'
10
11
  gem 'rspec-rails'
11
12
 
data/Rakefile CHANGED
@@ -7,9 +7,13 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  require 'rake'
10
- require 'bundler/gem_tasks'
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
 
@@ -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
- config = DEFAULT_OPTIONS.merge(config)
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)
@@ -4,7 +4,7 @@ module Msgr
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 3
7
- PATCH = 0
7
+ PATCH = 1
8
8
  STAGE = nil
9
9
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
10
10
 
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.0
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.0.8
163
+ rubygems_version: 3.1.2
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: 'Msgr: Rails-like Messaging Framework'