dry-system-rails 0.3.0 → 0.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: 8e94b8a96ce984b5582bc41385cf819bf608a5001cc410e87cfe9fcf91699379
4
- data.tar.gz: 6ef6f4145d23e5d4b66f00fb51e40eae586c43a0aa6020c2e4c329959fe63dca
3
+ metadata.gz: 86fa352bd0f712c2257dd4aa3efdb55bbc57e2d7417b62aa2d4c827e9ecb5879
4
+ data.tar.gz: 77fea2519e11135974b7964f0326502fc2d2d3d107ae7a5f7403c0bfb5ea9b19
5
5
  SHA512:
6
- metadata.gz: 2a9dd12714f79ad6ebbbd180f7022c6a4758cc14ebd2415b73b676e7e99e185dc743f0c5ad21da285a77cb64822ccc71a95af93466f8b1b5a444a8ecbadfa59e
7
- data.tar.gz: d32adcc4fb9d57a84884abeb25649068bfddbf763b198f270a486b04258e02f93102b3562bedadb4c667cf03fafeecfa3ba160295d0980f156e49d67b114f1a8
6
+ metadata.gz: 89f077c8535fc04449093a41964dfe2743b69f441bb636ca67360032200f91a679b0181ab196f3e1fb13f2d3956a93e4894ea4bd876b71ff9a831488ba47033b
7
+ data.tar.gz: bfe779f4d861f6b2c14d34375512469aea432bc04741914cbed4faae62c68e28c49703eec594810f505ea842c55140b2b5a4c3e7f89e4c9ae58c08acfcf78e38
@@ -1,3 +1,11 @@
1
+ # v0.3.1 2019-10-09
2
+
3
+ ### Changed
4
+
5
+ - Do not finalize container when application is in test mode (timriley)
6
+
7
+ [Compare v0.3.0...v0.3.1](https://github.com/dry-rb/dry-system/compare/v0.3.0...v0.3.1)
8
+
1
9
  # v0.3.0 2019-09-29
2
10
 
3
11
  ### Changed
@@ -22,12 +22,7 @@ module Dry
22
22
 
23
23
  container.refresh_boot_files if reloading?
24
24
 
25
- container.finalize!(freeze: freeze?)
26
- end
27
-
28
- # @api private
29
- def freeze?
30
- !::Rails.env.test?
25
+ container.finalize! unless ::Rails.env.test?
31
26
  end
32
27
 
33
28
  # @api private
@@ -3,7 +3,7 @@
3
3
  module Dry
4
4
  module System
5
5
  module Rails
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.1'
7
7
  end
8
8
  end
9
9
  end
@@ -19,6 +19,8 @@ RSpec.describe 'Application container' do
19
19
 
20
20
  describe '#auto_register!' do
21
21
  it 'auto-registers files based on config' do
22
+ Dummy::Container.finalize!(freeze: false) # force auto-registration to run (since we're in test env)
23
+
22
24
  mailer_worker = Dummy::Container['workers.mailer_worker']
23
25
 
24
26
  expect(mailer_worker).to be_instance_of(Workers::MailerWorker)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-system-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-29 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-system